5
5
6
6
typedef struct {
7
7
stb_lexer l ;
8
- const char * path ;
8
+ const char * file_path ;
9
9
const char * member ;
10
10
} Jimp ;
11
11
@@ -97,7 +97,7 @@ void jimp_unknown_member(Jimp *jimp)
97
97
{
98
98
stb_lex_location loc = {0 };
99
99
stb_c_lexer_get_location (& jimp -> l , jimp -> l .where_firstchar , & loc );
100
- fprintf (stderr , "%s:%d:%d: ERROR: Unexpected member `%s`\n" , jimp -> path , loc .line_number , loc .line_offset + 1 , jimp -> member );
100
+ fprintf (stderr , "%s:%d:%d: ERROR: Unexpected member `%s`\n" , jimp -> file_path , loc .line_number , loc .line_offset + 1 , jimp -> member );
101
101
}
102
102
103
103
bool jimp_object_begin (Jimp * jimp )
@@ -147,7 +147,7 @@ bool jimp_bool(Jimp *jimp, bool *boolean)
147
147
} else {
148
148
stb_lex_location loc = {0 };
149
149
stb_c_lexer_get_location (& jimp -> l , jimp -> l .where_firstchar , & loc );
150
- fprintf (stderr , "%s:%d:%d: ERROR: Expected boolean but got `%s`\n" , jimp -> path , loc .line_number , loc .line_offset + 1 , jimp_token_kind (jimp -> l .token ));
150
+ fprintf (stderr , "%s:%d:%d: ERROR: Expected boolean but got `%s`\n" , jimp -> file_path , loc .line_number , loc .line_offset + 1 , jimp_token_kind (jimp -> l .token ));
151
151
return false;
152
152
}
153
153
return true;
@@ -172,7 +172,7 @@ bool jimp_expect_token(Jimp *jimp, long token)
172
172
if (jimp -> l .token != token ) {
173
173
stb_lex_location loc = {0 };
174
174
stb_c_lexer_get_location (& jimp -> l , jimp -> l .where_firstchar , & loc );
175
- fprintf (stderr , "%s:%d:%d: ERROR: expected %s, but got %s\n" , jimp -> path , loc .line_number , loc .line_offset + 1 , jimp_token_kind (token ), jimp_token_kind (jimp -> l .token ));
175
+ fprintf (stderr , "%s:%d:%d: ERROR: expected %s, but got %s\n" , jimp -> file_path , loc .line_number , loc .line_offset + 1 , jimp_token_kind (token ), jimp_token_kind (jimp -> l .token ));
176
176
return false;
177
177
}
178
178
return true;
0 commit comments