fix extraInfo parsing
This commit is contained in:
Родитель
d29d655aac
Коммит
dcc248d44e
|
@ -2700,12 +2700,11 @@ int main(int argc, char **argv) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
input[size] = 0;
|
input[size] = 0;
|
||||||
|
|
||||||
char *comment = strstr(input, "//");
|
|
||||||
char *extraInfoStart = strstr(input, "// EXTRA_INFO:");
|
char *extraInfoStart = strstr(input, "// EXTRA_INFO:");
|
||||||
if (comment) *comment = 0; // drop off the comments; TODO: parse extra info
|
|
||||||
if (extraInfoStart) {
|
if (extraInfoStart) {
|
||||||
extraInfo = arena.alloc();
|
extraInfo = arena.alloc();
|
||||||
extraInfo->parse(extraInfoStart + 14);
|
extraInfo->parse(extraInfoStart + 14);
|
||||||
|
*extraInfoStart = 0; // ignore extra info when parsing
|
||||||
}
|
}
|
||||||
|
|
||||||
if (receiveJSON) {
|
if (receiveJSON) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче