Strategická: C: lepší alokace [BUGFIX]
This commit is contained in:
parent
d5242f5ba9
commit
d572980f00
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ struct State
|
||||||
// Ano, vím, že je to ošklivé, ale prostě parsovat JSON v C/C++ je za trest
|
// Ano, vím, že je to ošklivé, ale prostě parsovat JSON v C/C++ je za trest
|
||||||
int r;
|
int r;
|
||||||
jsmn_parser p;
|
jsmn_parser p;
|
||||||
t_len = 100000000;
|
int t_len = 100000000;
|
||||||
jsmntok_t * t = new jsmntok_t[t_len]; /* We expect no more than this count of tokens (jsmn limitation)*/
|
jsmntok_t * t = new jsmntok_t[t_len]; /* We expect no more than this count of tokens (jsmn limitation)*/
|
||||||
|
|
||||||
jsmn_init(&p);
|
jsmn_init(&p);
|
||||||
|
|
Loading…
Reference in a new issue