library/src/javascript/JSON/BP-LibJSMN.cc
/**
 * Fills token type and boundaries.
 */
Fills token type and boundaries.
Fills token type and boundaries .
static void jsmn_fill_token
(
	P_BP_JSON    json,
	jsmntok_t *token,
	jsmntype_t type,
    int start,
	int end
)
{
	if(!token)
	{
		BP_JSONParseAddErrorMsg(json, NULL, "jsmn_fill_token was called with a NULL token.");
		return;
	}
	token->type = type;
	token->start = start;
	token->end = end;
	token->size = 0;
}
static void jsmn_fill_token ( P_BP_JSON json , jsmntok_t * token , jsmntype_t type , int start , int end ) { if ( ! token ) { BP_JSONParseAddErrorMsg ( json , NULL , " " ) ; return ; } token -> type = type ; token -> start = start ; token -> end = end ; token -> size = 0 ; }
Fills token type and boundaries.
Fills token type and boundaries .