projects
/
uebersetzerbau-ss10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0558e
)
scanner: s/\%x/\%lx/g
author
Bernhard Urban
<lewurm@gmail.com>
Sun, 7 Mar 2010 13:32:10 +0000
(14:32 +0100)
committer
Bernhard Urban
<lewurm@gmail.com>
Sun, 7 Mar 2010 13:32:10 +0000
(14:32 +0100)
scanner/scanner.lex
patch
|
blob
|
history
diff --git
a/scanner/scanner.lex
b/scanner/scanner.lex
index ebf5f8fc461b24c42cb1c60415e248d8a2bcbeab..6288282a16efe8a28441b6cb7f035b0e1e19eea9 100644
(file)
--- a/
scanner/scanner.lex
+++ b/
scanner/scanner.lex
@@
-30,14
+30,14
@@
COMMENT_END \*\/
{IDENTIFIER} printf("ident %s\n", yytext);
-{NUMBER_DEC} printf("num %x\n", strtol(yytext, (char **)NULL, 10));
+{NUMBER_DEC} printf("num %
l
x\n", strtol(yytext, (char **)NULL, 10));
{NUMBER_HEX} {
#if 0
char *copy=strdup(yytext);
copy[strlen(copy)-1]='\0';
#endif
- printf("num %x\n", strtol(yytext, (char **)NULL, 16));
+ printf("num %
l
x\n", strtol(yytext, (char **)NULL, 16));
}
{WHITESPACE} /* ignorieren */