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
Doxygen files.
[gedcom-parse.git]
/
gom
/
association.c
diff --git
a/gom/association.c
b/gom/association.c
index 9e392099c5fe73daed06146a375ed7e339952c11..dc45c06324fa32a810c80a542d8270155e3dac56 100644
(file)
--- a/
gom/association.c
+++ b/
gom/association.c
@@
-42,13
+42,14
@@
Gedcom_ctxt sub_assoc_start(_ELT_PARAMS_)
else {
struct association *assoc = SUB_MAKEFUNC(association)();
if (assoc) {
else {
struct association *assoc = SUB_MAKEFUNC(association)();
if (assoc) {
+ int type = ctxt_type(ctxt);
assoc->to = GEDCOM_XREF_PTR(parsed_value);
assoc->to = GEDCOM_XREF_PTR(parsed_value);
-
- switch (
ctxt->ctxt_
type) {
+
+ switch (type) {
case REC_INDI:
ADDFUNC2(individual,association)(ctxt, assoc);
default:
case REC_INDI:
ADDFUNC2(individual,association)(ctxt, assoc);
default:
- UNEXPECTED_CONTEXT(
ctxt->ctxt_
type);
+ UNEXPECTED_CONTEXT(type);
}
result = MAKE_GOM_CTXT(elt, association, assoc);
}
}
result = MAKE_GOM_CTXT(elt, association, assoc);
}