<html>
<head>
<title>Libgedcom interface details</title>
-
+
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body>
-
+
<h1 align="center">Libgedcom interface details</h1>
- <br>
-
+ <br>
+
<h2>Index</h2>
-
+
<ul>
- <li><a href="#Record_identifiers">Record identifiers</a></li>
- <li><a href="#Element_identifiers">Element identifiers</a></li>
- <li><a href="#Gedcom_val_types">Gedcom_val types</a></li>
-
+ <li><a href="#Record_identifiers">Record identifiers</a></li>
+ <li><a href="#Element_identifiers">Element identifiers</a></li>
+ <li><a href="#Gedcom_val_types">Gedcom_val types</a></li>
+
<ul>
- <li><a href="#struct_date_value">struct date_value</a></li>
- <li><a href="#struct_date">struct date</a><br>
- </li>
-
+ <li><a href="#struct_date_value">struct date_value</a></li>
+ <li><a href="#struct_date">struct date</a></li>
+ <li><a href="#struct_xref_value">struct xref_value</a><br>
+ </li>
+
</ul>
-
+
</ul>
- <br>
-
-<hr width="100%" size="2">
+ <br>
+
+<hr width="100%" size="2">
<h2><a name="Record_identifiers"></a>Record identifiers</h2>
- The following table describes the identifiers to be used in the record
- callbacks. The last column gives the <a href="#Gedcom_val_types"><code>
- Gedcom_val</code> type</a> of the <code>xref</code> argument in the header
- start callback.<br>
+ The following table describes the identifiers to be used in the record
+ callbacks. The last columns gives the <a href="#Gedcom_val_types"><code>
+ Gedcom_val</code> type</a> of the <code>xref</code> and <code>val</code><code>
+</code> arguments in the header start callback.<br>
+ <br>
+
+<table width="100%" border="1" cellspacing="2" cellpadding="2">
+ <tbody>
+ <tr>
+ <td valign="top" align="center"><b>Record</b><br>
+ </td>
+ <td valign="top" align="center"><b>Meaning</b><br>
+ </td>
+ <td valign="top" align="center"><b>Possible<br>
+ <code>xref</code> types</b><br>
+ </td>
+ <td valign="top" align="center"><b>Possible<br>
+ <code>val</code> types<br>
+ </b><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top">The header of the GEDCOM file<br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top">A record describing a family<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top">A record describing an individual<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_OBJE</code><br>
+ </td>
+ <td valign="top">A record describing a multimedia object<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(OBJE)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_NOTE</code><br>
+ </td>
+ <td valign="top">A record describing a note<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(NOTE)</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_REPO</code><br>
+ </td>
+ <td valign="top">A record describing a source repository<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(REPO)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top">A record describing a source<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SOUR)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top">A record describing the submission<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBN)</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_SUBM</code><br>
+ </td>
+ <td valign="top">A record describing the submitter<br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM</code>)<br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>REC_USER</code><br>
+ </td>
+ <td valign="top">An application-specific record (the <code>tag</code>
+ in the start callback contains the actually used tag).<br>
+ </td>
+ <td valign="top"><code>NULL<br>
+XREF_PTR(USER)<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+STRING<br>
+XREF_PTR(USER)</code><br>
+ </td>
+ </tr>
+
+ </tbody>
+</table>
+
+<hr width="100%" size="2">
+<h2><a name="Element_identifiers"></a>Element identifiers</h2>
+ The following table describes the identifiers to be used in the element
+ callbacks. The last column gives the <a href="file:///home/verthezp/src/external/gedcom-parse/doc/interface.html#Gedcom_val_types"><code>
+ Gedcom_val</code> type</a> of the <code>val</code> argument in the element
+ start callback.<br>
<br>
-<table width="100%" border="1" cellspacing="2" cellpadding="2">
+<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
- <td valign="top" align="center"><b>Record</b><br>
+ <td valign="top" align="center"><b>Element</b><br>
+ </td>
+ <td valign="top" align="center"><b>Possible<br>
+ tags<br>
+ </b><br>
+ </td>
+ <td valign="top" align="center"><b>Used within</b><br>
+ </td>
+ <td valign="top" align="center"><b>Possible<br>
+ <code>val</code> types<br>
+ </b><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR</code><br>
+ </td>
+ <td valign="top"><code>SOUR</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_VERS</code><br>
+ </td>
+ <td valign="top"><code>VERS</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_NAME</code><br>
+ </td>
+ <td valign="top"><code>NAME</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_CORP</code><br>
+ </td>
+ <td valign="top"><code>CORP</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>DATA</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_DATA_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SOUR_DATA_COPR</code><br>
+ </td>
+ <td valign="top"><code>COPR</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_DEST</code><br>
+ </td>
+ <td valign="top"><code>DEST</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_DATE_TIME</code><br>
+ </td>
+ <td valign="top"><code>TIME</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_DATE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SUBM</code><br>
+ </td>
+ <td valign="top"><code>SUBM</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_SUBN</code><br>
+ </td>
+ <td valign="top"><code>SUBN</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBN)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_FILE</code><br>
+ </td>
+ <td valign="top"><code>FILE</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_COPR</code><br>
+ </td>
+ <td valign="top"><code>COPR</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_GEDC</code><br>
+ </td>
+ <td valign="top"><code>GEDC</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_GEDC_VERS</code><br>
+ </td>
+ <td valign="top"><code>VERS</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_GEDC</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_GEDC_FORM</code><br>
+ </td>
+ <td valign="top"><code>FORM</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_GEDC</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_CHAR</code><br>
+ </td>
+ <td valign="top"><code>CHAR</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_CHAR_VERS</code><br>
+ </td>
+ <td valign="top"><code>VERS</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_CHAR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_LANG</code><br>
+ </td>
+ <td valign="top"><code>LANG</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_PLAC</code><br>
+ </td>
+ <td valign="top"><code>PLAC</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_PLAC_FORM</code><br>
+ </td>
+ <td valign="top"><code>FORM</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_PLAC</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_HEAD_NOTE</code><br>
+ </td>
+ <td valign="top"><code>NOTE</code><br>
+ </td>
+ <td valign="top"><code>REC_HEAD</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_FAM_HUSB</code><br>
+ </td>
+ <td valign="top"><code>HUSB</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_FAM_WIFE</code><br>
+ </td>
+ <td valign="top"><code>WIFE</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_FAM_CHIL</code><br>
+ </td>
+ <td valign="top"><code>CHIL</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_FAM_NCHI</code><br>
+ </td>
+ <td valign="top"><code>NCHI</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_FAM_SUBM</code><br>
+ </td>
+ <td valign="top"><code>SUBM</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_RESN</code><br>
+ </td>
+ <td valign="top"><code>RES</code><code>N</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_SEX</code><br>
+ </td>
+ <td valign="top"><code>SEX</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_SUBM</code><br>
+ </td>
+ <td valign="top"><code>SUBM</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_ALIA</code><br>
+ </td>
+ <td valign="top"><code>ALIA</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_ANCI</code><br>
+ </td>
+ <td valign="top"><code>ANCI</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_DESI</code><br>
+ </td>
+ <td valign="top"><code>DESI</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_RFN</code><br>
+ </td>
+ <td valign="top"><code>RFN</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_INDI_AFN</code><br>
+ </td>
+ <td valign="top"><code>AFN</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_OBJE_FORM</code><br>
+ </td>
+ <td valign="top"><code>FORM</code><br>
+ </td>
+ <td valign="top"><code>REC_OBJE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_OBJE_TITL</code><br>
+ </td>
+ <td valign="top"><code>TITL</code><br>
+ </td>
+ <td valign="top"><code>REC_OBJE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_OBJE_BLOB</code><br>
+ </td>
+ <td valign="top"><code>BLOB</code><br>
+ </td>
+ <td valign="top"><code>REC_OBJE</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_OBJE_BLOB_CONT</code><br>
+ </td>
+ <td valign="top"><code>CONT</code><br>
+ </td>
+ <td valign="top"><code>ELT_OBJE_BLOB</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_OBJE_OBJE</code><br>
+ </td>
+ <td valign="top"><code>OBJE</code><br>
+ </td>
+ <td valign="top"><code>REC_OBJE</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(OBJE)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_REPO_NAME</code><br>
+ </td>
+ <td valign="top"><code>NAME</code><br>
+ </td>
+ <td valign="top"><code>REC_REPO</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>DATA</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
+ </td>
+ <td valign="top"><code>EVEN</code><br>
+ </td>
+ <td valign="top"><code>ELT_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_DATA_EVEN_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_DATA_EVEN_PLAC</code><br>
+ </td>
+ <td valign="top"><code>PLAC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_DATA_AGNC</code><br>
+ </td>
+ <td valign="top"><code>AGNC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_AUTH</code><br>
+ </td>
+ <td valign="top"><code>AUTH</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_TITL</code><br>
+ </td>
+ <td valign="top"><code>TITL</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_ABBR</code><br>
+ </td>
+ <td valign="top"><code>ABBR</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_PUBL</code><br>
+ </td>
+ <td valign="top"><code>PUBL</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SOUR_TEXT</code><br>
+ </td>
+ <td valign="top"><code>TEXT</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_SUBM</code><br>
+ </td>
+ <td valign="top"><code>SUBM</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(SUBM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_FAMF</code><br>
+ </td>
+ <td valign="top"><code>FAMF</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_TEMP</code><br>
+ </td>
+ <td valign="top"><code>TEMP</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_ANCE</code><br>
+ </td>
+ <td valign="top"><code>ANCE</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_DESC</code><br>
+ </td>
+ <td valign="top"><code>DESC</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_ORDI</code><br>
+ </td>
+ <td valign="top"><code>ORDI</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBN_RIN</code><br>
+ </td>
+ <td valign="top"><code>RIN</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBM_NAME</code><br>
+ </td>
+ <td valign="top"><nobr><code>NAME</code></nobr><br>
+ </td>
+ <td valign="top"><code>REC_SUBM</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBM_LANG</code><br>
+ </td>
+ <td valign="top"><code>LANG</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBM</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBM_RFN</code><br>
+ </td>
+ <td valign="top"><code>RFN</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBM</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUBM_RIN</code><br>
+ </td>
+ <td valign="top"><code>RIN</code><br>
+ </td>
+ <td valign="top"><code>REC_SUBM</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>ADDR</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR_CORP,<br>
+ REC_REPO, REC_SUBM,<br>
+ </code><code>ELT_SUB_FAM_EVT</code>,<br>
+ <code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP<br>
+ </code><br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_CONT</code><br>
+ </td>
+ <td valign="top"><code>CONT</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_ADR1</code><br>
+ </td>
+ <td valign="top"><code>ADR1</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_ADR2</code><br>
+ </td>
+ <td valign="top"><code>ADR2</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_CITY</code><br>
+ </td>
+ <td valign="top"><code>CITY</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_STAE</code><br>
+ </td>
+ <td valign="top"><code>STAE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_POST</code><br>
+ </td>
+ <td valign="top"><code>POST</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ADDR_CTRY</code><br>
+ </td>
+ <td valign="top"><code>CTRY</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ADDR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_PHON</code><br>
+ </td>
+ <td valign="top"><code>PHON</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_SOUR_CORP,<br>
+ REC_REPO, REC_SUBM,<br>
+ </code><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP<br>
+ </code><br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ASSO</code><br>
+ </td>
+ <td valign="top"><code>ASSO</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(INDI)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ASSO_TYPE</code><br>
+ </td>
+ <td valign="top"><code>TYPE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ASSO</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_ASSO_RELA</code><br>
+ </td>
+ <td valign="top"><code>RELA</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_ASSO</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_CHAN</code><br>
+ </td>
+ <td valign="top"><code>CHAN</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_OBJE, REC_NOTE,<br>
+ REC_REPO, REC_SOUR,<br>
+ REC_SUBM<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_CHAN_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_CHAN</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_CHAN_TIME</code><br>
+ </td>
+ <td valign="top"><code>TIME</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_CHAN_DATE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAMC</code><br>
+ </td>
+ <td valign="top"><code>FAMC</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAMC_PEDI</code><br>
+ </td>
+ <td valign="top"><code>PEDI</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAMC</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_CONT</code><br>
+ </td>
+ <td valign="top"><code>CONT</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_NOTE, REC_NOTE,<br>
+ ELT_SOUR_AUTH, ELT_SOUR_TITL,<br>
+ ELT_SOUR_PUBL, ELT_SOUR_TEXT,<br>
+ ELT_SUB_NOTE, <br>
+ ELT_SUB_SOUR, ELT_SUB_SOUR_TEXT<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_CONC</code><br>
+ </td>
+ <td valign="top"><code>CONC</code><br>
+ </td>
+ <td valign="top"><code>ELT_HEAD_NOTE, REC_NOTE,<br>
+ ELT_SOUR_AUTH, ELT_SOUR_TITL,<br>
+ ELT_SOUR_PUBL, ELT_SOUR_TEXT,<br>
+ ELT_SUB_NOTE, <br>
+ ELT_SUB_SOUR, ELT_SUB_SOUR_TEXT<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_EVT_TYPE</code><br>
+ </td>
+ <td valign="top"><code>TYPE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_EVT_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
+ <code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR</code><code>,<br>
+ ELT_SUB_INDIV_RESI,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP<br>
+ </code><br>
+ <br>
+ <br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_EVT_AGE</code><br>
+ </td>
+ <td valign="top"><code>AGE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP</code><br>
+ <br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_EVT_AGNC</code><br>
+ </td>
+ <td valign="top"><code>AGNC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP</code><br>
+ <br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_EVT_CAUS</code><br>
+ </td>
+ <td valign="top"><code>CAUS</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP</code><br>
+ <br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAM_EVT</code><br>
+ </td>
+ <td valign="top"><code>ANUL, CENS, DIV,<br>
+ DIVF, ENGA, MARR,<br>
+ MARB, MARC, MARL,<br>
+ MARS</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAM_EVT_HUSB</code><br>
+ </td>
+ <td valign="top"><code>HUSB</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
+ <code>ELT_SUB_FAM_EVT_EVEN</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAM_EVT_WIFE</code><br>
+ </td>
+ <td valign="top"><code>WIFE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
+ <code>ELT_SUB_FAM_EVT_EVEN</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAM_EVT_AGE</code><br>
+ </td>
+ <td valign="top"><code>AGE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT_HUSB</code>,<br>
+ <code>ELT_SUB_FAM_EVT_WIFE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAM_EVT_EVEN</code><br>
+ </td>
+ <td valign="top"><code>EVEN</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_IDENT_REFN</code><br>
+ </td>
+ <td valign="top"><code>REFN</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_OBJE, REC_NOTE,<br>
+ REC_REPO, REC_SOUR<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_IDENT_REFN_TYPE</code><br>
+ </td>
+ <td valign="top"><code>TYPE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_IDENT_REFN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_IDENT_RIN</code><br>
+ </td>
+ <td valign="top"><code>RIN</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_OBJE, REC_NOTE,<br>
+ REC_REPO, REC_SOUR<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_ATTR</code><br>
+ </td>
+ <td valign="top"><code>CAST, DSCR, EDUC,<br>
+ IDNO, NATI, NCHR,<br>
+ NMR, OCCU, PROP,<br>
+ RELI, SSN, TITL</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_RESI</code><br>
+ </td>
+ <td valign="top"><code>RESI</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_BIRT</code><br>
+ </td>
+ <td valign="top"><code>BIRT, CHR</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_BIRT_FAMC</code><br>
+ </td>
+ <td valign="top"><code>FAMC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_INDIV_BIRT</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_GEN</code><br>
+ </td>
+ <td valign="top"><code>DEAT, BURI, CREM,<br>
+ BAPM, BARM, BASM,<br>
+ BLES, CHRA, CONF,<br>
+ FCOM, ORDN, NATU,<br>
+ EMIG, IMMI, CENS,<br>
+ PROB, WILL, GRAD,<br>
+ RETI</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_ADOP</code><br>
+ </td>
+ <td valign="top"><code>ADOP</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC</code><br>
+ </td>
+ <td valign="top"><code>FAMC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_INDIV_ADOP</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC_ADOP</code><br>
+ </td>
+ <td valign="top"><code>ADOP</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_INDIV_EVEN</code><br>
+ </td>
+ <td valign="top"><code>EVEN</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL</code><br>
+ </td>
+ <td valign="top"><code>BAPL, CONL, ENDL</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL_STAT</code><br>
+ </td>
+ <td valign="top"><code>STAT</code><br>
+ </td>
+ <td valign="top"><code></code><code>ELT_SUB_LIO_BAPL,<br>
+ ELT_SUB_LIO_SLGC<br>
+ </code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
+ ELT_SUB_LIO_SLGC<br>
+ </code><br>
+ <br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL_TEMP</code><br>
+ </td>
+ <td valign="top"><code>TEMP</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
+ ELT_SUB_LIO_SLGC<br>
+ </code><br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL_PLAC</code><br>
+ </td>
+ <td valign="top"><code>PLAC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
+ ELT_SUB_LIO_SLGC<br>
+ </code><br>
+ <br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_SLGC</code><br>
+ </td>
+ <td valign="top"><code>SLGC</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LIO_SLGC_FAMC</code><br>
+ </td>
+ <td valign="top"><code>FAMC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LIO_SLGC</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
+ </td>
+ <td valign="top"><code>SLGS</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM</code><br>
+ </td>
+ <td valign="top"><code>NULL</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS_STAT</code><br>
+ </td>
+ <td valign="top"><code>STAT</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS_TEMP</code><br>
+ </td>
+ <td valign="top"><code>TEMP</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS_PLAC</code><br>
+ </td>
+ <td valign="top"><code>PLAC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
+ </td>
+ <td valign="top"><code>OBJE</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_SOUR, REC_SUBM,<br>
+ </code><code>ELT_SUB_FAM_EVT,<br>
+ ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP,<br>
+ ELT_SUB_SOUR</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+XREF_PTR(OBJE)<br>
+ </code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE_FORM</code><br>
+ </td>
+ <td valign="top"><code>FORM</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE_TITL</code><br>
+ </td>
+ <td valign="top"><code>TITL</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE_FILE</code><br>
+ </td>
+ <td valign="top"><code>FILE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_NOTE</code><br>
</td>
- <td valign="top" align="center"><b>Meaning</b><br>
+ <td valign="top"><code>NOTE</code><br>
</td>
- <td valign="top" align="center"><b>Possible<br>
- <code>xref</code> types</b><br>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_OBJE, REC_REPO,<br>
+ REC_SOUR, ELT_SOUR_DATA,<br>
+ ELT_SUB_ASSO, ELT_SUB_CHAN,<br>
+ ELT_SUB_FAMC, </code><code>ELT_SUB_FAM_EVT,<br>
+ ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP,<br>
+ ELT_SUB_LIO_BAPL,<br>
+ ELT_SUB_LIO_SLGC,<br>
+ ELT_SUB_LSS_SLGS,<br>
+ ELT_SUB_MULTIM_OBJE,<br>
+ ELT_SUB_PERS_NAME,<br>
+ ELT_SUB_PLAC,<br>
+ ELT_SUB_SOUR,<br>
+ ELT_SUB_REPO,<br>
+ ELT_SUB_FAMS</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING<br>
+XREF_PTR(NOTE)<br>
+ </code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_HEAD</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
- <td valign="top">The header of the GEDCOM file<br>
+ <td valign="top"><code>NAME</code><br>
</td>
- <td valign="top"><code>NULL</code><br>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_FAM</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_NPFX</code><br>
</td>
- <td valign="top">A record describing a family<br>
+ <td valign="top"><code>NPFX</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_INDI</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_GIVN</code><br>
</td>
- <td valign="top">A record describing an individual<br>
+ <td valign="top"><code>GIVN</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_OBJE</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_NICK</code><br>
+ </td>
+ <td valign="top"><code>NICK</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
- <td valign="top">A record describing a multimedia object<br>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_SPFX</code><br>
+ </td>
+ <td valign="top"><code>SPFX</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_NOTE</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_SURN</code><br>
</td>
- <td valign="top">A record describing a note<br>
+ <td valign="top"><code>SURN</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_REPO</code><br>
+ <td valign="top"><code>ELT_SUB_PERS_NAME_NSFX</code><br>
</td>
- <td valign="top">A record describing a source repository<br>
+ <td valign="top"><code>NSFX</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_SOUR</code><br>
+ <td valign="top"><code>ELT_SUB_PLAC</code><br>
</td>
- <td valign="top">A record describing a source<br>
+ <td valign="top"><code>PLAC</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
+ <code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_SUBN</code><br>
+ <td valign="top"><code>ELT_SUB_PLAC_FORM</code><br>
</td>
- <td valign="top">A record describing the submission<br>
+ <td valign="top"><code>FORM</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_PLAC</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_SUBM</code><br>
+ <td valign="top"><code>ELT_SUB_SOUR</code><br>
+ </td>
+ <td valign="top"><code>SOUR</code><br>
+ </td>
+ <td valign="top"><code>REC_FAM, REC_INDI,<br>
+ REC_NOTE, ELT_SUB_ASSO<br>
+ </code><code>ELT_SUB_FAM_EVT,<br>
+ </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
+ ELT_SUB_INDIV_ATTR,<br>
+ ELT_SUB_INDIV_RESI</code><code>,<br>
+ ELT_SUB_INDIV_BIRT,<br>
+ ELT_SUB_INDIV_GEN,<br>
+ ELT_SUB_INDIV_ADOP,<br>
+ ELT_SUB_LIO_BAPL,<br>
+ ELT_SUB_LIO_SLGC,<br>
+ ELT_SUB_LSS_SLGS,<br>
+ ELT_SUB_NOTE,<br>
+ ELT_SUB_PERS_NAME,<br>
+ ELT_SUB_PLAC</code><br>
</td>
- <td valign="top">A record describing the submitter<br>
+ <td valign="top"><code>STRING<br>
+XREF_PTR(SOUR)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_PAGE</code><br>
+ </td>
+ <td valign="top"><code>PAGE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_EVEN</code><br>
+ </td>
+ <td valign="top"><code>EVEN</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_EVEN_ROLE</code><br>
+ </td>
+ <td valign="top"><code>ROLE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR_EVEN</code><br>
</td>
<td valign="top"><code>STRING</code><br>
</td>
</tr>
<tr>
- <td valign="top"><code>REC_USER</code><br>
+ <td valign="top"><code>ELT_SUB_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>DATA</code><br>
</td>
- <td valign="top">An application-specific record (the <code>tag</code>
- in the start callback contains the actually used tag).<br>
+ <td valign="top"><code>ELT_SUB_SOUR</code><br>
</td>
<td valign="top"><code>NULL</code><br>
- <code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_DATA_DATE</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>DATE</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_TEXT</code><br>
+ </td>
+ <td valign="top"><code>TEXT</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR<br>
+ ELT_SUB_SOUR_DATA</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_SOUR_QUAY</code><br>
+ </td>
+ <td valign="top"><code>QUAY</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_SOUR</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_REPO</code><br>
+ </td>
+ <td valign="top"><code>REPO</code><br>
+ </td>
+ <td valign="top"><code>REC_SOUR</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(REPO)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_REPO_CALN</code><br>
+ </td>
+ <td valign="top"><code>CALN</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_REPO</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_REPO_CALN_MEDI</code><br>
+ </td>
+ <td valign="top"><code>MEDI</code><br>
+ </td>
+ <td valign="top"><code>ELT_SUB_REPO_CALN</code><br>
+ </td>
+ <td valign="top"><code>STRING</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_SUB_FAMS</code><br>
+ </td>
+ <td valign="top"><code>FAMS</code><br>
+ </td>
+ <td valign="top"><code>REC_INDI</code><br>
+ </td>
+ <td valign="top"><code>XREF_PTR(FAM)</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>ELT_USER</code><br>
+ </td>
+ <td valign="top"><code>any tag starting<br>
+ with an underscore</code><br>
+ </td>
+ <td valign="top"><code>anywhere</code><br>
+ </td>
+ <td valign="top"><code>NULL<br>
+ STRING<br>
+XREF_PTR(USER)</code><br>
</td>
</tr>
</tbody>
</table>
-
-<hr width="100%" size="2">
-<h2><a name="Element_identifiers"></a>Element identifiers</h2>
- The following table describes the identifiers to be used in the element
- callbacks. The last column gives the <a href="file:///home/verthezp/src/external/gedcom-parse/doc/interface.html#Gedcom_val_types"><code>
- Gedcom_val</code> type</a> of the <code>val</code> argument in the element
- start callback.<br>
- <br>
-
-<table cellpadding="2" cellspacing="2" border="1" width="100%">
- <tbody>
- <tr>
- <td valign="top" align="center"><b>Element</b><br>
- </td>
- <td valign="top" align="center"><b>Possible<br>
- tags<br>
- </b><br>
- </td>
- <td valign="top" align="center"><b>Used within</b><br>
- </td>
- <td valign="top" align="center"><b>Possible<br>
- <code>val</code> types<br>
- </b><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR</code><br>
- </td>
- <td valign="top"><code>SOUR</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_VERS</code><br>
- </td>
- <td valign="top"><code>VERS</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_NAME</code><br>
- </td>
- <td valign="top"><code>NAME</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_CORP</code><br>
- </td>
- <td valign="top"><code>CORP</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>DATA</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_DATA_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SOUR_DATA_COPR</code><br>
- </td>
- <td valign="top"><code>COPR</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_DEST</code><br>
- </td>
- <td valign="top"><code>DEST</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_DATE_TIME</code><br>
- </td>
- <td valign="top"><code>TIME</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_DATE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SUBM</code><br>
- </td>
- <td valign="top"><code>SUBM</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_SUBN</code><br>
- </td>
- <td valign="top"><code>SUBN</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_FILE</code><br>
- </td>
- <td valign="top"><code>FILE</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_COPR</code><br>
- </td>
- <td valign="top"><code>COPR</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_GEDC</code><br>
- </td>
- <td valign="top"><code>GEDC</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_GEDC_VERS</code><br>
- </td>
- <td valign="top"><code>VERS</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_GEDC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_GEDC_FORM</code><br>
- </td>
- <td valign="top"><code>FORM</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_GEDC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_CHAR</code><br>
- </td>
- <td valign="top"><code>CHAR</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_CHAR_VERS</code><br>
- </td>
- <td valign="top"><code>VERS</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_CHAR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_LANG</code><br>
- </td>
- <td valign="top"><code>LANG</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_PLAC</code><br>
- </td>
- <td valign="top"><code>PLAC</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_PLAC_FORM</code><br>
- </td>
- <td valign="top"><code>FORM</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_PLAC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_HEAD_NOTE</code><br>
- </td>
- <td valign="top"><code>NOTE</code><br>
- </td>
- <td valign="top"><code>REC_HEAD</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_FAM_HUSB</code><br>
- </td>
- <td valign="top"><code>HUSB</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_FAM_WIFE</code><br>
- </td>
- <td valign="top"><code>WIFE</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_FAM_CHIL</code><br>
- </td>
- <td valign="top"><code>CHIL</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_FAM_NCHI</code><br>
- </td>
- <td valign="top"><code>NCHI</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_FAM_SUBM</code><br>
- </td>
- <td valign="top"><code>SUBM</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_RESN</code><br>
- </td>
- <td valign="top"><code>RES</code><code>N</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_SEX</code><br>
- </td>
- <td valign="top"><code>SEX</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_SUBM</code><br>
- </td>
- <td valign="top"><code>SUBM</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_ALIA</code><br>
- </td>
- <td valign="top"><code>ALIA</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_ANCI</code><br>
- </td>
- <td valign="top"><code>ANCI</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_DESI</code><br>
- </td>
- <td valign="top"><code>DESI</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_RFN</code><br>
- </td>
- <td valign="top"><code>RFN</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_INDI_AFN</code><br>
- </td>
- <td valign="top"><code>AFN</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_OBJE_FORM</code><br>
- </td>
- <td valign="top"><code>FORM</code><br>
- </td>
- <td valign="top"><code>REC_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_OBJE_TITL</code><br>
- </td>
- <td valign="top"><code>TITL</code><br>
- </td>
- <td valign="top"><code>REC_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_OBJE_BLOB</code><br>
- </td>
- <td valign="top"><code>BLOB</code><br>
- </td>
- <td valign="top"><code>REC_OBJE</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_OBJE_BLOB_CONT</code><br>
- </td>
- <td valign="top"><code>CONT</code><br>
- </td>
- <td valign="top"><code>ELT_OBJE_BLOB</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_OBJE_OBJE</code><br>
- </td>
- <td valign="top"><code>OBJE</code><br>
- </td>
- <td valign="top"><code>REC_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_REPO_NAME</code><br>
- </td>
- <td valign="top"><code>NAME</code><br>
- </td>
- <td valign="top"><code>REC_REPO</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>DATA</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
- </td>
- <td valign="top"><code>EVEN</code><br>
- </td>
- <td valign="top"><code>ELT_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_DATA_EVEN_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_DATA_EVEN_PLAC</code><br>
- </td>
- <td valign="top"><code>PLAC</code><br>
- </td>
- <td valign="top"><code>ELT_SOUR_DATA_EVEN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_DATA_AGNC</code><br>
- </td>
- <td valign="top"><code>AGNC</code><br>
- </td>
- <td valign="top"><code>ELT_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_AUTH</code><br>
- </td>
- <td valign="top"><code>AUTH</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_TITL</code><br>
- </td>
- <td valign="top"><code>TITL</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_ABBR</code><br>
- </td>
- <td valign="top"><code>ABBR</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_PUBL</code><br>
- </td>
- <td valign="top"><code>PUBL</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SOUR_TEXT</code><br>
- </td>
- <td valign="top"><code>TEXT</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_SUBM</code><br>
- </td>
- <td valign="top"><code>SUBM</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_FAMF</code><br>
- </td>
- <td valign="top"><code>FAMF</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_TEMP</code><br>
- </td>
- <td valign="top"><code>TEMP</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_ANCE</code><br>
- </td>
- <td valign="top"><code>ANCE</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_DESC</code><br>
- </td>
- <td valign="top"><code>DESC</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_ORDI</code><br>
- </td>
- <td valign="top"><code>ORDI</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBN_RIN</code><br>
- </td>
- <td valign="top"><code>RIN</code><br>
- </td>
- <td valign="top"><code>REC_SUBN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBM_NAME</code><br>
- </td>
- <td valign="top"><nobr><code>NAME</code></nobr><br>
- </td>
- <td valign="top"><code>REC_SUBM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBM_LANG</code><br>
- </td>
- <td valign="top"><code>LANG</code><br>
- </td>
- <td valign="top"><code>REC_SUBM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBM_RFN</code><br>
- </td>
- <td valign="top"><code>RFN</code><br>
- </td>
- <td valign="top"><code>REC_SUBM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUBM_RIN</code><br>
- </td>
- <td valign="top"><code>RIN</code><br>
- </td>
- <td valign="top"><code>REC_SUBM</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>ADDR</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR_CORP,<br>
- REC_REPO, REC_SUBM,<br>
- </code><code>ELT_SUB_FAM_EVT</code>,<br>
- <code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP<br>
- </code><br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_CONT</code><br>
- </td>
- <td valign="top"><code>CONT</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_ADR1</code><br>
- </td>
- <td valign="top"><code>ADR1</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_ADR2</code><br>
- </td>
- <td valign="top"><code>ADR2</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_CITY</code><br>
- </td>
- <td valign="top"><code>CITY</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_STAE</code><br>
- </td>
- <td valign="top"><code>STAE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_POST</code><br>
- </td>
- <td valign="top"><code>POST</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ADDR_CTRY</code><br>
- </td>
- <td valign="top"><code>CTRY</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ADDR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PHON</code><br>
- </td>
- <td valign="top"><code>PHON</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_SOUR_CORP,<br>
- REC_REPO, REC_SUBM,<br>
- </code><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP<br>
- </code><br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ASSO</code><br>
- </td>
- <td valign="top"><code>ASSO</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ASSO_TYPE</code><br>
- </td>
- <td valign="top"><code>TYPE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ASSO</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_ASSO_RELA</code><br>
- </td>
- <td valign="top"><code>RELA</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_ASSO</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_CHAN</code><br>
- </td>
- <td valign="top"><code>CHAN</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_OBJE, REC_NOTE,<br>
- REC_REPO, REC_SOUR,<br>
- REC_SUBM<br>
- </code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_CHAN_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_CHAN</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_CHAN_TIME</code><br>
- </td>
- <td valign="top"><code>TIME</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_CHAN_DATE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAMC</code><br>
- </td>
- <td valign="top"><code>FAMC</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAMC_PEDI</code><br>
- </td>
- <td valign="top"><code>PEDI</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAMC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_CONT</code><br>
- </td>
- <td valign="top"><code>CONT</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_NOTE, REC_NOTE,<br>
- ELT_SOUR_AUTH, ELT_SOUR_TITL,<br>
- ELT_SOUR_PUBL, ELT_SOUR_TEXT,<br>
- ELT_SUB_NOTE, <br>
- ELT_SUB_SOUR, ELT_SUB_SOUR_TEXT<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_CONC</code><br>
- </td>
- <td valign="top"><code>CONC</code><br>
- </td>
- <td valign="top"><code>ELT_HEAD_NOTE, REC_NOTE,<br>
- ELT_SOUR_AUTH, ELT_SOUR_TITL,<br>
- ELT_SOUR_PUBL, ELT_SOUR_TEXT,<br>
- ELT_SUB_NOTE, <br>
- ELT_SUB_SOUR, ELT_SUB_SOUR_TEXT<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_EVT_TYPE</code><br>
- </td>
- <td valign="top"><code>TYPE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_EVT_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
- <code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR</code><code>,<br>
- ELT_SUB_INDIV_RESI,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP<br>
- </code><br>
- <br>
- <br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_EVT_AGE</code><br>
- </td>
- <td valign="top"><code>AGE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP</code><br>
- <br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_EVT_AGNC</code><br>
- </td>
- <td valign="top"><code>AGNC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP</code><br>
- <br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_EVT_CAUS</code><br>
- </td>
- <td valign="top"><code>CAUS</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP</code><br>
- <br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAM_EVT</code><br>
- </td>
- <td valign="top"><code>ANUL, CENS, DIV,<br>
- DIVF, ENGA, MARR,<br>
- MARB, MARC, MARL,<br>
- MARS</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAM_EVT_HUSB</code><br>
- </td>
- <td valign="top"><code>HUSB</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
- <code>ELT_SUB_FAM_EVT_EVEN</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAM_EVT_WIFE</code><br>
- </td>
- <td valign="top"><code>WIFE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
- <code>ELT_SUB_FAM_EVT_EVEN</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAM_EVT_AGE</code><br>
- </td>
- <td valign="top"><code>AGE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT_HUSB</code>,<br>
- <code>ELT_SUB_FAM_EVT_WIFE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAM_EVT_EVEN</code><br>
- </td>
- <td valign="top"><code>EVEN</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_IDENT_REFN</code><br>
- </td>
- <td valign="top"><code>REFN</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_OBJE, REC_NOTE,<br>
- REC_REPO, REC_SOUR<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_IDENT_REFN_TYPE</code><br>
- </td>
- <td valign="top"><code>TYPE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_IDENT_REFN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_IDENT_RIN</code><br>
- </td>
- <td valign="top"><code>RIN</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_OBJE, REC_NOTE,<br>
- REC_REPO, REC_SOUR<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_ATTR</code><br>
- </td>
- <td valign="top"><code>CAST, DSCR, EDUC,<br>
- IDNO, NATI, NCHR,<br>
- NMR, OCCU, PROP,<br>
- RELI, SSN, TITL</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_RESI</code><br>
- </td>
- <td valign="top"><code>RESI</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_BIRT</code><br>
- </td>
- <td valign="top"><code>BIRT, CHR</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_BIRT_FAMC</code><br>
- </td>
- <td valign="top"><code>FAMC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_INDIV_BIRT</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_GEN</code><br>
- </td>
- <td valign="top"><code>DEAT, BURI, CREM,<br>
- BAPM, BARM, BASM,<br>
- BLES, CHRA, CONF,<br>
- FCOM, ORDN, NATU,<br>
- EMIG, IMMI, CENS,<br>
- PROB, WILL, GRAD,<br>
- RETI</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_ADOP</code><br>
- </td>
- <td valign="top"><code>ADOP</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC</code><br>
- </td>
- <td valign="top"><code>FAMC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_INDIV_ADOP</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC_ADOP</code><br>
- </td>
- <td valign="top"><code>ADOP</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_INDIV_ADOP_FAMC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_INDIV_EVEN</code><br>
- </td>
- <td valign="top"><code>EVEN</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_BAPL</code><br>
- </td>
- <td valign="top"><code>BAPL, CONL, ENDL</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_BAPL_STAT</code><br>
- </td>
- <td valign="top"><code>STAT</code><br>
- </td>
- <td valign="top"><code></code><code>ELT_SUB_LIO_BAPL,<br>
- ELT_SUB_LIO_SLGC<br>
- </code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_BAPL_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
- ELT_SUB_LIO_SLGC<br>
- </code><br>
- <br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_BAPL_TEMP</code><br>
- </td>
- <td valign="top"><code>TEMP</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
- ELT_SUB_LIO_SLGC<br>
- </code><br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_BAPL_PLAC</code><br>
- </td>
- <td valign="top"><code>PLAC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LIO_BAPL</code><code>,<br>
- ELT_SUB_LIO_SLGC<br>
- </code><br>
- <br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_SLGC</code><br>
- </td>
- <td valign="top"><code>SLGC</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LIO_SLGC_FAMC</code><br>
- </td>
- <td valign="top"><code>FAMC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LIO_SLGC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
- </td>
- <td valign="top"><code>SLGS</code><br>
- </td>
- <td valign="top"><code>REC_FAM</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LSS_SLGS_STAT</code><br>
- </td>
- <td valign="top"><code>STAT</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LSS_SLGS_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LSS_SLGS_TEMP</code><br>
- </td>
- <td valign="top"><code>TEMP</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_LSS_SLGS_PLAC</code><br>
- </td>
- <td valign="top"><code>PLAC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_LSS_SLGS</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
- </td>
- <td valign="top"><code>OBJE</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_SOUR, REC_SUBM,<br>
- </code><code>ELT_SUB_FAM_EVT,<br>
- ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP,<br>
- ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE_FORM</code><br>
- </td>
- <td valign="top"><code>FORM</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE_TITL</code><br>
- </td>
- <td valign="top"><code>TITL</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE_FILE</code><br>
- </td>
- <td valign="top"><code>FILE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_MULTIM_OBJE</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_NOTE</code><br>
- </td>
- <td valign="top"><code>NOTE</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_OBJE, REC_REPO,<br>
- REC_SOUR, ELT_SOUR_DATA,<br>
- ELT_SUB_ASSO, ELT_SUB_CHAN,<br>
- ELT_SUB_FAMC, </code><code>ELT_SUB_FAM_EVT,<br>
- ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP,<br>
- ELT_SUB_LIO_BAPL,<br>
- ELT_SUB_LIO_SLGC,<br>
- ELT_SUB_LSS_SLGS,<br>
- ELT_SUB_MULTIM_OBJE,<br>
- ELT_SUB_PERS_NAME,<br>
- ELT_SUB_PLAC,<br>
- ELT_SUB_SOUR,<br>
- ELT_SUB_REPO,<br>
- ELT_SUB_FAMS</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>NAME</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_NPFX</code><br>
- </td>
- <td valign="top"><code>NPFX</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_GIVN</code><br>
- </td>
- <td valign="top"><code>GIVN</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_NICK</code><br>
- </td>
- <td valign="top"><code>NICK</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_SPFX</code><br>
- </td>
- <td valign="top"><code>SPFX</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_SURN</code><br>
- </td>
- <td valign="top"><code>SURN</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PERS_NAME_NSFX</code><br>
- </td>
- <td valign="top"><code>NSFX</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PERS_NAME</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PLAC</code><br>
- </td>
- <td valign="top"><code>PLAC</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_FAM_EVT</code>,<br>
- <code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_PLAC_FORM</code><br>
- </td>
- <td valign="top"><code>FORM</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_PLAC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>SOUR</code><br>
- </td>
- <td valign="top"><code>REC_FAM, REC_INDI,<br>
- REC_NOTE, ELT_SUB_ASSO<br>
- </code><code>ELT_SUB_FAM_EVT,<br>
- </code><code>ELT_SUB_FAM_EVT_EVEN,<br>
- ELT_SUB_INDIV_ATTR,<br>
- ELT_SUB_INDIV_RESI</code><code>,<br>
- ELT_SUB_INDIV_BIRT,<br>
- ELT_SUB_INDIV_GEN,<br>
- ELT_SUB_INDIV_ADOP,<br>
- ELT_SUB_LIO_BAPL,<br>
- ELT_SUB_LIO_SLGC,<br>
- ELT_SUB_LSS_SLGS,<br>
- ELT_SUB_NOTE,<br>
- ELT_SUB_PERS_NAME,<br>
- ELT_SUB_PLAC</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_PAGE</code><br>
- </td>
- <td valign="top"><code>PAGE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_EVEN</code><br>
- </td>
- <td valign="top"><code>EVEN</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_EVEN_ROLE</code><br>
- </td>
- <td valign="top"><code>ROLE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR_EVEN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>DATA</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>NULL</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_DATA_DATE</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>DATE</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_TEXT</code><br>
- </td>
- <td valign="top"><code>TEXT</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR<br>
- ELT_SUB_SOUR_DATA</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_SOUR_QUAY</code><br>
- </td>
- <td valign="top"><code>QUAY</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_REPO</code><br>
- </td>
- <td valign="top"><code>REPO</code><br>
- </td>
- <td valign="top"><code>REC_SOUR</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_REPO_CALN</code><br>
- </td>
- <td valign="top"><code>CALN</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_REPO</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_REPO_CALN_MEDI</code><br>
- </td>
- <td valign="top"><code>MEDI</code><br>
- </td>
- <td valign="top"><code>ELT_SUB_REPO_CALN</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_SUB_FAMS</code><br>
- </td>
- <td valign="top"><code>FAMS</code><br>
- </td>
- <td valign="top"><code>REC_INDI</code><br>
- </td>
- <td valign="top"><code>STRING</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>ELT_USER</code><br>
- </td>
- <td valign="top"><code>any tag starting<br>
- with an underscore</code><br>
- </td>
- <td valign="top"><code>anywhere</code><br>
- </td>
- <td valign="top"><code>NULL<br>
- STRING</code><br>
- </td>
- </tr>
-
- </tbody>
-</table>
-
-<hr width="100%" size="2">
+
+<hr width="100%" size="2">
<h2><a name="Gedcom_val_types"></a>Gedcom_val types<br>
- </h2>
- Currently, the specific <code>Gedcom_val</code> types are (with <code>
- val</code> of type <code>Gedcom_val</code>):<br>
- <br>
-
+ </h2>
+ Currently, the specific <code>Gedcom_val</code> types are (with <code>
+ val</code> of type <code>Gedcom_val</code>):<br>
+ <br>
+
<table cellpadding="2" cellspacing="2" border="1" width="100%">
- <tbody>
- <tr>
- <td valign="top"><br>
- </td>
- <td valign="top"><b>type checker</b><br>
- </td>
- <td valign="top"><b>cast operator</b><br>
- </td>
- </tr>
- <tr>
- <td valign="top">null value<br>
- </td>
- <td valign="top"><code>GEDCOM_IS_NULL(val)</code><br>
- </td>
- <td valign="top">N/A<br>
- </td>
- </tr>
- <tr>
- <td valign="top">string<br>
- </td>
- <td valign="top"><code>GEDCOM_IS_STRING(val)</code><br>
- </td>
- <td valign="top"><code>char* str = GEDCOM_STRING(val);</code><br>
- </td>
- </tr>
- <tr>
- <td valign="top">date<br>
- </td>
- <td valign="top"><code>GEDCOM_IS_DATE(val)</code><br>
- </td>
- <td valign="top"><code>struct date_value dv = GEDCOM_DATE(val);</code></td>
- </tr>
-
- </tbody>
+ <tbody>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><b>type checker</b><br>
+ </td>
+ <td valign="top"><b>cast operator</b><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">null value<br>
+ </td>
+ <td valign="top"><code>GEDCOM_IS_NULL(val)</code><br>
+ </td>
+ <td valign="top">N/A<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">string<br>
+ </td>
+ <td valign="top"><code>GEDCOM_IS_STRING(val)</code><br>
+ </td>
+ <td valign="top"><code>char* str = GEDCOM_STRING(val);</code><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">date<br>
+ </td>
+ <td valign="top"><code>GEDCOM_IS_DATE(val)</code><br>
+ </td>
+ <td valign="top"><code>struct date_value dv = GEDCOM_DATE(val);</code></td>
+ </tr>
+ <tr>
+ <td valign="top">xref pointer<br>
+ </td>
+ <td valign="top"><code>GEDCOM_IS_XREF_PTR(val)</code><br>
+ </td>
+ <td valign="top"><code>struct xref_value *xr = GEDCOM_XREF_PTR(val);</code><br>
+ </td>
+ </tr>
+
+ </tbody>
</table>
- <br>
- <br>
- The type checker returns a true or a false value according to the type
- of the value, but this is in principle only necessary in the rare circumstances
- that two types are possible, or where an optional value can be provided.
+ <br>
+ <br>
+ The type checker returns a true or a false value according to the type
+ of the value, but this is in principle only necessary in the rare circumstances
+ that two types are possible, or where an optional value can be provided.
In most cases, the type is fixed for a specific tag.<br>
- <br>
- The null value is used for when the GEDCOM spec doesn't allow a value,
+ <br>
+ The null value is used for when the GEDCOM spec doesn't allow a value,
or when an optional value is allowed but none is given.<br>
- <br>
- The string value is the most general used value currently, for all those
- values that don't have a more specific meaning. In essence, the value
- that is returned by GEDCOM_STRING is always the same as the raw_value passed
+ <br>
+ The string value is the most general used value currently, for all those
+ values that don't have a more specific meaning. In essence, the value
+ that is returned by GEDCOM_STRING is always the same as the raw_value passed
to the start callback, and is thus in fact redundant.<br>
- <br>
- The date value is used for all elements that return a date.<br>
- <br>
-
+ <br>
+ The date value is used for all elements that return a date. See
+<a href="#struct_date_value">here</a> for the definition.<br>
+<br>
+The xref value is for cross-references between records in the file. See
+<a href="#struct_xref_value">here</a> for the definition.<br>
+ <br>
+
<h3><a name="struct_date_value"></a>struct date_value</h3>
- This struct describes a date as given in the GEDCOM file, and has the
+ This struct describes a date as given in the GEDCOM file, and has the
following definition:<br>
-
+
<blockquote><code>struct date_value {<br>
- Date_value_type type;<br>
- struct date date1;<br>
- struct date date2;<br>
- char phrase[MAX_PHRASE_LEN
- + 1];<br>
- };</code><br>
- </blockquote>
- It depends on the first member, the type, which members are actually
-relevant:<br>
- <br>
-
+ Date_value_type type;<br>
+ struct date date1;<br>
+ struct date date2;<br>
+ char phrase[MAX_PHRASE_LEN
+ + 1];<br>
+ };</code><br>
+ </blockquote>
+ It depends on the first member, the type, which members are actually
+ relevant:<br>
+ <br>
+
<table cellpadding="2" cellspacing="2" border="1" width="100%">
- <tbody>
- <tr>
- <td valign="top" align="center"><b>Date_value_type</b><br>
- </td>
- <td valign="top" align="center"><b>Meaning</b><br>
- </td>
- <td valign="top" align="center"><b>Relevant members</b><br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_NO_MODIFIER</code><br>
- </td>
- <td valign="top">just a simple date<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_BEFORE</code><br>
- </td>
- <td valign="top">a range (BEFORE date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_AFTER</code><br>
- </td>
- <td valign="top">a range (AFTER date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_BETWEEN</code><br>
- </td>
- <td valign="top">a range (BETWEEN date1 AND date2)<br>
- </td>
- <td valign="top">date1, date2<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_FROM</code><br>
- </td>
- <td valign="top">a period (FROM date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_TO</code><br>
- </td>
- <td valign="top">a period (TO date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_FROM_TO</code><br>
- </td>
- <td valign="top">a period (FROM date1 TO date2)<br>
- </td>
- <td valign="top">date1, date2<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_ABOUT</code><br>
- </td>
- <td valign="top">an approximation (ABOUT date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_CALCULATED</code><br>
- </td>
- <td valign="top">an approximation (CALCULATED date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_ESTIMATED</code><br>
- </td>
- <td valign="top">an approximation (ESTIMATED date1)<br>
- </td>
- <td valign="top">date1<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_INTERPRETED</code><br>
- </td>
- <td valign="top">INTERPRETED date1 FROM a given free form date
-phrase<br>
- </td>
- <td valign="top">date1, phrase<br>
- </td>
- </tr>
- <tr>
- <td valign="top"><code>DV_PHRASE</code><br>
- </td>
- <td valign="top">a free form date phrase<br>
- </td>
- <td valign="top">phrase<br>
- </td>
- </tr>
-
- </tbody>
+ <tbody>
+ <tr>
+ <td valign="top" align="center"><b>Date_value_type</b><br>
+ </td>
+ <td valign="top" align="center"><b>Meaning</b><br>
+ </td>
+ <td valign="top" align="center"><b>Relevant members</b><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_NO_MODIFIER</code><br>
+ </td>
+ <td valign="top">just a simple date<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_BEFORE</code><br>
+ </td>
+ <td valign="top">a range (BEFORE date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_AFTER</code><br>
+ </td>
+ <td valign="top">a range (AFTER date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_BETWEEN</code><br>
+ </td>
+ <td valign="top">a range (BETWEEN date1 AND date2)<br>
+ </td>
+ <td valign="top">date1, date2<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_FROM</code><br>
+ </td>
+ <td valign="top">a period (FROM date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_TO</code><br>
+ </td>
+ <td valign="top">a period (TO date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_FROM_TO</code><br>
+ </td>
+ <td valign="top">a period (FROM date1 TO date2)<br>
+ </td>
+ <td valign="top">date1, date2<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_ABOUT</code><br>
+ </td>
+ <td valign="top">an approximation (ABOUT date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_CALCULATED</code><br>
+ </td>
+ <td valign="top">an approximation (CALCULATED date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_ESTIMATED</code><br>
+ </td>
+ <td valign="top">an approximation (ESTIMATED date1)<br>
+ </td>
+ <td valign="top">date1<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_INTERPRETED</code><br>
+ </td>
+ <td valign="top">INTERPRETED date1 FROM a given free form date
+ phrase<br>
+ </td>
+ <td valign="top">date1, phrase<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><code>DV_PHRASE</code><br>
+ </td>
+ <td valign="top">a free form date phrase<br>
+ </td>
+ <td valign="top">phrase<br>
+ </td>
+ </tr>
+
+ </tbody>
</table>
- <br>
-
+ <br>
+
<h3><a name="struct_date"></a>struct date<br>
- </h3>
- The <code>date1</code> and <code>date2</code> also have a strict syntax:<br>
-
+ </h3>
+ The <code>date1</code> and <code>date2</code> also have a strict syntax:<br>
+
<blockquote><code>struct date {<br>
- Calendar_type cal;<br>
- char day_str[MAX_DAY_LEN + 1];<br>
- char month_str[MAX_MONTH_LEN
-+ 1];<br>
- char year_str[MAX_YEAR_LEN +
+ Calendar_type cal;<br>
+ char day_str[MAX_DAY_LEN +
1];<br>
- <br>
- int day;<br>
- int month;<br>
- int year;<br>
- Year_type year_type;<br>
- <br>
- Date_type type;<br>
- long int sdn1;<br>
- long int sdn2;<br>
- };</code><br>
- </blockquote>
- The first four fields are the primary fields parsed from the value in
-the GEDCOM file. The <code>day_str</code>, <code>month_str</code>
-and <code> year_str</code> are the literal parts of the date that denote
-the day, month and year (the <code>day_str</code> and <code>month_str</code>
- can be empty) . The calendar type <code>cal</code> is one of (see
-calendar overview <i>LINK TBD</i>):<br>
-
+ char month_str[MAX_MONTH_LEN
+ + 1];<br>
+ char year_str[MAX_YEAR_LEN
++ 1];<br>
+ <br>
+ int day;<br>
+ int month;<br>
+ int year;<br>
+ Year_type year_type;<br>
+ <br>
+ Date_type type;<br>
+ long int sdn1;<br>
+ long int sdn2;<br>
+ };</code><br>
+ </blockquote>
+ The first four fields are the primary fields parsed from the value in
+the GEDCOM file. The <code>day_str</code>, <code>month_str</code> and
+ <code> year_str</code> are the literal parts of the date that denote
+ the day, month and year (the <code>day_str</code> and <code>month_str</code>
+ can be empty) . The calendar type <code>cal</code> is one of (see
+ calendar overview <i>LINK TBD</i>):<br>
+
<ul>
- <li><code>CAL_GREGORIAN</code> : the Gregorian calendar</li>
- <li><code>CAL_JULIAN</code> : the Julian calendar</li>
- <li><code>CAL_HEBREW</code> : the Hebrew (Jewish) calendar</li>
- <li><code>CAL_FRENCH_REV</code> : the calendar used after the French
- Revolution</li>
- <li><code>CAL_UNKNOWN</code> : an unknown calendar type</li>
-
+ <li><code>CAL_GREGORIAN</code> : the Gregorian calendar</li>
+ <li><code>CAL_JULIAN</code> : the Julian calendar</li>
+ <li><code>CAL_HEBREW</code> : the Hebrew (Jewish) calendar</li>
+ <li><code>CAL_FRENCH_REV</code> : the calendar used after the French
+ Revolution</li>
+ <li><code>CAL_UNKNOWN</code> : an unknown calendar type</li>
+
</ul>
- The next four fields are deduced from the first four:<br>
-
+ The next four fields are deduced from the first four:<br>
+
<ul>
- <li>the <code>day</code> is just the numeric representation of the
- <code>day_str</code> (starting from 1), -1 if the <code>day_str</code>
- is empty</li>
- <li>the <code>month</code> is the month number of <code>month_str</code>
- in the given calendar type (also starting from 1), -1 if the <code>month_str</code>
- is empty</li>
- <li>the <code>year</code> is the numeric representation of the <code>
- year_str</code></li>
-
+ <li>the <code>day</code> is just the numeric representation of
+the <code>day_str</code> (starting from 1), -1 if the <code>day_str</code>
+ is empty</li>
+ <li>the <code>month</code> is the month number of <code>month_str</code>
+ in the given calendar type (also starting from 1), -1 if the <code>month_str</code>
+ is empty</li>
+ <li>the <code>year</code> is the numeric representation of the
+ <code> year_str</code></li>
+
</ul>
- It is possible that the <code>year_str</code> is given as e.g. "1677/78".
- This is coming from a date in a so called "annunciation style", where
- the year began on 25 March: "20 March 1677/78" is 20 March 1677 in "annunciation
- style" and 20 March 1678 in "circumcision style" (the current style). See
+ It is possible that the <code>year_str</code> is given as e.g. "1677/78".
+ This is coming from a date in a so called "annunciation style", where
+ the year began on 25 March: "20 March 1677/78" is 20 March 1677 in "annunciation
+ style" and 20 March 1678 in "circumcision style" (the current style). See
calendar overview (<i>LINK TBD</i>).<br>
- <br>
- In this case, the <code>year</code> will contain the "circumcision style"
- year (1678 in the example), and <code>year_type</code> will be <code>YEAR_DOUBLE.</code>
- Normal dates will have a <code>year_type</code> equal to <code>
-YEAR_SINGLE</code> .<br>
- <br>
- Finally, the last three fields are probably the most interesting values
- for applications that want to process dates. Basically, the date is
- converted to a serial day number (aka Julian day), which is the unique day
- number since November 25, 4714 BC in the Gregorian calendar. The advantage
- of these day numbers is that they are unique and independent of the calendar
- system. Furthermore, date differences can just be computed by subtracting
+ <br>
+ In this case, the <code>year</code> will contain the "circumcision style"
+ year (1678 in the example), and <code>year_type</code> will be <code>YEAR_DOUBLE.</code>
+ Normal dates will have a <code>year_type</code> equal to <code>
+ YEAR_SINGLE</code> .<br>
+ <br>
+ Finally, the last three fields are probably the most interesting values
+ for applications that want to process dates. Basically, the date is
+ converted to a serial day number (aka Julian day), which is the unique day
+ number since November 25, 4714 BC in the Gregorian calendar. The advantage
+ of these day numbers is that they are unique and independent of the calendar
+ system. Furthermore, date differences can just be computed by subtracting
the serial day numbers.<br>
- <br>
- However, since dates in GEDCOM are not necessarily exact (e.g. "MAR 1990"),
- it is not possible to represent all GEDCOM dates with 1 serial day number.
- Two cases can be distinguished:<br>
-
+ <br>
+ However, since dates in GEDCOM are not necessarily exact (e.g. "MAR 1990"),
+ it is not possible to represent all GEDCOM dates with 1 serial day number.
+ Two cases can be distinguished:<br>
+
<ul>
- <li>Exact dates (e.g. "25 MAR 1990"):</li>
-
+ <li>Exact dates (e.g. "25 MAR 1990"):</li>
+
</ul>
-
- <blockquote>
+
+ <blockquote>
<blockquote>These are represented by a serial day number in <code>sdn1</code>
- and a <code>Date_type</code> equal to <code>DATE_EXACT</code>.<br>
- </blockquote>
- </blockquote>
-
+ and a <code>Date_type</code> equal to <code>DATE_EXACT</code>.<br>
+ </blockquote>
+ </blockquote>
+
<ul>
- <li>Incomplete dates (e.g. "MAR 1990"):</li>
-
+ <li>Incomplete dates (e.g. "MAR 1990"):</li>
+
</ul>
-
- <blockquote>
+
+ <blockquote>
<blockquote>These are represented by 2 serial day numbers (<code>
- sdn1</code> and <code>sdn2</code>) and a <code>Date_type</code> equal to
- <code>DATE_BOUNDED</code>.<br>
- <br>
- For example, the Gregorian date "MAR 1990" is represented by the serial
- day numbers for "1 MAR 1990" and "31 MAR 1990", and the Gregorian date "1990"
- is represented by the serial day numbers for "1 JAN 1990" and "31 DEC 1990".
- Similarly for the other calendar types.<br>
- </blockquote>
- </blockquote>
- <br>
-
- <hr width="100%" size="2">
- <pre>$Id$<br>$Name$<br></pre>
- <br>
-
- </body>
- </html>
+ sdn1</code> and <code>sdn2</code>) and a <code>Date_type</code> equal
+to <code>DATE_BOUNDED</code>.<br>
+ <br>
+ For example, the Gregorian date "MAR 1990" is represented by the serial
+ day numbers for "1 MAR 1990" and "31 MAR 1990", and the Gregorian date "1990"
+ is represented by the serial day numbers for "1 JAN 1990" and "31 DEC 1990".
+ Similarly for the other calendar types.<br>
+ </blockquote>
+ </blockquote>
+
+ <h3><a name="struct_xref_value"></a>struct xref_value</h3>
+This struct represents a cross-reference in the GEDCOM file (but note that
+the <code>Gedcom_val</code> contains a pointer to such a struct, not the
+struct itself). It is defined as:<br>
+ <blockquote><code>struct xref_value {<br>
+ Xref_type type,<br>
+ char* string,<br>
+ Gedcom_ctxt object<br>
+};</code><br>
+ </blockquote>
+The <code>Xref_type</code> gives the type of the cross-reference and can
+be one of:<br>
+ <ul>
+ <li><code>XREF_NONE</code> (used as default value)</li>
+ <li><code>XREF_FAM</code></li>
+ <li><code>XREF_INDI</code></li>
+ <li><code>XREF_NOTE</code></li>
+ <li><code>XREF_OBJE</code></li>
+ <li><code>XREF_REPO</code></li>
+ <li><code>XREF_SOUR</code></li>
+ <li><code>XREF_SUBM</code></li>
+ <li><code>XREF_SUBN</code></li>
+ <li><code>XREF_USER</code> (for application-specific cross-references)<br>
+ <code></code></li>
+ </ul>
+The <code>string</code> gives the actual cross-reference string from the
+GEDCOM file, and the <code>object</code> is initially <code>NULL,</code>
+but can be filled by the application with an object (of any type) that corresponds
+with the cross-reference, and then later extracted when the cross-reference
+is used or defined again in the file. This relieves the application
+from the burden of maintaining the mapping between cross-references and objects.<br>
+ <br>
+The parser checks whether all cross-references that are used are defined
+(if not, an error is produced) and whether all cross-references that are
+defined are used (if not, a warning is produced). It also checks whether
+the type of the cross-reference is the same on definition and use (if not,
+an error is produced).<br>
+ <br>
+
+ <hr width="100%" size="2">
+ <pre>$Id$<br>$Name$<br></pre>
+ <br>
+
+ </body>
+ </html>
#include "encoding.h"
#include "interface.h"
#include "date.h"
+#include "xref.h"
int count_level = 0;
int fail = 0;
int gedcom_high_level_debug = 0;
int compatibility = 0;
Gedcom_err_mech error_mechanism = IMMED_FAIL;
-Gedcom_val_struct val;
+Gedcom_val_struct val1;
+Gedcom_val_struct val2;
char line_item_buf[MAXGEDCLINELEN * UTF_FACTOR + 1];
char *line_item_buf_ptr;
%type <tag> indiv_gen_tag
%type <tag> lio_bapl_tag
%type <string> line_item
-%type <string> line_value
%type <string> mand_line_item
%type <string> mand_pointer
%type <string> note_line_item
/**** Header ****/
/*********************************************************************/
head_sect : OPEN DELIM TAG_HEAD
- { $<ctxt>$ = start_record(REC_HEAD, $1, GEDCOM_MAKE_NULL(), $3,
- NULL, GEDCOM_MAKE_NULL());
+ { $<ctxt>$ = start_record(REC_HEAD, $1, GEDCOM_MAKE_NULL(val1),
+ $3,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(HEAD, $<ctxt>$) }
head_subs
{ if (compat_mode(C_FTREE))
{ set_compatibility($4);
$<ctxt>$ = start_element(ELT_HEAD_SOUR, PARENT,
$1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(SOUR, $<ctxt>$)
}
head_sour_subs
head_sour_vers_sect : OPEN DELIM TAG_VERS mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_SOUR_VERS, PARENT,
$1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(VERS, $<ctxt>$)
}
no_std_subs
head_sour_name_sect : OPEN DELIM TAG_NAME mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_SOUR_NAME, PARENT,
$1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NAME, $<ctxt>$)
}
no_std_subs
head_sour_corp_sect : OPEN DELIM TAG_CORP mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_SOUR_CORP, PARENT,
$1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CORP, $<ctxt>$)
}
head_sour_corp_subs
head_sour_data_sect : OPEN DELIM TAG_DATA mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_SOUR_DATA, PARENT,
$1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(DATA, $<ctxt>$)
}
head_sour_data_subs
head_sour_data_date_sect : OPEN DELIM TAG_DATE mand_line_item
{ struct date_value dv = gedcom_parse_date($4);
- $<ctxt>$ = start_element(ELT_HEAD_SOUR_DATA_DATE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ $<ctxt>$
+ = start_element(ELT_HEAD_SOUR_DATA_DATE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
}
;
head_sour_data_copr_sect : OPEN DELIM TAG_COPR mand_line_item
- { $<ctxt>$ = start_element(ELT_HEAD_SOUR_DATA_COPR,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_HEAD_SOUR_DATA_COPR,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(COPR, $<ctxt>$)
}
no_std_subs
head_dest_sect : OPEN DELIM TAG_DEST mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_DEST,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(DEST, $<ctxt>$)
}
no_std_subs
{ struct date_value dv = gedcom_parse_date($4);
$<ctxt>$ = start_element(ELT_HEAD_DATE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
head_date_subs
head_date_time_sect : OPEN DELIM TAG_TIME mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_DATE_TIME,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TIME, $<ctxt>$)
}
no_std_subs
/* HEAD.SUBM */
head_subm_sect : OPEN DELIM TAG_SUBM mand_pointer
- { $<ctxt>$ = start_element(ELT_HEAD_SUBM,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_HEAD_SUBM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SUBM, $<ctxt>$)
}
no_std_subs
;
/* HEAD.SUBN */
head_subn_sect : OPEN DELIM TAG_SUBN mand_pointer
- { $<ctxt>$ = start_element(ELT_HEAD_SUBN,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBN);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_HEAD_SUBN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SUBN, $<ctxt>$)
}
no_std_subs
head_file_sect : OPEN DELIM TAG_FILE mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_FILE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(FILE, $<ctxt>$)
}
no_std_subs
head_copr_sect : OPEN DELIM TAG_COPR mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_COPR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(COPR, $<ctxt>$)
}
no_std_subs
head_gedc_sect : OPEN DELIM TAG_GEDC
{ $<ctxt>$ = start_element(ELT_HEAD_GEDC,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(GEDC, $<ctxt>$)
}
head_gedc_subs
head_gedc_vers_sect : OPEN DELIM TAG_VERS mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_GEDC_VERS,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(VERS, $<ctxt>$)
}
no_std_subs
head_gedc_form_sect : OPEN DELIM TAG_FORM mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_GEDC_FORM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(FORM, $<ctxt>$)
}
no_std_subs
{ if (open_conv_to_internal($4) == 0) YYERROR;
$<ctxt>$ = start_element(ELT_HEAD_CHAR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CHAR, $<ctxt>$)
}
head_char_subs
head_char_vers_sect : OPEN DELIM TAG_VERS mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_CHAR_VERS,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(VERS, $<ctxt>$)
}
no_std_subs
head_lang_sect : OPEN DELIM TAG_LANG mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_LANG,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(LANG, $<ctxt>$)
}
no_std_subs
head_plac_sect : OPEN DELIM TAG_PLAC
{ $<ctxt>$ = start_element(ELT_HEAD_PLAC,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(PLAC, $<ctxt>$)
}
head_plac_subs
head_plac_form_sect : OPEN DELIM TAG_FORM mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_PLAC_FORM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(FORM, $<ctxt>$)
}
no_std_subs
head_note_sect : OPEN DELIM TAG_NOTE mand_line_item
{ $<ctxt>$ = start_element(ELT_HEAD_NOTE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NOTE, $<ctxt>$)
}
head_note_subs
/**** Family record ****/
/*********************************************************************/
fam_rec : OPEN DELIM POINTER DELIM TAG_FAM
- { $<ctxt>$ = start_record(REC_FAM,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_FAM,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr),
+ $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(FAM, $<ctxt>$) }
fam_subs
{ CHECK0 }
/* FAM.HUSB */
fam_husb_sect : OPEN DELIM TAG_HUSB mand_pointer
- { $<ctxt>$ = start_element(ELT_FAM_HUSB,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_FAM_HUSB,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(HUSB, $<ctxt>$)
}
no_std_subs
/* FAM.WIFE */
fam_wife_sect : OPEN DELIM TAG_WIFE mand_pointer
- { $<ctxt>$ = start_element(ELT_FAM_WIFE,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_FAM_WIFE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(WIFE, $<ctxt>$)
}
no_std_subs
/* FAM.CHIL */
fam_chil_sect : OPEN DELIM TAG_CHIL mand_pointer
- { $<ctxt>$ = start_element(ELT_FAM_CHIL,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_FAM_CHIL,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(CHIL, $<ctxt>$)
}
no_std_subs
fam_nchi_sect : OPEN DELIM TAG_NCHI mand_line_item
{ $<ctxt>$ = start_element(ELT_FAM_NCHI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NCHI, $<ctxt>$)
}
no_std_subs
/* FAM.SUBM */
fam_subm_sect : OPEN DELIM TAG_SUBM mand_pointer
- { $<ctxt>$ = start_element(ELT_FAM_SUBM,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_FAM_SUBM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SUBM, $<ctxt>$)
}
no_std_subs
/**** Individual record ****/
/*********************************************************************/
indiv_rec : OPEN DELIM POINTER DELIM TAG_INDI
- { $<ctxt>$ = start_record(REC_INDI,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_INDI,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(INDI, $<ctxt>$) }
indi_subs
{ CHECK0 }
indi_resn_sect : OPEN DELIM TAG_RESN mand_line_item
{ $<ctxt>$ = start_element(ELT_INDI_RESN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RESN, $<ctxt>$)
}
no_std_subs
indi_sex_sect : OPEN DELIM TAG_SEX mand_line_item
{ $<ctxt>$ = start_element(ELT_INDI_SEX,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(SEX, $<ctxt>$)
}
no_std_subs
/* INDI.SUBM */
indi_subm_sect : OPEN DELIM TAG_SUBM mand_pointer
- { $<ctxt>$ = start_element(ELT_INDI_SUBM,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_INDI_SUBM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SUBM, $<ctxt>$)
}
no_std_subs
/* INDI.ALIA */
indi_alia_sect : OPEN DELIM TAG_ALIA mand_pointer
- { $<ctxt>$ = start_element(ELT_INDI_ALIA,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_INDI_ALIA,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(ALIA, $<ctxt>$)
}
no_std_subs
/* INDI.ANCI */
indi_anci_sect : OPEN DELIM TAG_ANCI mand_pointer
- { $<ctxt>$ = start_element(ELT_INDI_ANCI,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_INDI_ANCI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(ANCI, $<ctxt>$)
}
no_std_subs
/* INDI.DESI */
indi_desi_sect : OPEN DELIM TAG_DESI mand_pointer
- { $<ctxt>$ = start_element(ELT_INDI_DESI,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_INDI_DESI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(DESI, $<ctxt>$)
}
no_std_subs
indi_rfn_sect : OPEN DELIM TAG_RFN mand_line_item
{ $<ctxt>$ = start_element(ELT_INDI_RFN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RFN, $<ctxt>$)
}
no_std_subs
indi_afn_sect : OPEN DELIM TAG_AFN mand_line_item
{ $<ctxt>$ = start_element(ELT_INDI_AFN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(AFN, $<ctxt>$)
}
no_std_subs
/**** Multimedia record ****/
/*********************************************************************/
multim_rec : OPEN DELIM POINTER DELIM TAG_OBJE
- { $<ctxt>$ = start_record(REC_OBJE,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_OBJE);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_OBJE,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(OBJE, $<ctxt>$) }
obje_subs
{ CHECK2(FORM, BLOB) }
obje_form_sect : OPEN DELIM TAG_FORM mand_line_item
{ $<ctxt>$ = start_element(ELT_OBJE_FORM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(FORM, $<ctxt>$)
}
no_std_subs
obje_titl_sect : OPEN DELIM TAG_TITL mand_line_item
{ $<ctxt>$ = start_element(ELT_OBJE_TITL,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TITL, $<ctxt>$)
}
no_std_subs
obje_blob_sect : OPEN DELIM TAG_BLOB
{ $<ctxt>$ = start_element(ELT_OBJE_BLOB,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(BLOB, $<ctxt>$)
}
obje_blob_subs
obje_blob_cont_sect : OPEN DELIM TAG_CONT mand_line_item
{ $<ctxt>$ = start_element(ELT_OBJE_BLOB_CONT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CONT, $<ctxt>$)
}
no_std_subs
/* OBJE.OBJE */
obje_obje_sect : OPEN DELIM TAG_OBJE mand_pointer
- { $<ctxt>$ = start_element(ELT_OBJE_OBJE,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_OBJE);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_OBJE_OBJE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(OBJE, $<ctxt>$)
}
no_std_subs
/**** Note record ****/
/*********************************************************************/
note_rec : OPEN DELIM POINTER DELIM TAG_NOTE note_line_item
- { $<ctxt>$ = start_record(REC_NOTE,
- $1, GEDCOM_MAKE_STRING($3), $5,
- $6, GEDCOM_MAKE_STRING($6));
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_NOTE);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_NOTE,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ $6, GEDCOM_MAKE_STRING(val2, $6));
START(NOTE, $<ctxt>$) }
note_subs
{ CHECK0 }
{ if (!compat_mode(C_FTREE)) {
gedcom_error(_("Missing value")); YYERROR;
}
+ else {
+ $$ = "";
+ }
}
| DELIM line_item
{ gedcom_debug_print("==Val: %s==", $2);
/**** Repository record ****/
/*********************************************************************/
repos_rec : OPEN DELIM POINTER DELIM TAG_REPO
- { $<ctxt>$ = start_record(REC_REPO,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_REPO);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_REPO,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(REPO, $<ctxt>$) }
repo_subs
{ CHECK0 }
repo_name_sect : OPEN DELIM TAG_NAME mand_line_item
{ $<ctxt>$ = start_element(ELT_REPO_NAME,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NAME, $<ctxt>$)
}
no_std_subs
/**** Source record ****/
/*********************************************************************/
source_rec : OPEN DELIM POINTER DELIM TAG_SOUR
- { $<ctxt>$ = start_record(REC_SOUR,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_SOUR);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_SOUR,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(SOUR, $<ctxt>$) }
sour_subs
{ CHECK0 }
sour_data_sect : OPEN DELIM TAG_DATA
{ $<ctxt>$ = start_element(ELT_SOUR_DATA,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(DATA, $<ctxt>$)
}
sour_data_subs
sour_data_even_sect : OPEN DELIM TAG_EVEN mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_DATA_EVEN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(EVEN, $<ctxt>$)
}
sour_data_even_subs
sour_data_even_date_sect : OPEN DELIM TAG_DATE mand_line_item
{ struct date_value dv = gedcom_parse_date($4);
- $<ctxt>$ = start_element(ELT_SOUR_DATA_EVEN_DATE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ $<ctxt>$
+ = start_element(ELT_SOUR_DATA_EVEN_DATE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
;
sour_data_even_plac_sect : OPEN DELIM TAG_PLAC mand_line_item
- { $<ctxt>$ = start_element(ELT_SOUR_DATA_EVEN_PLAC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SOUR_DATA_EVEN_PLAC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(PLAC, $<ctxt>$)
}
no_std_subs
sour_data_agnc_sect : OPEN DELIM TAG_AGNC mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_DATA_AGNC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(AGNC, $<ctxt>$)
}
no_std_subs
sour_auth_sect : OPEN DELIM TAG_AUTH mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_AUTH,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(AUTH, $<ctxt>$)
}
sour_auth_subs
sour_titl_sect : OPEN DELIM TAG_TITL mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_TITL,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TITL, $<ctxt>$)
}
sour_titl_subs
sour_abbr_sect : OPEN DELIM TAG_ABBR mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_ABBR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ABBR, $<ctxt>$)
}
no_std_subs
sour_publ_sect : OPEN DELIM TAG_PUBL mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_PUBL,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(PUBL, $<ctxt>$)
}
sour_publ_subs
sour_text_sect : OPEN DELIM TAG_TEXT mand_line_item
{ $<ctxt>$ = start_element(ELT_SOUR_TEXT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TEXT, $<ctxt>$)
}
sour_text_subs
/**** Submission record ****/
/*********************************************************************/
submis_rec : OPEN DELIM POINTER DELIM TAG_SUBN
- { $<ctxt>$ = start_record(REC_SUBN,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_SUBN);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_SUBN,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(SUBN, $<ctxt>$) }
subn_subs
{ CHECK0 }
/* SUBN.SUBM */
subn_subm_sect : OPEN DELIM TAG_SUBM mand_pointer
- { $<ctxt>$ = start_element(ELT_SUBN_SUBM,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_SUBN_SUBM,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SUBM, $<ctxt>$)
}
no_std_subs
subn_famf_sect : OPEN DELIM TAG_FAMF mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_FAMF,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(FAMF, $<ctxt>$)
}
no_std_subs
subn_temp_sect : OPEN DELIM TAG_TEMP mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_TEMP,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TEMP, $<ctxt>$)
}
no_std_subs
subn_ance_sect : OPEN DELIM TAG_ANCE mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_ANCE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ANCE, $<ctxt>$)
}
no_std_subs
subn_desc_sect : OPEN DELIM TAG_DESC mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_DESC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(DESC, $<ctxt>$)
}
no_std_subs
subn_ordi_sect : OPEN DELIM TAG_ORDI mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_ORDI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ORDI, $<ctxt>$)
}
no_std_subs
subn_rin_sect : OPEN DELIM TAG_RIN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBN_RIN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RIN, $<ctxt>$)
}
no_std_subs
/**** Submitter record ****/
/*********************************************************************/
submit_rec : OPEN DELIM POINTER DELIM TAG_SUBM
- { $<ctxt>$ = start_record(REC_SUBM,
- $1, GEDCOM_MAKE_STRING($3), $5,
- NULL, GEDCOM_MAKE_NULL());
+ { struct xref_value *xr = gedcom_parse_xref($3, XREF_DEFINED,
+ XREF_SUBM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_record(REC_SUBM,
+ $1, GEDCOM_MAKE_XREF_PTR(val1, xr), $5,
+ NULL, GEDCOM_MAKE_NULL(val2));
START(SUBM, $<ctxt>$) }
subm_subs
{ CHECK1(NAME) }
subm_name_sect : OPEN DELIM TAG_NAME mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBM_NAME,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NAME, $<ctxt>$)
}
no_std_subs
subm_lang_sect : OPEN DELIM TAG_LANG mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBM_LANG,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(LANG, $<ctxt>$)
}
no_std_subs
subm_rfn_sect : OPEN DELIM TAG_RFN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBM_RFN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RFN, $<ctxt>$)
}
no_std_subs
subm_rin_sect : OPEN DELIM TAG_RIN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUBM_RIN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RIN, $<ctxt>$)
}
no_std_subs
addr_sect : OPEN DELIM TAG_ADDR mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ADDR, $<ctxt>$)
}
addr_subs
addr_cont_sect : OPEN DELIM TAG_CONT mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_CONT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CONT, $<ctxt>$)
}
no_std_subs
addr_adr1_sect : OPEN DELIM TAG_ADR1 mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_ADR1,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ADR1, $<ctxt>$)
}
no_std_subs
addr_adr2_sect : OPEN DELIM TAG_ADR2 mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_ADR2,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ADR2, $<ctxt>$)
}
no_std_subs
addr_city_sect : OPEN DELIM TAG_CITY mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_CITY,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CITY, $<ctxt>$)
}
no_std_subs
addr_stae_sect : OPEN DELIM TAG_STAE mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_STAE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(STAE, $<ctxt>$)
}
no_std_subs
addr_post_sect : OPEN DELIM TAG_POST mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_POST,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(POST, $<ctxt>$)
}
no_std_subs
addr_ctry_sect : OPEN DELIM TAG_CTRY mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ADDR_CTRY,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CTRY, $<ctxt>$)
}
no_std_subs
phon_sect : OPEN DELIM TAG_PHON mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PHON,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(PHON, $<ctxt>$)
}
no_std_subs
;
asso_sect : OPEN DELIM TAG_ASSO mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_ASSO,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_INDI);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_SUB_ASSO,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(ASSO, $<ctxt>$)
}
asso_subs
asso_type_sect : OPEN DELIM TAG_TYPE mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ASSO_TYPE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TYPE, $<ctxt>$)
}
no_std_subs
asso_rela_sect : OPEN DELIM TAG_RELA mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_ASSO_RELA,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RELA, $<ctxt>$)
}
no_std_subs
change_date_chan_sect : OPEN DELIM TAG_CHAN
{ $<ctxt>$ = start_element(ELT_SUB_CHAN,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(CHAN, $<ctxt>$)
}
change_date_chan_subs
{ struct date_value dv = gedcom_parse_date($4);
$<ctxt>$ = start_element(ELT_SUB_CHAN_DATE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$) }
change_date_date_subs
{ CHECK0 }
{ $<ctxt>$
= start_element(ELT_SUB_CHAN_TIME,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TIME, $<ctxt>$)
}
no_std_subs
;
famc_sect : OPEN DELIM TAG_FAMC mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_FAMC,
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$ = start_element(ELT_SUB_FAMC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(FAMC, $<ctxt>$)
}
famc_subs
famc_pedi_sect : OPEN DELIM TAG_PEDI mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_FAMC_PEDI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(PEDI, $<ctxt>$)
}
no_std_subs
cont_sect : OPEN DELIM TAG_CONT mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_CONT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CONT, $<ctxt>$)
}
no_std_subs
conc_sect : OPEN DELIM TAG_CONC mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_CONC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CONC, $<ctxt>$)
}
no_std_subs
;
event_detail_type_sect : OPEN DELIM TAG_TYPE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_EVT_TYPE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_EVT_TYPE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(TYPE, $<ctxt>$)
}
no_std_subs
;
event_detail_date_sect : OPEN DELIM TAG_DATE mand_line_item
{ struct date_value dv = gedcom_parse_date($4);
- $<ctxt>$ = start_element(ELT_SUB_EVT_DATE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ $<ctxt>$
+ = start_element(ELT_SUB_EVT_DATE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
}
;
event_detail_age_sect : OPEN DELIM TAG_AGE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_EVT_AGE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_EVT_AGE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(AGE, $<ctxt>$)
}
no_std_subs
}
;
event_detail_agnc_sect : OPEN DELIM TAG_AGNC mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_EVT_AGNC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_EVT_AGNC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(AGNC, $<ctxt>$)
}
no_std_subs
}
;
event_detail_caus_sect : OPEN DELIM TAG_CAUS mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_EVT_CAUS,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_EVT_CAUS,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(CAUS, $<ctxt>$)
}
no_std_subs
;
fam_event_sect : OPEN DELIM fam_event_tag opt_value
- {
- $<ctxt>$ = start_element(ELT_SUB_FAM_EVT,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_NULL_OR_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_FAM_EVT,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_NULL_OR_STRING(val1, $4));
START2($<ctxt>$);
}
fam_event_subs
fam_even_husb_sect : OPEN DELIM TAG_HUSB
{ $<ctxt>$ = start_element(ELT_SUB_FAM_EVT_HUSB,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(HUSB, $<ctxt>$)
}
fam_even_husb_subs
fam_even_age_sect : OPEN DELIM TAG_AGE mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_FAM_EVT_AGE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(AGE, $<ctxt>$)
}
no_std_subs
fam_even_wife_sect : OPEN DELIM TAG_WIFE
{ $<ctxt>$ = start_element(ELT_SUB_FAM_EVT_WIFE,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(WIFE, $<ctxt>$)
}
fam_even_husb_subs
fam_gen_even_sect : OPEN DELIM TAG_EVEN
{ $<ctxt>$ = start_element(ELT_SUB_FAM_EVT_EVEN,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(EVEN, $<ctxt>$)
}
fam_gen_even_subs
ident_refn_sect : OPEN DELIM TAG_REFN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_IDENT_REFN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(REFN, $<ctxt>$)
}
ident_refn_subs
;
ident_refn_type_sect : OPEN DELIM TAG_TYPE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_IDENT_REFN_TYPE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_IDENT_REFN_TYPE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(TYPE, $<ctxt>$)
}
no_std_subs
ident_rin_sect : OPEN DELIM TAG_RIN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_IDENT_RIN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(RIN, $<ctxt>$)
}
no_std_subs
indiv_attr_sect : OPEN DELIM indiv_attr_tag mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_INDIV_ATTR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START2($<ctxt>$);
}
indiv_attr_event_subs
indiv_resi_sect : OPEN DELIM TAG_RESI
{ $<ctxt>$ = start_element(ELT_SUB_INDIV_RESI,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(RESI, $<ctxt>$)
}
indiv_attr_event_subs
;
indiv_birt_sect : OPEN DELIM indiv_birt_tag opt_value
- { $<ctxt>$ = start_element(ELT_SUB_INDIV_BIRT,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_NULL_OR_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_INDIV_BIRT,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_NULL_OR_STRING(val1, $4));
START2($<ctxt>$);
}
indiv_birt_subs
;
indiv_birt_famc_sect : OPEN DELIM TAG_FAMC mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_INDIV_BIRT_FAMC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { struct xref_value *xr = gedcom_parse_xref($4,
+ XREF_USED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_INDIV_BIRT_FAMC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(FAMC, $<ctxt>$)
}
no_std_subs
;
indiv_gen_sect : OPEN DELIM indiv_gen_tag opt_value
- { $<ctxt>$ = start_element(ELT_SUB_INDIV_GEN,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_NULL_OR_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_INDIV_GEN,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_NULL_OR_STRING(val1, $4));
START2($<ctxt>$);
}
indiv_gen_subs
;
indiv_adop_sect : OPEN DELIM TAG_ADOP opt_value
- { $<ctxt>$ = start_element(ELT_SUB_INDIV_ADOP,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_NULL_OR_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_INDIV_ADOP,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_NULL_OR_STRING(val1, $4));
START(ADOP, $<ctxt>$) }
indiv_adop_subs
{ CHECK0 }
;
indiv_adop_famc_sect : OPEN DELIM TAG_FAMC mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_INDIV_ADOP_FAMC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { struct xref_value *xr = gedcom_parse_xref($4,
+ XREF_USED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_INDIV_ADOP_FAMC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(FAMC, $<ctxt>$) }
indiv_adop_famc_subs
{ CHECK0 }
{ $<ctxt>$
= start_element(ELT_SUB_INDIV_ADOP_FAMC_ADOP,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(ADOP, $<ctxt>$) }
no_std_subs
{ CHECK0 }
indiv_even_sect : OPEN DELIM TAG_EVEN
{ $<ctxt>$ = start_element(ELT_SUB_INDIV_EVEN,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(EVEN, $<ctxt>$) }
indiv_gen_subs
{ CHECK0 }
lio_bapl_sect : OPEN DELIM lio_bapl_tag
{ $<ctxt>$ = start_element(ELT_SUB_LIO_BAPL,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START2($<ctxt>$);
}
lio_bapl_subs
lio_bapl_stat_sect : OPEN DELIM TAG_STAT mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LIO_BAPL_STAT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(STAT, $<ctxt>$)
}
no_std_subs
{ struct date_value dv = gedcom_parse_date($4);
$<ctxt>$ = start_element(ELT_SUB_LIO_BAPL_DATE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
lio_bapl_temp_sect : OPEN DELIM TAG_TEMP mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LIO_BAPL_TEMP,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TEMP, $<ctxt>$)
}
no_std_subs
lio_bapl_plac_sect : OPEN DELIM TAG_PLAC mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LIO_BAPL_PLAC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(PLAC, $<ctxt>$)
}
no_std_subs
lio_slgc_sect : OPEN DELIM TAG_SLGC
{ $<ctxt>$ = start_element(ELT_SUB_LIO_SLGC,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(SLGC, $<ctxt>$)
}
lio_slgc_subs
;
lio_slgc_famc_sect : OPEN DELIM TAG_FAMC mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_LIO_SLGC_FAMC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_LIO_SLGC_FAMC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(FAMC, $<ctxt>$)
}
no_std_subs
lss_slgs_sect : OPEN DELIM TAG_SLGS
{ $<ctxt>$ = start_element(ELT_SUB_LSS_SLGS,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(SLGS, $<ctxt>$) }
lss_slgs_subs
{ CHECK0 }
lss_slgs_stat_sect : OPEN DELIM TAG_STAT mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LSS_SLGS_STAT,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(STAT, $<ctxt>$)
}
no_std_subs
{ struct date_value dv = gedcom_parse_date($4);
$<ctxt>$ = start_element(ELT_SUB_LSS_SLGS_DATE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
lss_slgs_temp_sect : OPEN DELIM TAG_TEMP mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LSS_SLGS_TEMP,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(TEMP, $<ctxt>$)
}
no_std_subs
lss_slgs_plac_sect : OPEN DELIM TAG_PLAC mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_LSS_SLGS_PLAC,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(PLAC, $<ctxt>$)
}
no_std_subs
;
multim_obje_link_sect : OPEN DELIM TAG_OBJE DELIM POINTER
- { $<ctxt>$ = start_element(ELT_SUB_MULTIM_OBJE,
- PARENT, $1, $3, $5,
- GEDCOM_MAKE_STRING($5));
+ { struct xref_value *xr = gedcom_parse_xref($5,
+ XREF_USED,
+ XREF_OBJE);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_MULTIM_OBJE,
+ PARENT, $1, $3, $5,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(OBJE, $<ctxt>$)
}
no_std_subs
multim_obje_emb_sect : OPEN DELIM TAG_OBJE
{ $<ctxt>$ = start_element(ELT_SUB_MULTIM_OBJE,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(OBJE, $<ctxt>$)
}
multim_obje_emb_subs
;
multim_obje_form_sect : OPEN DELIM TAG_FORM mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_MULTIM_OBJE_FORM,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_MULTIM_OBJE_FORM,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(FORM, $<ctxt>$)
}
no_std_subs
}
;
multim_obje_titl_sect : OPEN DELIM TAG_TITL mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_MULTIM_OBJE_TITL,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_MULTIM_OBJE_TITL,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(TITL, $<ctxt>$)
}
no_std_subs
}
;
multim_obje_file_sect : OPEN DELIM TAG_FILE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_MULTIM_OBJE_FILE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_MULTIM_OBJE_FILE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(FILE, $<ctxt>$)
}
no_std_subs
;
note_struc_link_sect : OPEN DELIM TAG_NOTE DELIM POINTER
- { $<ctxt>$ = start_element(ELT_SUB_NOTE,
- PARENT, $1, $3, $5,
- GEDCOM_MAKE_STRING($5));
+ { struct xref_value *xr = gedcom_parse_xref($5,
+ XREF_USED,
+ XREF_NOTE);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_NOTE,
+ PARENT, $1, $3, $5,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(NOTE, $<ctxt>$)
}
note_struc_link_subs
{ $<ctxt>$
= start_element(ELT_SUB_NOTE,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_NULL_OR_STRING($4));
+ GEDCOM_MAKE_NULL_OR_STRING(val1, $4));
START(NOTE, $<ctxt>$)
}
note_struc_emb_subs
pers_name_sect : OPEN DELIM TAG_NAME mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NAME, $<ctxt>$)
}
pers_name_subs
pers_name_npfx_sect : OPEN DELIM TAG_NPFX mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_NPFX,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NPFX, $<ctxt>$)
}
no_std_subs
pers_name_givn_sect : OPEN DELIM TAG_GIVN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_GIVN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(GIVN, $<ctxt>$)
}
no_std_subs
pers_name_nick_sect : OPEN DELIM TAG_NICK mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_NICK,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NICK, $<ctxt>$)
}
no_std_subs
pers_name_spfx_sect : OPEN DELIM TAG_SPFX mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_SPFX,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(SPFX, $<ctxt>$)
}
no_std_subs
pers_name_surn_sect : OPEN DELIM TAG_SURN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_SURN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(SURN, $<ctxt>$)
}
no_std_subs
pers_name_nsfx_sect : OPEN DELIM TAG_NSFX mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_PERS_NAME_NSFX,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(NSFX, $<ctxt>$)
}
no_std_subs
;
place_struc_plac_sect : OPEN DELIM TAG_PLAC mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_PLAC,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_PLAC,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(PLAC, $<ctxt>$)
}
place_struc_plac_subs
;
place_plac_form_sect : OPEN DELIM TAG_FORM mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_PLAC_FORM,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_PLAC_FORM,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(FORM, $<ctxt>$)
}
no_std_subs
;
source_cit_link_sect : OPEN DELIM TAG_SOUR DELIM POINTER
- { $<ctxt>$ = start_element(ELT_SUB_SOUR,
- PARENT, $1, $3, $5,
- GEDCOM_MAKE_STRING($5));
+ { struct xref_value *xr = gedcom_parse_xref($5,
+ XREF_USED,
+ XREF_SOUR);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_SOUR,
+ PARENT, $1, $3, $5,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(SOUR, $<ctxt>$)
}
source_cit_link_subs
;
source_cit_page_sect : OPEN DELIM TAG_PAGE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_SOUR_PAGE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_SOUR_PAGE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(PAGE, $<ctxt>$)
}
no_std_subs
;
source_cit_even_sect : OPEN DELIM TAG_EVEN mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_SOUR_EVEN,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_SOUR_EVEN,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(EVEN, $<ctxt>$)
}
source_cit_even_subs
;
source_cit_even_role_sect : OPEN DELIM TAG_ROLE mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_SOUR_EVEN_ROLE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_SOUR_EVEN_ROLE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(ROLE, $<ctxt>$)
}
no_std_subs
source_cit_data_sect : OPEN DELIM TAG_DATA
{ $<ctxt>$ = start_element(ELT_SUB_SOUR_DATA,
PARENT, $1, $3, NULL,
- GEDCOM_MAKE_NULL());
+ GEDCOM_MAKE_NULL(val1));
START(DATA, $<ctxt>$)
}
source_cit_data_subs
source_cit_data_date_sect : OPEN DELIM TAG_DATE mand_line_item
{ struct date_value dv = gedcom_parse_date($4);
- $<ctxt>$ = start_element(ELT_SUB_SOUR_DATA_DATE,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_DATE(dv));
+ $<ctxt>$
+ = start_element(ELT_SUB_SOUR_DATA_DATE,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_DATE(val1, dv));
START(DATE, $<ctxt>$)
}
no_std_subs
;
source_cit_text_sect : OPEN DELIM TAG_TEXT mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_SOUR_TEXT,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_SOUR_TEXT,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(TEXT, $<ctxt>$)
}
source_cit_text_subs
;
source_cit_quay_sect : OPEN DELIM TAG_QUAY mand_line_item
- { $<ctxt>$ = start_element(ELT_SUB_SOUR_QUAY,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { $<ctxt>$
+ = start_element(ELT_SUB_SOUR_QUAY,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_STRING(val1, $4));
START(QUAY, $<ctxt>$)
}
no_std_subs
source_cit_emb_sect : OPEN DELIM TAG_SOUR mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_SOUR,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(SOUR, $<ctxt>$)
}
source_cit_emb_subs
;
source_repos_repo_sect : OPEN DELIM TAG_REPO mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_REPO,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { struct xref_value *xr
+ = gedcom_parse_xref($4, XREF_USED, XREF_REPO);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_REPO,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(REPO, $<ctxt>$)
}
source_repos_repo_subs
caln_sect : OPEN DELIM TAG_CALN mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_REPO_CALN,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(CALN, $<ctxt>$)
}
caln_subs
caln_medi_sect : OPEN DELIM TAG_MEDI mand_line_item
{ $<ctxt>$ = start_element(ELT_SUB_REPO_CALN_MEDI,
PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ GEDCOM_MAKE_STRING(val1, $4));
START(MEDI, $<ctxt>$)
}
no_std_subs
;
spou_fam_fams_sect : OPEN DELIM TAG_FAMS mand_pointer
- { $<ctxt>$ = start_element(ELT_SUB_FAMS,
- PARENT, $1, $3, $4,
- GEDCOM_MAKE_STRING($4));
+ { struct xref_value *xr = gedcom_parse_xref($4, XREF_USED,
+ XREF_FAM);
+ if (xr == NULL) HANDLE_ERROR;
+ $<ctxt>$
+ = start_element(ELT_SUB_FAMS,
+ PARENT, $1, $3, $4,
+ GEDCOM_MAKE_XREF_PTR(val1, xr));
START(FAMS, $<ctxt>$)
}
spou_fam_fams_subs
}
}
opt_value
- { $<ctxt>$ = start_record(REC_USER,
- $1, GEDCOM_MAKE_NULL_OR_STRING($3), $4,
- $6, GEDCOM_MAKE_NULL_OR_STRING($6));
+ { struct xref_value *xr = NULL;
+ if ($3 != NULL) {
+ xr = gedcom_parse_xref($3, XREF_DEFINED, XREF_USER);
+ if (xr == NULL) HANDLE_ERROR;
+ }
+ $<ctxt>$ = start_record(REC_USER,
+ $1,
+ GEDCOM_MAKE_NULL_OR_XREF_PTR(val1, xr),
+ $4, $6, &val2);
START($4, $<ctxt>$)
}
user_sects
}
}
opt_value
- { $<ctxt>$ = start_element(ELT_USER, PARENT, $1, $4, $6,
- GEDCOM_MAKE_NULL_OR_STRING($6));
+ { $<ctxt>$ = start_element(ELT_USER, PARENT, $1, $4, $6, &val2);
START($4, $<ctxt>$);
}
user_sects
| POINTER DELIM { $$ = $1; }
;
-opt_value : /* empty */ { $$ = NULL; }
- | DELIM line_value { $$ = $2; }
- ;
-
-line_value : POINTER { $$ = $1; }
- | line_item { $$ = $1; }
+opt_value : /* empty */ { GEDCOM_MAKE_NULL(val2);
+ $$ = NULL; }
+ | DELIM POINTER { struct xref_value *xr
+ = gedcom_parse_xref($2, XREF_USED,
+ XREF_USER);
+ GEDCOM_MAKE_XREF_PTR(val2, xr);
+ $$ = $2; }
+ | DELIM line_item { GEDCOM_MAKE_STRING(val2, $2);
+ $$ = $2; }
;
mand_pointer : /* empty */ { gedcom_error(_("Missing pointer")); YYERROR; }