Commit 24fe31eb authored by Ted Lemon's avatar Ted Lemon

Add unset, let. Fix definition of ON_RELEASE.

parent 5092dd06
...@@ -38,7 +38,9 @@ struct executable_statement { ...@@ -38,7 +38,9 @@ struct executable_statement {
switch_statement, switch_statement,
case_statement, case_statement,
default_statement, default_statement,
set_statement set_statement,
unset_statement,
let_statement
} op; } op;
union { union {
struct { struct {
...@@ -56,7 +58,7 @@ struct executable_statement { ...@@ -56,7 +58,7 @@ struct executable_statement {
int evtypes; int evtypes;
# define ON_COMMIT 1 # define ON_COMMIT 1
# define ON_EXPIRY 2 # define ON_EXPIRY 2
# define ON_RELEASE 3 # define ON_RELEASE 4
struct executable_statement *statements; struct executable_statement *statements;
} on; } on;
struct { struct {
...@@ -67,7 +69,9 @@ struct executable_statement { ...@@ -67,7 +69,9 @@ struct executable_statement {
struct { struct {
char *name; char *name;
struct expression *expr; struct expression *expr;
} set; struct executable_statement *statements;
} set, let;
char *unset;
} data; } data;
}; };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment