7 #ifndef __POSIX_VISIBLE
11 #include "../lib/sstring.h"
13 #define YYSTYPE sstring *
14 extern YYSTYPE yylval;
17 #include "../lib/stringbuf.h"
19 #define MAX_STR_CONST 512
23 #define addpos(x) lexpos+=x;
24 #define incpos() addpos(1);
39 char bufdata[MAX_STR_CONST];
43 sbinit(&buf, bufdata, sizeof(bufdata));
51 yylval = getsstring(bufdata, 512);
55 sbaddchar(&buf, '\\');
61 sbaddchar(&buf, *yytext);
66 sbinit(&buf, bufdata, sizeof(bufdata));
72 sbaddchar(&buf, '\'');
77 yylval = getsstring(bufdata, 512);
81 sbaddchar(&buf, *yytext);
91 [ \t]+ { addpos(strlen(yytext));
94 ({letter}|{digit}|[#\-\+\.\*])+ { addpos(strlen(yytext));
95 yylval = getsstring(yytext, 512);
115 void ydummyfn(void) {