Re-added gedcom-debug-print statements.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 15 Dec 2001 13:29:28 +0000 (13:29 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 15 Dec 2001 13:29:28 +0000 (13:29 +0000)
gedcom/gedcom.y

index dbef9e505cd1f54359c4270c6c446316fe10cb75..1f1aa74f750e9efa7721922c89071f290782adec 100644 (file)
@@ -1047,7 +1047,8 @@ note_line_item : /* empty */
                     }
                   }
                | DELIM line_item
                     }
                   }
                | DELIM line_item
-                   { $$ = $2; }
+                   { gedcom_debug_print("==Val: %s==", $2);
+                    $$ = $2; }
                ;
 
 note_subs   : /* empty */
                ;
 
 note_subs   : /* empty */
@@ -2312,11 +2313,13 @@ line_value  : POINTER        { $$ = $1; }
             ;
 
 mand_pointer : /* empty */ { gedcom_error(_("Missing pointer")); YYERROR; }
             ;
 
 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; }
              ;
 
 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 */ { }
                ;
 
 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);
     va_start(ap, s);
     res = vfprintf(trace_output, s, ap);
     va_end(ap);
+    fprintf(trace_output, "\n");
   }
   return(res);
 }
   }
   return(res);
 }