return (compat_matrix[rule] & compatibility);
}
+void compat_close()
+{
+ compatibility_program = 0;
+ compatibility = 0;
+}
+
/********************************************************************/
/* C_NO_SUBMITTER */
/********************************************************************/
void set_compatibility_version(const char* version);
void compute_compatibility();
int compat_mode(Compat_rule rule);
+void compat_close();
/* C_NO_SUBMITTER */
void compat_generate_submitter_link(Gedcom_ctxt parent);
%%
file : head_sect records trlr_sect
- { if (fail == 1) YYABORT; }
+ { compat_close();
+ if (fail == 1) YYABORT;
+ }
| error
- { clean_up(); }
+ { compat_close();
+ clean_up();
+ }
;
records : /* empty */