Fix jsonsax compilation on QNX, 'index' appears to be a reserved symbol

This commit is contained in:
Josh Palmer 2017-01-07 23:15:24 +00:00
parent b85e2a8897
commit 453d823d2a
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ static void jsonx_parse_array(state_t* state)
while ( *state->json != ']' )
{
HANDLE_1( index, ndx++ );
HANDLE_1( array_index, ndx++ );
jsonx_parse_value( state );
skip_spaces( state );

View File

@ -51,7 +51,7 @@ typedef struct
int ( *start_array )( void* userdata );
int ( *end_array )( void* userdata );
int ( *key )( void* userdata, const char* name, size_t length );
int ( *index )( void* userdata, unsigned int index );
int ( *array_index )( void* userdata, unsigned int index );
int ( *string )( void* userdata, const char* string, size_t length );
int ( *number )( void* userdata, const char* number, size_t length );
int ( *boolean )( void* userdata, int istrue );