From e8a39d9ba85d615389f716a0934fd6c673d438c9 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sat, 15 Dec 2001 13:29:28 +0000 Subject: [PATCH] Re-added gedcom-debug-print statements. --- gedcom/gedcom.y | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index dbef9e5..1f1aa74 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -1047,7 +1047,8 @@ note_line_item : /* empty */ } } | DELIM line_item - { $$ = $2; } + { gedcom_debug_print("==Val: %s==", $2); + $$ = $2; } ; note_subs : /* empty */ @@ -2312,11 +2313,13 @@ line_value : POINTER { $$ = $1; } ; mand_pointer : /* empty */ { gedcom_error(_("Missing pointer")); YYERROR; } - | DELIM POINTER { $$ = $2; } + | DELIM POINTER { gedcom_debug_print("==Ptr: %s==", $2); + $$ = $2; } ; mand_line_item : /* empty */ { gedcom_error(_("Missing value")); YYERROR; } - | DELIM line_item { $$ = $2; } + | DELIM line_item { gedcom_debug_print("==Val: %s==", $2); + $$ = $2; } ; opt_line_item : /* empty */ { } @@ -2636,6 +2639,7 @@ int gedcom_debug_print(char* s, ...) va_start(ap, s); res = vfprintf(trace_output, s, ap); va_end(ap); + fprintf(trace_output, "\n"); } return(res); } -- 2.30.2