projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf: append error causes when returning errors
[babeltrace.git]
/
src
/
plugins
/
ctf
/
common
/
metadata
/
lexer.l
diff --git
a/src/plugins/ctf/common/metadata/lexer.l
b/src/plugins/ctf/common/metadata/lexer.l
index 43c81b88d5293ea0b9711421615030446b721450..849d016bc820364b690ec1831a3c906848525489 100644
(file)
--- a/
src/plugins/ctf/common/metadata/lexer.l
+++ b/
src/plugins/ctf/common/metadata/lexer.l
@@
-24,7
+24,7
@@
errno = 0; \
yylval->ull = strtoull(yytext, NULL, base); \
if (errno) { \
errno = 0; \
yylval->ull = strtoull(yytext, NULL, base); \
if (errno) { \
- _BT_LOGE_
LINENO(yylineno,
\
+ _BT_LOGE_
APPEND_CAUSE_LINENO(yylineno,
\
"Cannot parser constant integer: " \
"base=%d, text=\"%s\"", base, yytext); \
return CTF_ERROR; \
"Cannot parser constant integer: " \
"base=%d, text=\"%s\"", base, yytext); \
return CTF_ERROR; \
@@
-116,5
+116,5
@@
_Imaginary setstring(yyextra, yylval, yytext); return CTF_IMAGINARY;
{IDENTIFIER} BT_LOGT("Got identifier: id=\"%s\"", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER;
[ \t\r\n] ; /* ignore */
{IDENTIFIER} BT_LOGT("Got identifier: id=\"%s\"", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER;
[ \t\r\n] ; /* ignore */
-. _BT_LOGE_LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint((unsigned char) yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR;
+. _BT_LOGE_
APPEND_CAUSE_
LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint((unsigned char) yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR;
%%
%%
This page took
0.025009 seconds
and
4
git commands to generate.