#define BSIZE 8192
-#define YYCTYPE uchar
+#define YYCTYPE char
#define YYCURSOR cursor
#define YYLIMIT lim
#define YYMARKER ptr
;
}
-uchar *Scanner::fill(uchar *cursor){
+char *Scanner::fill(char *cursor){
if(!eof){
uint cnt = tok - bot;
if(cnt){
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];
int Scanner::echo(ostream &out){
- uchar *cursor = cur;
+ char *cursor = cur;
tok = cursor;
echo:
{
int Scanner::scan(){
- uchar *cursor = cur;
+ char *cursor = cur;
uint depth;
scan:
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&);
#define BSIZE 8192
-#define YYCTYPE uchar
+#define YYCTYPE char
#define YYCURSOR cursor
#define YYLIMIT lim
#define YYMARKER ptr
;
}
-uchar *Scanner::fill(uchar *cursor){
+char *Scanner::fill(char *cursor){
if(!eof){
uint cnt = tok - bot;
if(cnt){
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];
*/
int Scanner::echo(ostream &out){
- uchar *cursor = cur;
+ char *cursor = cur;
tok = cursor;
echo:
/*!re2c
int Scanner::scan(){
- uchar *cursor = cur;
+ char *cursor = cur;
uint depth;
scan: