]> git.pond.sub.org Git - empserver/commitdiff
(empfile): Member itemoffs is unused since file.c rev. 1.15; remove.
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 30 Sep 2005 20:02:57 +0000 (20:02 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 30 Sep 2005 20:02:57 +0000 (20:02 +0000)
include/file.h
src/lib/global/file.c

index 34e44a48bcc5755d0def44ed6ed62b9a8a57204a..26562695ccbd21caca017cf3909ab4423a3ccd50 100644 (file)
@@ -45,7 +45,6 @@ struct empfile {
     void (*init) (int, char *);        /* call this when object is created */
     int (*postread) (int, char *);     /* specific massage routines for items */
     int (*prewrite) (int, char *);
     void (*init) (int, char *);        /* call this when object is created */
     int (*postread) (int, char *);     /* specific massage routines for items */
     int (*prewrite) (int, char *);
-    ptrdiff_t itemoffs;                /* offset of item[] in struct */
     int fd;                    /* file descriptor */
     int baseid;                        /* starting item in cache */
     int cids;                  /* # ids in cache */
     int fd;                    /* file descriptor */
     int baseid;                        /* starting item in cache */
     int cids;                  /* # ids in cache */
index 8f53b5393f7915f3142f4f94f67deda8d17e8a98..36a045bdd6e2f96ee29992f747f5221dca0a14a6 100644 (file)
@@ -25,7 +25,7 @@
  *
  *  ---
  *
  *
  *  ---
  *
- *  fileglb.c: Empire selection global structures.
+ *  file.c: Empire game data file descriptions.
  * 
  *  Known contributors to this file:
  *     
  * 
  *  Known contributors to this file:
  *     
 struct empfile empfile[] = {
     {"sect", "sector", EFF_XY | EFF_OWNER,
      0, sizeof(struct sctstr), NULL, NULL, NULL,
 struct empfile empfile[] = {
     {"sect", "sector", EFF_XY | EFF_OWNER,
      0, sizeof(struct sctstr), NULL, NULL, NULL,
-     offsetof(struct sctstr, sct_item), -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"ship", "ship", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct shpstr), NULL, NULL, NULL,
     {"ship", "ship", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct shpstr), NULL, NULL, NULL,
-     offsetof(struct shpstr, shp_item), -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"plane", "plane", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct plnstr), NULL, NULL, NULL,
     {"plane", "plane", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct plnstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"land", "land", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct lndstr), NULL, NULL, NULL,
     {"land", "land", EFF_XY | EFF_OWNER | EFF_GROUP,
      0, sizeof(struct lndstr), NULL, NULL, NULL,
-     offsetof(struct lndstr, lnd_item), -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"nuke", "nuke", EFF_XY | EFF_OWNER,
      0, sizeof(struct nukstr), NULL, NULL, NULL,
     {"nuke", "nuke", EFF_XY | EFF_OWNER,
      0, sizeof(struct nukstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"news", "news", 0,
      0, sizeof(struct nwsstr), NULL, NULL, NULL,
     {"news", "news", 0,
      0, sizeof(struct nwsstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"treaty", "treaty", 0,
      0, sizeof(struct trtstr), NULL, NULL, NULL,
     {"treaty", "treaty", 0,
      0, sizeof(struct trtstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"trade", "trade", 0,
      0, sizeof(struct trdstr), NULL, NULL, NULL,
     {"trade", "trade", 0,
      0, sizeof(struct trdstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"pow", "power", 0,
      0, sizeof(struct powstr), NULL, NULL, NULL,
     {"pow", "power", 0,
      0, sizeof(struct powstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"nat", "nation", EFF_OWNER,
      0, sizeof(struct natstr), NULL, NULL, NULL,
     {"nat", "nation", EFF_OWNER,
      0, sizeof(struct natstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"loan", "loan", 0,
      0, sizeof(struct lonstr), NULL, NULL, NULL,
     {"loan", "loan", 0,
      0, sizeof(struct lonstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"map", "map", 0,
      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
     {"map", "map", 0,
      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"bmap", "bmap", 0,
      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
     {"bmap", "bmap", 0,
      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"commodity", "commodity", 0,
      0, sizeof(struct comstr), NULL, NULL, NULL,
     {"commodity", "commodity", 0,
      0, sizeof(struct comstr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL},
+     -1, -1, 0, 0, NULL, 0, NULL},
     {"lost", "lostitems", EFF_OWNER,
      0, sizeof(struct loststr), NULL, NULL, NULL,
     {"lost", "lostitems", EFF_OWNER,
      0, sizeof(struct loststr), NULL, NULL, NULL,
-     0, -1, -1, 0, 0, NULL, 0, NULL}
+     -1, -1, 0, 0, NULL, 0, NULL}
 };
 };