From 8de2da8b0e16dcaa95e797911b41105bf647e919 Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 30 Apr 2024 02:51:07 +0000 Subject: [PATCH] debug more git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@89 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Serenade/parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Serenade/parser.c b/Serenade/parser.c index 78f2f63..eb81268 100644 --- a/Serenade/parser.c +++ b/Serenade/parser.c @@ -230,6 +230,9 @@ struct sn_generic** sn_parse(char* data, unsigned long long size) { } void sn_generic_free(struct sn_interpreter* sn, struct sn_generic* g) { + printf("freed type %d \n:", g->type); + sn_print_to(stdout, g); + printf("\n"); if(g->type == SN_TYPE_STRING) { free(g->string); } else if(g->type == SN_TYPE_TREE) { @@ -237,9 +240,6 @@ 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); - sn_print_to(stdout, g); - printf("\n"); free(g); if(sn == NULL) return; int i; -- 2.43.0