]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Undo bison changes, they don't work with flex.
authorChris Porter <redacted>
Sun, 21 Sep 2008 01:17:50 +0000 (02:17 +0100)
committerChris Porter <redacted>
Sun, 21 Sep 2008 01:17:50 +0000 (02:17 +0100)
Use flex by default.
Fix bug in new sstring code.

build.mk.in
newsearch/newsearch.l
newsearch/newsearch.y

index 827e105b0656d36aef6d4047d09ae13afb319c83..f9b3cefe632c11d17c1fb77986787207bef3fe60 100644 (file)
@@ -4,6 +4,7 @@ INCPATH=../
 
 CFLAGS=
 CC=gcc
+LEX=flex
 
 @sinclude@ @includel@$(INCPATH)settings.mk@includel@
 
index 360a5fd8dc9ea9b58bad4655f73666f759cf2d50..a233c14dcafdcc770449a2d2c148835a020f2969 100644 (file)
@@ -13,16 +13,6 @@ extern YYSTYPE yylval;
 
 #define MAX_STR_CONST 512
 
-/* shuts gcc up */
-static void yyunput (int c,char *buf_ptr);
-void newsearch_parser_dummy(void) {
-  yyunput(0, NULL);
-}
-
-int fileno(void *arg) {
-  return 0;
-}
-
 %}
 
 digit          [0-9]
index 0dc2a04bcae11a634459470a365d1839c24443d9..b8a5341984a818b28169f9f2d1bc4a39e60ba45c 100644 (file)
@@ -59,7 +59,7 @@ invocation: LPAREN function argumentlist RPAREN
     stackpos--;
     count = stackcount[stackpos];
     
-    pfn = functionfinder(str, fnfarg);
+    pfn = functionfinder(str->content, fnfarg);
     if(!pfn) {
       parse_free(&sresult);
       YYERROR;