about day2
Author: luohuayouyisuiliushuiCreated May 12, 2026Updated May 12, 2026
I added this in leptjson.c.And I wanna know if it will work.
#define LEPT_PARSE_LITERAL(c,str) do { EXPECT(c, (*str));
size_t i = 1;
while(str[i] != 0){
if(*c->json != str[i])
return LEPT_PARSE_INVALID_VALUE;
c->json++; i++;
}
}while(0)
Source: miloyip/json-tutorial