empserver/include
Markus Armbruster 0fcd935999 Clean up how game state file sizes are checked
New struct empfile member nent replaces ef_open() parameter nelt.
Cleaner, because the expected size is a property of the file, not of
how it's used.  Also fixes empdump to check file sizes.

Complication: with EFF_CREATE, ef_open() creates an empty file, to be
extended to the correct size.  Callers passed nelt argument -1 along
with EFF_CREATE, to make ef_open() accept the empty file.  Can't do
the same for empfile member nent.  Instead, make ef_open() not check
the (zero) size then.

Replaces commit 5750107b, v4.3.15.
2011-06-25 16:50:06 +02:00
..
budg.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
com.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
combat.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
commands.h Clean up superfluous include of nsc.h in prototypes.h 2011-04-14 19:46:05 +02:00
commodity.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
damage.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
distribute.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
econfig-spec.h Commit 44db5453 added a FIXME comment accidentally, drop it 2011-04-16 14:50:51 +02:00
empio.h Update known contributors comments 2011-04-14 20:21:23 +02:00
empobj.h Update known contributors comments 2011-04-14 20:21:23 +02:00
empthread.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
file.h Clean up how game state file sizes are checked 2011-06-25 16:50:06 +02:00
game.h Update known contributors comments 2011-04-14 20:21:23 +02:00
ioqueue.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
item.h Better document how .config must match compiled-in UIDs 2011-06-25 16:45:29 +02:00
journal.h New journal event "output" 2011-04-14 20:21:21 +02:00
land.h Update known contributors comments 2011-04-14 20:21:23 +02:00
loan.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
lost.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
lwp.h Update known contributors comments 2011-04-14 20:21:23 +02:00
map.h Clean up move_ground()'s parsing of DIR_MAP 2011-04-14 20:21:23 +02:00
match.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
misc.h Update known contributors comments 2011-04-14 20:21:23 +02:00
mission.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
nat.h Update known contributors comments 2011-04-14 20:21:23 +02:00
news.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
nsc.h A few comment fixes for nsc.[ch] file.[ch] 2011-06-25 16:45:31 +02:00
nuke.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
optlist.h Update known contributors comments 2011-04-14 20:21:23 +02:00
path.h Remove p_mode, use MOB_FLY and MOB_SAIL instead 2011-04-12 21:51:32 +02:00
plague.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
plane.h Update known contributors comments 2011-04-14 20:21:23 +02:00
player.h Update known contributors comments 2011-04-14 20:21:23 +02:00
power.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
product.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
proto.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
prototypes.h Make generation numbers catch more potential yields on input 2011-04-14 20:21:23 +02:00
queue.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
retreat.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
sect.h Better document how .config must match compiled-in UIDs 2011-06-25 16:45:29 +02:00
server.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
service.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
ship.h Update known contributors comments 2011-04-14 20:21:23 +02:00
tel.h Update known contributors comments 2011-04-14 20:21:23 +02:00
trade.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
treaty.h Update known contributors comments 2011-04-14 20:21:23 +02:00
types.h Update known contributors comments 2011-04-14 20:21:23 +02:00
unit.h Change struct empfile callback onresize() to return void 2011-06-25 16:50:05 +02:00
update.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
version.h License upgrade to GPL version 3 or later 2011-04-12 21:20:58 +02:00
xdump.h Update known contributors comments 2011-04-14 20:21:23 +02:00
xy.h Move xysize_range(), xydist_range() to xy.c and xy.h 2011-04-14 20:21:21 +02:00