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
Completed doxygen conversion of the libgedcom part.
[gedcom-parse.git]
/
gom
/
source_citation.c
diff --git
a/gom/source_citation.c
b/gom/source_citation.c
index 45dc8428a28ecfeeea8255fafe31de26247d06ff..406972a7b57a5df92eceee4765bb2e44fe8b2f7f 100644
(file)
--- a/
gom/source_citation.c
+++ b/
gom/source_citation.c
@@
-49,10
+49,11
@@
Gedcom_ctxt sub_citation_start(_ELT_PARAMS_)
else {
struct source_citation *cit = SUB_MAKEFUNC(source_citation)();
if (cit) {
else {
struct source_citation *cit = SUB_MAKEFUNC(source_citation)();
if (cit) {
+ int type = ctxt_type(ctxt);
if (GEDCOM_IS_XREF_PTR(parsed_value))
cit->reference = GEDCOM_XREF_PTR(parsed_value);
if (GEDCOM_IS_XREF_PTR(parsed_value))
cit->reference = GEDCOM_XREF_PTR(parsed_value);
- switch (
ctxt->ctxt_
type) {
+ switch (type) {
case ELT_SUB_PLAC:
ADDFUNC2(place,source_citation)(ctxt, cit); break;
case ELT_SUB_FAM_EVT:
case ELT_SUB_PLAC:
ADDFUNC2(place,source_citation)(ctxt, cit); break;
case ELT_SUB_FAM_EVT:
@@
-81,7
+82,7
@@
Gedcom_ctxt sub_citation_start(_ELT_PARAMS_)
case REC_NOTE:
ADDFUNC2(note,source_citation)(ctxt, cit); break;
default:
case REC_NOTE:
ADDFUNC2(note,source_citation)(ctxt, cit); break;
default:
- UNEXPECTED_CONTEXT(
ctxt->ctxt_
type);
+ UNEXPECTED_CONTEXT(type);
}
result = MAKE_GOM_CTXT(elt, source_citation, cit);
}
}
result = MAKE_GOM_CTXT(elt, source_citation, cit);
}