Commit 6bac5334 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoît Perrot  <benoit@lrde.epita.fr>

	Make Nolimips compile on OS X.

	* dev/parse-asm-scan.ll: 
	Suggested by Akim Demaille: Prefer istringstream to strtoll.
parent 2c8fce4f
2004-06-25 Benot Perrot <benoit@lrde.epita.fr>
Make Nolimips compile on OS X.
* dev/parse-asm-scan.ll:
Suggested by Akim Demaille: Prefer istringstream to strtoll.
2004-06-13 Benot Perrot <benoit@lrde.epita.fr>
Update makefile's machinery.
......
......@@ -36,6 +36,7 @@ print "%{ /* -*- C++ -*- */"
print license
print """
#include <string>
#include <sstream>
#include \"common.hh\"
#include \"misc/escape.hh\"
......@@ -154,7 +155,10 @@ print """
-?{dec_int} yylval->i = atoi (yytext); return INTEGER;
-?{hex_int} yylval->i = strtoll (yytext, 0, 16); return INTEGER;
-?{hex_int} {
std::istringstream(yytext) >> std::hex >> (unsigned&) yylval->i;
return INTEGER;
}
'\\\\a' yylval->i = '\\a'; return INTEGER;
'\\\\b' yylval->i = '\\b'; return INTEGER;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment