diff options
| author | Patrick | 2023-07-28 11:32:52 +0200 |
|---|---|---|
| committer | Patrick | 2023-07-28 11:32:52 +0200 |
| commit | 4c67fbe5877ad07a0cfb613c161aa8526970ea7f (patch) | |
| tree | 54203ae73d01922b3f7586e36e0f902be532c64d /main2.c | |
| parent | 43e389670ff0950611c61f19a4399b0eb441f04f (diff) | |
| download | iftint-4c67fbe5877ad07a0cfb613c161aa8526970ea7f.tar.gz iftint-4c67fbe5877ad07a0cfb613c161aa8526970ea7f.zip | |
PeekChar -> peeckh (?)
Diffstat (limited to 'main2.c')
| -rw-r--r-- | main2.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -297,6 +297,7 @@ PeekChar() { int GetInt() { static char intStr[16]; + intStr[0] = '\0'; int intStrLen = 0; int result = 0; int c; @@ -363,20 +364,20 @@ GetNode(JSONNode * parent) { } 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: |
