summaryrefslogtreecommitdiff
path: root/includes/statement.h
diff options
context:
space:
mode:
authorEvan Hunt <each@isc.org>2007-01-28 23:00:19 +0000
committerEvan Hunt <each@isc.org>2007-01-28 23:00:19 +0000
commit253c8b6ad1f0696cf631331e2ce3a6da341c240e (patch)
tree84519250b25d20d8c78c5d9011cd91568844eb59 /includes/statement.h
parent85edef5cfe3f24ab0f94656454b00ceeaed2172d (diff)
downloadisc-dhcp-253c8b6ad1f0696cf631331e2ce3a6da341c240e.tar.gz
Change "execute" from numeric expression to executable statement, so
it will not be necessary to use eval(execute(...)) [rt16620]
Diffstat (limited to 'includes/statement.h')
-rw-r--r--includes/statement.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/statement.h b/includes/statement.h
index 44fe8a84..27c758f4 100644
--- a/includes/statement.h
+++ b/includes/statement.h
@@ -56,7 +56,8 @@ struct executable_statement {
let_statement,
define_statement,
log_statement,
- return_statement
+ return_statement,
+ execute_statement
} op;
union {
struct {
@@ -99,6 +100,11 @@ struct executable_statement {
} priority;
struct expression *expr;
} log;
+ struct {
+ char *command;
+ struct expression *arglist;
+ int argc;
+ } execute;
} data;
};