Use preprocessor symbol VALUE_IF_MISSING.
[gedcom-parse.git] / gedcom / compat.c
index 1d882dc1ef0da1177b191737016652010cc8dcc7..c0990bf81cae1bd0c8946fd1f567485d452cd65c 100644 (file)
@@ -117,6 +117,7 @@ void enable_compat_msg(const char* program_name, int version)
 
 void set_compatibility_program(const char* program)
 {
+  compatibility_program = 0;
   if (compat_enabled) {
     if (! strncmp(program, "ftree", 6)) {
       compatibility_program = CP_FTREE;
@@ -142,7 +143,7 @@ void set_compatibility_version(const char* version)
     
     result = sscanf(version, " %u.%u.%u", &major, &minor, &patch);
     if (result > 0) {
-      gedcom_debug_print(_("Setting compat version to %u.%u.%u"),
+      gedcom_debug_print("Setting compat version to %u.%u.%u",
                         major, minor, patch);
       compatibility_version = major * 10000 + minor * 100 + patch;
     }
@@ -438,7 +439,7 @@ int compat_check_subm_comm_cont(const char* tag)
     return 0;
 }
 
-Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, const char* str)
+Gedcom_ctxt compat_subm_comm_cont_start(Gedcom_ctxt parent, char* str)
 {
   Gedcom_ctxt self = NULL;
   struct tag_struct ts;