From: Peter Verthez Date: Sat, 15 Dec 2001 13:29:28 +0000 (+0000) Subject: Re-added gedcom-debug-print statements. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=e8a39d9ba85d615389f716a0934fd6c673d438c9;p=gedcom-parse.git Re-added gedcom-debug-print statements. --- 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); }