summaryrefslogtreecommitdiffstats
path: root/grammar/rainerscript.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-04 12:00:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-04 12:00:01 +0200
commit68b9fe72b89ff47efdbed8fea4185bac84279a51 (patch)
treec3335f0e23037b240d4dabbf3b424f54e2253aef /grammar/rainerscript.h
parentaa8c79794e00c42ef3b89753f38cef511abb90b3 (diff)
downloadrsyslog-68b9fe72b89ff47efdbed8fea4185bac84279a51.tar.gz
rsyslog-68b9fe72b89ff47efdbed8fea4185bac84279a51.tar.bz2
rsyslog-68b9fe72b89ff47efdbed8fea4185bac84279a51.zip
new ruleengine: script block correctly built
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r--grammar/rainerscript.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h
index 1fe7f1b9..2d4d9271 100644
--- a/grammar/rainerscript.h
+++ b/grammar/rainerscript.h
@@ -157,10 +157,10 @@ struct cnfrule {
struct cnfstmt { /* base statement, for simple types */
unsigned nodetype;
struct cnfstmt *next;
+ uchar *printable; /* printable text for debugging */
union {
struct {
struct cnfexpr *expr;
- uchar *printable; /* printable expr for debugging */
struct cnfstmt *t_then;
struct cnfstmt *t_else;
} cond;
@@ -296,6 +296,8 @@ void cnfparamvalsDestruct(struct cnfparamvals *paramvals, struct cnfparamblk *bl
void cnfcfsyslinelstDestruct(struct cnfcfsyslinelst *cfslst);
struct cnfstmt * cnfstmtNew(unsigned s_type);
void cnfstmtPrint(struct cnfstmt *stmt, int indent);
+struct cnfstmt* scriptAddStmt(struct cnfstmt *root, struct cnfstmt *s);
+char *rmLeadingSpace(char *s);
rsRetVal initRainerscript(void);
/* debug helper */