int
GetInt() {
static char intStr[16];
+ intStr[0] = '\0';
int intStrLen = 0;
int result = 0;
int c;
}
case 'o': {
result->kind = JSONNodeKind_Obj;
- while ((c = PeekChar()), (c != '\r') && (c != '\n')) {
+ while ((c = peekch()), (c != '\r') && (c != '\n')) {
JSONNodePush(result, JSONNodeNewStr(GetStr()));
JSONNodePush(result, GetNode(result));
}
- GetChar();
+ getch();
break;
}
case 'a': {
result->kind = JSONNodeKind_Arr;
- while ((c = PeekChar()), (c != '\r') && (c != '\n')) {
+ while ((c = peekch()), (c != '\r') && (c != '\n')) {
JSONNodePush(result, GetNode(result));
}
- GetChar();
+ getch();
break;
}
case 8: