Code cleanup
This commit is contained in:
parent
19e45daf89
commit
7c566c273b
|
@ -856,6 +856,7 @@ static int _cpp_callback_directive(Parser * parser, Token * token, int c,
|
||||||
static int _cpp_callback_word(Parser * parser, Token * token, int c,
|
static int _cpp_callback_word(Parser * parser, Token * token, int c,
|
||||||
void * data)
|
void * data)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
CppParser * cp = data;
|
CppParser * cp = data;
|
||||||
char * str;
|
char * str;
|
||||||
|
|
||||||
|
@ -864,9 +865,9 @@ static int _cpp_callback_word(Parser * parser, Token * token, int c,
|
||||||
DEBUG_CALLBACK();
|
DEBUG_CALLBACK();
|
||||||
if((str = _cpp_parse_word(parser, c)) == NULL)
|
if((str = _cpp_parse_word(parser, c)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
_cpp_token_set(cp, token, CPP_CODE_WORD, str); /* XXX may fail */
|
ret = _cpp_token_set(cp, token, CPP_CODE_WORD, str);
|
||||||
free(str);
|
free(str);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user