dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put invalid date (e.g. 29 FEB 1739) in phrase member.
[gedcom-parse.git]
/
gom
/
gom.c
diff --git
a/gom/gom.c
b/gom/gom.c
index 3616e79a241600a531e507fb58a022143d0090c6..a3188ac10a4115466112d52ca259980ab7e3a7ea 100644
(file)
--- a/
gom/gom.c
+++ b/
gom/gom.c
@@
-103,15
+103,29
@@
void subscribe_all()
}
}
}
}
+int gom_active = 0;
+
int gom_parse_file(const char* file_name)
{
int gom_parse_file(const char* file_name)
{
- subscribe_all();
+ if (gom_active) {
+ gom_cleanup();
+ }
+ else {
+ subscribe_all();
+ }
+ gom_active = 1;
return gedcom_parse_file(file_name);
}
int gom_new_model()
{
return gedcom_parse_file(file_name);
}
int gom_new_model()
{
- subscribe_all();
+ if (gom_active) {
+ gom_cleanup();
+ }
+ else {
+ subscribe_all();
+ }
+ gom_active = 1;
return gedcom_new_model();
}
return gedcom_new_model();
}