dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8cec613
)
Re-added gedcom-debug-print statements.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 15 Dec 2001 13:29:28 +0000
(13:29 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 15 Dec 2001 13:29:28 +0000
(13:29 +0000)
gedcom/gedcom.y
patch
|
blob
|
history
diff --git
a/gedcom/gedcom.y
b/gedcom/gedcom.y
index dbef9e505cd1f54359c4270c6c446316fe10cb75..1f1aa74f750e9efa7721922c89071f290782adec 100644
(file)
--- a/
gedcom/gedcom.y
+++ b/
gedcom/gedcom.y
@@
-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);
}