X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-lexer.l;h=905da9916711831c1680479444f5b2898f88d846;hb=8c834e5a0a0881093d0a8c212cde27b318e7b11d;hp=26aa1bce2322d2571a9b57b24d614484009e3cdc;hpb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-lexer.l b/formats/ctf/metadata/ctf-lexer.l index 26aa1bce..905da991 100644 --- a/formats/ctf/metadata/ctf-lexer.l +++ b/formats/ctf/metadata/ctf-lexer.l @@ -31,7 +31,7 @@ #include "ctf-parser.h" #include "ctf-ast.h" -__attribute__((visibility("hidden"))) +BT_HIDDEN void setstring(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src); static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) @@ -64,11 +64,11 @@ ESCSEQ \\(\'|\"|\?|\\|a|b|f|n|r|t|v|{OCTALDIGIT}{1,3}|u{HEXDIGIT}{4}|U{HEXDIG "/*" BEGIN(comment_ml); [^*\n]* /* eat anything that's not a '*' */ "*"+[^*/\n]* /* eat up '*'s not followed by '/'s */ -\n ++yylineno; +\n "*"+"/" BEGIN(INITIAL); "//" BEGIN(comment_sl); -[^\n]*\n ++yylineno; BEGIN(INITIAL); +[^\n]*\n BEGIN(INITIAL); L\' BEGIN(char_const); return CHARACTER_CONSTANT_START; \' BEGIN(char_const); return CHARACTER_CONSTANT_START; @@ -133,6 +133,6 @@ _Imaginary setstring(yyextra, yylval, yytext); return _IMAGINARY; 0{OCTALDIGIT}*{INTEGER_SUFFIX}? setstring(yyextra, yylval, yytext); return OCTAL_CONSTANT; 0[xX]{HEXDIGIT}+{INTEGER_SUFFIX}? setstring(yyextra, yylval, yytext); return HEXADECIMAL_CONSTANT; {IDENTIFIER} printf_debug("\n", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER; -[ \t\n]+ ; /* ignore */ +[ \t\n\r]+ ; /* ignore */ . return ERROR; %%