]> granicus.if.org Git - re2c/commitdiff
Integrated debian patches.
authornuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Fri, 2 Jan 2004 15:33:07 +0000 (15:33 +0000)
committernuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Fri, 2 Jan 2004 15:33:07 +0000 (15:33 +0000)
main.cc
scanner.cc
scanner.re
y.tab.h

diff --git a/main.cc b/main.cc
index 9e22c23e404bb7a96349f0e092988edd737a18eb..b831a8a98dfd24a4f2c2bc1e1585248038b9da7b 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -1,4 +1,4 @@
-#include <fstream.h>
+#include <fstream>
 #include <stdlib.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -11,6 +11,8 @@ char *fileName;
 bool sFlag = false;
 bool bFlag = false;
 
+using namespace std;
+
 int main(unsigned argc, char *argv[]){
     fileName = NULL;
     if(argc == 1)
index 53fcb08d2052746841c96cfe7ba3130ef8003bab..576680f78125255fd757a5aeb39ad74e7e3ea84c 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.5 on Sat May 15 11:35:52 1999 */
+/* Generated by re2c 0.5 on Sat Apr  6 20:23:48 2002 */
 #line 1 "scanner.re"
 #include <stdlib.h>
 #include <string.h>
@@ -85,7 +85,7 @@ yy4:  yych = *++YYCURSOR;
 yy5:
 #line 78
        { if(cursor == eof) RETURN(0);
-                                 out.write(tok, cursor - tok);
+                                 out.write((char *)tok, cursor - tok);
                                  tok = pos = cursor; cline++;
                                  goto echo; }
 yy6:   yych = *++YYCURSOR;
@@ -107,7 +107,7 @@ yy12:       yych = *++YYCURSOR;
 yy13:  yych = *++YYCURSOR;
 yy14:
 #line 75
-       { out.write(tok, &cursor[-7] - tok);
+       { out.write((char *)tok, &cursor[-7] - tok);
                                  tok = cursor;
                                  RETURN(1); }
 }
index bad4659c5f3c2bee7cacff60106108ed1be47a34..6e155ab8c736171beefea159836bcf0f19d2068e 100644 (file)
@@ -72,11 +72,11 @@ int Scanner::echo(ostream &out){
     tok = cursor;
 echo:
 /*!re2c
-       "/*!re2c"               { out.write(tok, &cursor[-7] - tok);
+       "/*!re2c"               { out.write((char *)tok, &cursor[-7] - tok);
                                  tok = cursor;
                                  RETURN(1); }
        "\n"                    { if(cursor == eof) RETURN(0);
-                                 out.write(tok, cursor - tok);
+                                 out.write((char *)tok, cursor - tok);
                                  tok = pos = cursor; cline++;
                                  goto echo; }
         any                    { goto echo; }
diff --git a/y.tab.h b/y.tab.h
index d7b3702d136ba9cf8e654bc0f7c676939f153cef..5642287b687d160897da0c743a9f06d5d5d31942 100644 (file)
--- a/y.tab.h
+++ b/y.tab.h
@@ -1,12 +1,22 @@
-#define CLOSE 257
-#define ID 258
-#define CODE 259
-#define RANGE 260
-#define STRING 261
+#ifndef BISON_Y_TAB_H
+# define BISON_Y_TAB_H
+
+#ifndef YYSTYPE
 typedef union {
     Symbol     *symbol;
     RegExp     *regexp;
     Token      *token;
     char       op;
-} YYSTYPE;
+} yystype;
+# define YYSTYPE yystype
+#endif
+# define       CLOSE   257
+# define       ID      258
+# define       CODE    259
+# define       RANGE   260
+# define       STRING  261
+
+
 extern YYSTYPE yylval;
+
+#endif /* not BISON_Y_TAB_H */