summaryrefslogtreecommitdiffstats
path: root/grammar/utils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-05 11:04:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-05 11:04:47 +0200
commit6175ce90b59d742976aa5a8b2603902761e540ae (patch)
tree4a680c6f0cb3cc22007aac1907e9c74fd22deae3 /grammar/utils.c
parent641e383b8ad13ad6ee7fd9241214e24e6a983500 (diff)
downloadrsyslog-6175ce90b59d742976aa5a8b2603902761e540ae.tar.gz
rsyslog-6175ce90b59d742976aa5a8b2603902761e540ae.tar.xz
rsyslog-6175ce90b59d742976aa5a8b2603902761e540ae.zip
milestone: improved build system
... still had quite some glitches, as usual. This time it hopefully works under all circumstances (well, let's hope for "usual cir..." ;)).
Diffstat (limited to 'grammar/utils.c')
-rw-r--r--grammar/utils.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/grammar/utils.c b/grammar/utils.c
index e488ebda..d9bf67aa 100644
--- a/grammar/utils.c
+++ b/grammar/utils.c
@@ -5,7 +5,7 @@
#include <libestr.h>
#include "utils.h"
#include "parserif.h"
-#include "rscript.tab.h"
+#include "grammar.h"
void
readConfFile(FILE *fp, es_str_t **str)
@@ -609,29 +609,3 @@ cnffuncNew(es_str_t *fname, struct cnffparamlst* paramlst)
}
return func;
}
-
-/* debug helper */
-#ifdef STAND_ALONE
-void
-cstrPrint(char *text, es_str_t *estr)
-{
- char *str;
- str = es_str2cstr(estr, NULL);
- printf("%s%s", text, str);
- free(str);
-}
-
-
-int
-main(int argc, char *argv[])
-{
- int r;
-
- cnfSetLexFile(argc == 1 ? NULL : argv[1]);
- yydebug = 0;
- r = yyparse();
- printf("yyparse() returned %d\n", r);
- return r;
-}
-#endif /* #ifdef STAND_ALONE */
-