Added some explanatory comment to the last item of the enums (and
authorPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 25 Dec 2001 09:22:47 +0000 (09:22 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 25 Dec 2001 09:22:47 +0000 (09:22 +0000)
changed name).

gedcom/interface.c
include/gedcom.h

index 265c28f9dbf5886dd012ef8cf6423b2bbd4ed4e6..ec156bda512355d2720107c970e14588a0294eab 100644 (file)
 #include "gedcom_internal.h"
 #include "interface.h"
 
-static Gedcom_rec_start_cb record_start_callback [LAST_REC] = { NULL };
-static Gedcom_rec_end_cb   record_end_callback   [LAST_REC] = { NULL };
-static Gedcom_elt_start_cb element_start_callback[LAST_ELT] = { NULL };
-static Gedcom_elt_end_cb   element_end_callback  [LAST_ELT] = { NULL };
-static Gedcom_def_cb       default_cb                       = NULL;
+static Gedcom_rec_start_cb record_start_callback [NR_OF_RECS] = { NULL };
+static Gedcom_rec_end_cb   record_end_callback   [NR_OF_RECS] = { NULL };
+static Gedcom_elt_start_cb element_start_callback[NR_OF_ELTS] = { NULL };
+static Gedcom_elt_end_cb   element_end_callback  [NR_OF_ELTS] = { NULL };
+static Gedcom_def_cb       default_cb                         = NULL;
 
 void gedcom_set_default_callback(Gedcom_def_cb func)
 {
index e985ccedd05c8da0ba3a4d7b038cf213565fc875..819d23a73f06205cd0582ec3f0b687ae9ac6cb1d 100644 (file)
@@ -39,7 +39,7 @@ typedef enum _REC {
   REC_SUBN,
   REC_SUBM,
   REC_USER,
-  LAST_REC
+  NR_OF_RECS     /* Just a final value to be used in array boundaries */
 } Gedcom_rec;
 
 typedef enum _ELT {
@@ -67,7 +67,7 @@ typedef enum _ELT {
   ELT_HEAD_PLAC_FORM,
   ELT_HEAD_NOTE,
   ELT_USER,
-  LAST_ELT
+  NR_OF_ELTS     /* Just a final value to be used in array boundaries */
 } Gedcom_elt;
 
 typedef enum _MECH {