]> Nishi Git Mirror - serenade.git/commitdiff
better printing
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Fri, 26 Apr 2024 05:20:12 +0000 (05:20 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Fri, 26 Apr 2024 05:20:12 +0000 (05:20 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@45 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/interpreter.c

index 2e24cc921108161d07688119642bc02c464006ae..ebc1f2f3ecab280a519e3d41deaa173817645b09 100644 (file)
@@ -79,9 +79,7 @@ struct sn_generic* print_handler(struct sn_interpreter* sn, int args, struct sn_
                fflush(stdout);
        }
        printf("\n");
-       gen->type = SN_TYPE_FUNCTION;
-       gen->name = sn_strdup("print");
-       gen->handler = NULL;
+       gen->type = SN_TYPE_VOID;
        return gen;
 }