summaryrefslogtreecommitdiffstats
path: root/grammar/utils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-02 18:32:35 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-02 18:32:35 +0200
commit62e95c10ba84871fd5ad97fccd75664b07620013 (patch)
tree805addae179d86fa10507205ebe6887e872b81a1 /grammar/utils.c
parent1ee14507b37bd7cb252341e7f6bdb6398407f1fd (diff)
downloadrsyslog-62e95c10ba84871fd5ad97fccd75664b07620013.tar.gz
rsyslog-62e95c10ba84871fd5ad97fccd75664b07620013.tar.xz
rsyslog-62e95c10ba84871fd5ad97fccd75664b07620013.zip
milestone: some support for rules in grammar
Diffstat (limited to 'grammar/utils.c')
-rw-r--r--grammar/utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/grammar/utils.c b/grammar/utils.c
index ccc9fbc7..a505704f 100644
--- a/grammar/utils.c
+++ b/grammar/utils.c
@@ -118,3 +118,15 @@ cnfobjPrint(struct cnfobj *o)
printf("obj: '%s'\n", cnfobjType2str(o->objType));
nvlstPrint(o->nvlst);
}
+
+/* debug helper */
+void
+cstrPrint(char *text, es_str_t *estr)
+{
+ char *str;
+ printf("in cstrPrint, estr %p\n", estr);
+ str = es_str2cstr(estr, NULL);
+ printf("2: in cstrPrint, estr %p\n", estr);
+ printf("%s%s", text, str);
+ free(str);
+}