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:
84f96f4
)
Debug print messages should not be terminated with newlines.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 25 Jan 2003 14:15:08 +0000
(14:15 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 25 Jan 2003 14:15:08 +0000
(14:15 +0000)
gedcom/gedcom.y
patch
|
blob
|
history
diff --git
a/gedcom/gedcom.y
b/gedcom/gedcom.y
index ef95178d08664ece62d34a5cc91a6ced0adb1415..2b52293d16d84b0c3b2f2a6b8409e51a794ad523 100644
(file)
--- a/
gedcom/gedcom.y
+++ b/
gedcom/gedcom.y
@@
-3997,7
+3997,7
@@
Gedcom_ctxt ctxt_stack[MAXGEDCLEVEL+1];
void push_countarray(int level)
{
int *count = NULL;
void push_countarray(int level)
{
int *count = NULL;
- gedcom_debug_print("Push Count level: %d, level: %d
\n
", count_level, level);
+ gedcom_debug_print("Push Count level: %d, level: %d", count_level, level);
if (count_level != level + 1) {
gedcom_error(_("Internal error: count level mismatch"));
exit(1);
if (count_level != level + 1) {
gedcom_error(_("Internal error: count level mismatch"));
exit(1);
@@
-4007,7
+4007,7
@@
void push_countarray(int level)
exit(1);
}
else {
exit(1);
}
else {
- gedcom_debug_print("calloc countarray %d
\n
", count_level);
+ gedcom_debug_print("calloc countarray %d", count_level);
count = (int *)calloc(YYNTOKENS, sizeof(int));
if (count == NULL) {
gedcom_error(_("Internal error: count array calloc error"));
count = (int *)calloc(YYNTOKENS, sizeof(int));
if (count == NULL) {
gedcom_error(_("Internal error: count array calloc error"));
@@
-4054,14
+4054,14
@@
int check_occurrence(int tag)
void pop_countarray()
{
int *count;
void pop_countarray()
{
int *count;
- gedcom_debug_print("Pop Count level: %d
\n
", count_level);
+ gedcom_debug_print("Pop Count level: %d", count_level);
if (count_level < 0) {
gedcom_error(_("Internal error: count array underflow"));
exit(1);
}
else {
count = count_arrays[count_level];
if (count_level < 0) {
gedcom_error(_("Internal error: count array underflow"));
exit(1);
}
else {
count = count_arrays[count_level];
- gedcom_debug_print("free countarray %d
\n
", count_level);
+ gedcom_debug_print("free countarray %d", count_level);
free(count);
count_arrays[count_level] = NULL;
}
free(count);
count_arrays[count_level] = NULL;
}
@@
-4069,7
+4069,7
@@
void pop_countarray()
void clean_up()
{
void clean_up()
{
- gedcom_debug_print("Cleanup countarrays
\n
");
+ gedcom_debug_print("Cleanup countarrays");
while (count_level > 0) {
pop_countarray();
--count_level;
while (count_level > 0) {
pop_countarray();
--count_level;