]> Nishi Git Mirror - serenade.git/commitdiff
debug
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 02:47:25 +0000 (02:47 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 02:47:25 +0000 (02:47 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@88 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/parser.c

index 798c5892122c3912e581e1a3d0d21707fabefa9c..78f2f63aaf1e271fdf055994ce8a921280f12445 100644 (file)
@@ -237,7 +237,9 @@ void sn_generic_free(struct sn_interpreter* sn, struct sn_generic* g) {
        } else if(g->type == SN_TYPE_FUNCTION || g->type == SN_TYPE_VARIABLE) {
                free(g->name);
        }
-       printf("freed type %d\n", g->type);
+       printf("freed type %d \n:", g->type);
+       sn_print_to(stdout, g);
+       printf("\n");
        free(g);
        if(sn == NULL) return;
        int i;