| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- Index: Makefile
- --- Makefile.orig 1999-08-27 05:46:32.000000000 +0200
- +++ Makefile 2004-05-08 10:01:19.000000000 +0200
- @@ -11,7 +11,7 @@
- %.cc : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
-
- %.cc: %.re
- - re2c -s $< >$@
- + ./re2c -s $< >$@
-
- SOURCES = code.cc dfa.cc main.cc parser.y actions.cc scanner.re substr.cc\
- translate.cc
- @@ -29,7 +29,7 @@
- rm -f *.o *.s y.tab.c y.tab.h scanner.cc parser.cc .version version.h re2c
-
- parser.cc: parser.y
- - yacc -d parser.y
- + $(YACC) -d parser.y
- mv -f y.tab.c parser.cc
-
- re2c: $(OBJS)
- Index: parser.cc
- --- parser.cc.orig 1999-08-27 05:46:32.000000000 +0200
- +++ parser.cc 2004-05-08 10:01:04.000000000 +0200
- @@ -13,7 +13,7 @@
- #include <time.h>
- #include <iostream.h>
- #include <string.h>
- -#include <malloc.h>
- +#include <stdlib.h>
- #include "globals.h"
- #include "parser.h"
- int yyparse();
- Index: parser.y
- --- parser.y.orig 1999-08-27 05:46:32.000000000 +0200
- +++ parser.y 2004-05-08 10:01:04.000000000 +0200
- @@ -3,7 +3,7 @@
- #include <time.h>
- #include <iostream.h>
- #include <string.h>
- -#include <malloc.h>
- +#include <stdlib.h>
- #include "globals.h"
- #include "parser.h"
- int yyparse();
- Index: scanner.cc
- --- scanner.cc.orig 1999-08-27 05:46:32.000000000 +0200
- +++ scanner.cc 2004-05-08 10:01:04.000000000 +0200
- @@ -12,7 +12,7 @@
-
- #define BSIZE 8192
-
- -#define YYCTYPE uchar
- +#define YYCTYPE char
- #define YYCURSOR cursor
- #define YYLIMIT lim
- #define YYMARKER ptr
- @@ -27,7 +27,7 @@
- ;
- }
-
- -uchar *Scanner::fill(uchar *cursor){
- +char *Scanner::fill(char *cursor){
- if(!eof){
- uint cnt = tok - bot;
- if(cnt){
- @@ -39,7 +39,7 @@
- lim -= cnt;
- }
- if((top - lim) < BSIZE){
- - uchar *buf = new uchar[(lim - bot) + BSIZE];
- + char *buf = new char[(lim - bot) + BSIZE];
- memcpy(buf, tok, lim - tok);
- tok = buf;
- ptr = &buf[ptr - bot];
- @@ -62,7 +62,7 @@
-
-
- int Scanner::echo(ostream &out){
- - uchar *cursor = cur;
- + char *cursor = cur;
- tok = cursor;
- echo:
- {
- @@ -117,7 +117,7 @@
-
-
- int Scanner::scan(){
- - uchar *cursor = cur;
- + char *cursor = cur;
- uint depth;
-
- scan:
- Index: scanner.h
- --- scanner.h.orig 1999-08-27 05:46:32.000000000 +0200
- +++ scanner.h 2004-05-08 10:01:04.000000000 +0200
- @@ -6,10 +6,10 @@
- class Scanner {
- private:
- int in;
- - uchar *bot, *tok, *ptr, *cur, *pos, *lim, *top, *eof;
- + char *bot, *tok, *ptr, *cur, *pos, *lim, *top, *eof;
- uint tchar, tline, cline;
- private:
- - uchar *fill(uchar*);
- + char *fill(char*);
- public:
- Scanner(int);
- int echo(ostream&);
- Index: scanner.re
- --- scanner.re.orig 1999-08-27 05:46:32.000000000 +0200
- +++ scanner.re 2004-05-08 10:01:04.000000000 +0200
- @@ -10,7 +10,7 @@
-
- #define BSIZE 8192
-
- -#define YYCTYPE uchar
- +#define YYCTYPE char
- #define YYCURSOR cursor
- #define YYLIMIT lim
- #define YYMARKER ptr
- @@ -25,7 +25,7 @@
- ;
- }
-
- -uchar *Scanner::fill(uchar *cursor){
- +char *Scanner::fill(char *cursor){
- if(!eof){
- uint cnt = tok - bot;
- if(cnt){
- @@ -37,7 +37,7 @@
- lim -= cnt;
- }
- if((top - lim) < BSIZE){
- - uchar *buf = new uchar[(lim - bot) + BSIZE];
- + char *buf = new char[(lim - bot) + BSIZE];
- memcpy(buf, tok, lim - tok);
- tok = buf;
- ptr = &buf[ptr - bot];
- @@ -68,7 +68,7 @@
- */
-
- int Scanner::echo(ostream &out){
- - uchar *cursor = cur;
- + char *cursor = cur;
- tok = cursor;
- echo:
- /*!re2c
- @@ -85,7 +85,7 @@
-
-
- int Scanner::scan(){
- - uchar *cursor = cur;
- + char *cursor = cur;
- uint depth;
-
- scan:
|