forked from Green-Sky/tomato
update stb to latest master Merge commit 'ac7437c89bbd8a6626c9f05548bbddfc1a961793'
This commit is contained in:
3
external/stb/stb/stb_c_lexer.h
vendored
3
external/stb/stb/stb_c_lexer.h
vendored
@@ -38,6 +38,7 @@
|
||||
// Contributors:
|
||||
// Arpad Goretity (bugfix)
|
||||
// Alan Hickman (hex floats)
|
||||
// github:mundusnine (bugfix)
|
||||
//
|
||||
// LICENSE
|
||||
//
|
||||
@@ -562,7 +563,6 @@ int stb_c_lexer_get_token(stb_lexer *lexer)
|
||||
{
|
||||
int n = 0;
|
||||
lexer->string = lexer->string_storage;
|
||||
lexer->string_len = n;
|
||||
do {
|
||||
if (n+1 >= lexer->string_storage_len)
|
||||
return stb__clex_token(lexer, CLEX_parse_error, p, p+n);
|
||||
@@ -576,6 +576,7 @@ int stb_c_lexer_get_token(stb_lexer *lexer)
|
||||
STB_C_LEX_DOLLAR_IDENTIFIER( || p[n] == '$' )
|
||||
);
|
||||
lexer->string[n] = 0;
|
||||
lexer->string_len = n;
|
||||
return stb__clex_token(lexer, CLEX_id, p, p+n-1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user