Skip to content
Myr

Merge branch 'patch-1' of https://github.com/mundusnine/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 2a74e27, aac5e88 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:stb_c_lexer.h+2 added-1 removed
35 unmodified lines
36//37// Contributors:38// Arpad Goretity (bugfix)39// Alan Hickman (hex floats)40// github:mundusnine (bugfix)41//42// LICENSE43//44// See end of file for license information.
543 unmodified lines
588 STB_C_LEX_DOLLAR_IDENTIFIER( || *p == '$' ) )589 {590 int n = 0;591 lexer->string = lexer->string_storage;591 lexer->string_len = n;592 do {593 if (n+1 >= lexer->string_storage_len)594 return stb__clex_token(lexer, CLEX_parse_error, p, p+n);595 lexer->string[n] = p[n];
5 unmodified lines
601 || p[n] == '_' || (unsigned char) p[n] >= 128602 STB_C_LEX_DOLLAR_IDENTIFIER( || p[n] == '$' )603 );604 lexer->string[n] = 0;605 lexer->string_len = n;606 return stb__clex_token(lexer, CLEX_id, p, p+n-1);607 }608609 // check for EOF
358 unmodified lines