summaryrefslogtreecommitdiffstats
path: root/grammar/rainerscript.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-13 09:30:20 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-13 09:30:20 +0200
commit10bef02e8f8f6bec4f1c18d9c634aa6927f4611a (patch)
tree778f982d6aa0d1ccda31c8b011418587c04437af /grammar/rainerscript.h
parent4f0672f601c74cb60ae32dfa67cccc3336dd674d (diff)
downloadrsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.tar.gz
rsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.tar.bz2
rsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.zip
bugfix: missing support for escape sequences in RainerScript
Only \' was supported. Now the usual set is supported. Note that v5 used \x as escape where x was any character (e.g. "\n" meant "n" and NOT LF). This also means there is some incompatibility to v5 for well-know sequences. Better break it now than later.
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r--grammar/rainerscript.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h
index e11ae62f..a52b3fa8 100644
--- a/grammar/rainerscript.h
+++ b/grammar/rainerscript.h
@@ -249,6 +249,7 @@ void cnfparamsPrint(struct cnfparamblk *params, struct cnfparamvals *vals);
void varDelete(struct var *v);
void cnfparamvalsDestruct(struct cnfparamvals *paramvals, struct cnfparamblk *blk);
void cnfcfsyslinelstDestruct(struct cnfcfsyslinelst *cfslst);
+void unescapeStr(uchar *s, int len);
/* debug helper */
void cstrPrint(char *text, es_str_t *estr);