diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-04 12:00:01 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-04 12:00:01 +0200 |
commit | 68b9fe72b89ff47efdbed8fea4185bac84279a51 (patch) | |
tree | c3335f0e23037b240d4dabbf3b424f54e2253aef /grammar/rainerscript.h | |
parent | aa8c79794e00c42ef3b89753f38cef511abb90b3 (diff) | |
download | rsyslog-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.h | 4 |
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 */ |