git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unit variable type and 'reloaded()' function.
[whenjobs.git]
/
lib
/
whenproto.x
diff --git
a/lib/whenproto.x
b/lib/whenproto.x
index
2e64636
..
2ca662f
100644
(file)
--- a/
lib/whenproto.x
+++ b/
lib/whenproto.x
@@
-44,13
+44,16
@@
union status switch (status_code s) {
};
enum variable_type {
};
enum variable_type {
- BOOL_T = 0,
- STRING_T = 1,
- INT_T = 2,
- FLOAT_T = 3
+ UNIT_T = 0,
+ BOOL_T = 1,
+ STRING_T = 2,
+ INT_T = 3,
+ FLOAT_T = 4
};
union variable switch (variable_type t) {
};
union variable switch (variable_type t) {
+ case UNIT_T:
+ void;
case BOOL_T:
bool b;
case STRING_T:
case BOOL_T:
bool b;
case STRING_T: