Commit 6303eed9 authored by Jose Luis Tallon's avatar Jose Luis Tallon

Code styling: apply fixes as per Mark's advice.

parent e32f102e
...@@ -237,15 +237,15 @@ include_dir_open ^[ \t]*@include_dir[ \t]+\" ...@@ -237,15 +237,15 @@ include_dir_open ^[ \t]*@include_dir[ \t]+\"
int errsave = errno; int errsave = errno;
errno = 0; errno = 0;
llval = strtoll(yytext, &endptr, 0); /* base 10 or base 8 */ llval = strtoll(yytext, &endptr, 0); /* base 10 or base 8 */
if( '\0'!=*endptr || 0!=errno ) if(*endptr || errno)
{ {
errno = 0; errno = 0;
return(TOK_ERROR); /* some error occured ... */ return(TOK_ERROR); /* some error occured ... */
} }
errno = errsave; errno = errsave;
if( '0'==*yytext && '\0'!=*(yytext+1) ) if((*yytext == '0') && (*(yytext+1) != '\0'))
{ /* it's octal... so INT we go */ { /* it's octal... so INT we go */
yylval->ival=(int)(llval); yylval->ival = (int)(llval);
return(TOK_INTEGER); return(TOK_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