]> git.pond.sub.org Git - empserver/blobdiff - src/lib/global/file.c
Clean up maintenance of config table sentinels
[empserver] / src / lib / global / file.c
index b60e2c1701874fb08e650946b19f4e42335ccfb4..2cc640f6ff5a4331212dcf95167da42640b1f3c0 100644 (file)
@@ -28,7 +28,7 @@
  *  file.c: Empire game data file descriptions.
  * 
  *  Known contributors to this file:
- *     Markus Armbruster, 2005-2007
+ *     Markus Armbruster, 2005-2008
  */
 
 #include <config.h>
@@ -86,7 +86,7 @@
     SZ((array)), 0, SZ((array)) - 1, SZ((array)) - 1, -1, NULL, NULL
 
 /* Common configuration table flags */
-#define EFF_CFG (EFF_PRIVATE | EFF_MEM | EFF_STATIC)
+#define EFF_CFG (EFF_PRIVATE | EFF_MEM | EFF_STATIC | EFF_SENTINEL)
 
 struct empfile empfile[] = {
     /*
@@ -195,14 +195,15 @@ struct empfile empfile[] = {
     {EF_TABLE, "table", NULL, empfile_ca,
      ARRAY_TABLE(empfile, EFF_CFG)},
     {EF_VERSION, "version", NULL, NULL,
-     sizeof(PACKAGE_STRING), 0, version, 0, 0, 1, 1, -1, NULL, NULL},
+     sizeof(PACKAGE_STRING), EFF_STATIC, version, 1, 0, 1, 1, -1,
+     NULL, NULL},
     {EF_META, "meta", NULL, mdchr_ca,
      PTR_CACHE(mdchr_ca, EFF_CFG)},
 
     /*
      * Symbol tables
      *
-     * These get bogus size, cids and fids here.  Fixed up by
+     * These get bogus csize, cids and fids here.  Fixed up by
      * empfile_init().
      */
 #define SYMTAB(type, name, tab) \