diff options
| author | Patrick | 2023-10-14 02:59:34 +0200 |
|---|---|---|
| committer | Patrick | 2023-10-14 02:59:34 +0200 |
| commit | d855fc21ed7a065f8b0d6f2607fef09b4c6865e1 (patch) | |
| tree | dcc26ae6e598b2426dc8c3242704be6a9e242e63 /main3.c | |
| parent | 343de1d73b29b83db7ea5ecf9b6d18fe50733f22 (diff) | |
| download | iftint-d855fc21ed7a065f8b0d6f2607fef09b4c6865e1.tar.gz iftint-d855fc21ed7a065f8b0d6f2607fef09b4c6865e1.zip | |
space in func dexl
Diffstat (limited to 'main3.c')
| -rw-r--r-- | main3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ void NodeDraw(Node *n) { switch (n->kind) { case NK_Namespace: { PRINTF("namespace"); printf(" %s {", n->data); indent++; for (int i = 0; i < n->childCount; i++) { INDENT NodeDraw(NodeGetChild(n, i)); } indent--; INDENT printf("}"); break; } case NK_Struct: { PRINTF("struct"); printf(" %s {", n->data); indent++; for (int i = 0; i < n->childCount; i++) { INDENT NodeDraw(NodeGetChild(n, i)); } indent--; INDENT printf("}"); break; } - case NK_Func: { PRINTF("fn"); printf(" %s ", n->data); NodeDraw(NodeGetChild(n, 0)); NodeDraw(NodeGetChild(n, 1)); break; } + case NK_Func: { PRINTF("fn"); printf(" %s ", n->data); NodeDraw(NodeGetChild(n, 0)); printf(" "); NodeDraw(NodeGetChild(n, 1)); break; } case NK_VarList: case NK_ExprList: { PRINTF("("); for (int i = 0; i < n->childCount; i++) { if (i != 0) printf(", "); NodeDraw(NodeGetChild(n, i)); } PRINTF(")"); break; } case NK_Var: { PRINTF("[%s]", n->data); break; } |
