]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(ef_ptr, ef_read): Oops on bad ID. Some callers rely on these
Markus Armbruster [Sun, 6 Nov 2005 11:01:37 +0000 (11:01 +0000)]
(ef_ptr, ef_read): Oops on bad ID.  Some callers rely on these
functions to fail at the end of the table.  To support that, the first
ID beyond the end is not considered bad.

(ef_ensure_space): Oops on bad ID.

18 years ago(NSC_BITS): Remove the trailing comma as it is last row.
Ron Koenderink [Sat, 5 Nov 2005 20:25:16 +0000 (20:25 +0000)]
(NSC_BITS): Remove the trailing comma as it is last row.

18 years ago(install_service): Use the compiled in default for location of econfig
Ron Koenderink [Sat, 5 Nov 2005 20:05:38 +0000 (20:05 +0000)]
(install_service):  Use the compiled in default for location of econfig
when the -e is not specified while creating a service.

18 years ago(xdhdr,xdhdr1,xditem,xdmeta,xdopt,xdver,xdfldnam):
Ron Koenderink [Sat, 5 Nov 2005 17:46:17 +0000 (17:46 +0000)]
(xdhdr,xdhdr1,xditem,xdmeta,xdopt,xdver,xdfldnam):
Remove the column header.
Not need as the xdump meta is functional.

18 years ago(xdopt,xdver,xdump): Add meta data for opt and ver.
Ron Koenderink [Sat, 5 Nov 2005 01:49:47 +0000 (01:49 +0000)]
(xdopt,xdver,xdump): Add meta data for opt and ver.

18 years ago(xdmeta): Fix the printing of the number of rows dumped.
Ron Koenderink [Fri, 4 Nov 2005 23:32:05 +0000 (23:32 +0000)]
(xdmeta): Fix the printing of the number of rows dumped.
Incorrectly included the skipped rows.

18 years ago(xdmeta): Don't dump meta data for stuff that is not dumped by
Markus Armbruster [Fri, 4 Nov 2005 19:56:47 +0000 (19:56 +0000)]
(xdmeta): Don't dump meta data for stuff that is not dumped by
xdflds().

18 years ago(NSC_BITS): New.
Markus Armbruster [Fri, 4 Nov 2005 19:11:30 +0000 (19:11 +0000)]
(NSC_BITS): New.
(meta_flags): Update for it.
(ship_ca, mchr_ca, plane_ca, plchr_ca, land_ca, lchr_ca, nchr_ca)
treaty_ca, nat_ca, empfile_ca, mdchr_ca): Use it.

(symbol_ca): Move value selector to beginning of array.

(meta_flags): Downcase names.

18 years ago(mission_short_name): Remove mission_short_name, not used.
Ron Koenderink [Fri, 4 Nov 2005 18:27:28 +0000 (18:27 +0000)]
(mission_short_name):   Remove mission_short_name, not used.

18 years ago(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
Markus Armbruster [Fri, 4 Nov 2005 18:09:08 +0000 (18:09 +0000)]
(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
opt_NO_HCMS.  This fixes output of `show se b', which used not to
reflect these options.
(improve): Simplify.

18 years ago(xdmeta): Fix rev. 1.36.
Markus Armbruster [Fri, 4 Nov 2005 12:44:33 +0000 (12:44 +0000)]
(xdmeta): Fix rev. 1.36.

18 years ago(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
Markus Armbruster [Thu, 3 Nov 2005 18:25:26 +0000 (18:25 +0000)]
(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
(PTR_CACHE): Rename.

(ARRAY_CACHE): New.
(empfile): Use it to set csize of elements EF_SHIP_CHR, EF_PLANE_CHR,
EF_LAND_CHR, EF_NUKE_CHR.
(ef_init_chr): Now that empfile[]'s initializer sets csize, remove the
temporary csize initialization here.  The value wasn't correct, but
better than nothing.

18 years ago(perform_mission): Do not pass the sub-owner to nreport(). News
Markus Armbruster [Thu, 3 Nov 2005 17:40:16 +0000 (17:40 +0000)]
(perform_mission): Do not pass the sub-owner to nreport().  News
doesn't show it, but selectors do.  Reported by Doug Wescott.

(nreport, ncache): Catch errors like the above.  Catch bad event
argument while we're at it.

18 years ago(xdopt, xdver): Fix missing footer.
Markus Armbruster [Thu, 3 Nov 2005 09:24:52 +0000 (09:24 +0000)]
(xdopt, xdver): Fix missing footer.

18 years ago(xdmeta): Add NULL ca check.
Ron Koenderink [Thu, 3 Nov 2005 00:03:55 +0000 (00:03 +0000)]
(xdmeta): Add NULL ca check.
Fixes a crash for xdump meta pow.

18 years ago(ichr_ca, pchr_ca, sect_ca, dchr_ca, NSC_GENITEM, ship_ca, mchr_ca)
Markus Armbruster [Tue, 1 Nov 2005 15:19:42 +0000 (15:19 +0000)]
(ichr_ca, pchr_ca, sect_ca, dchr_ca, NSC_GENITEM, ship_ca, mchr_ca)
plane_ca, plchr_ca, land_ca, lchr_ca, nuke_ca, nchr_ca, treaty_ca)
loan_ca, news_ca, lost_ca, commodity_ca, trade_ca, nat_ca)
(empfile_ca): Move row index selector to beginning of array and set
its table.  Set table for NSC_SITYPE(i_type), NSC_NATID, NSC_TYPEID
selectors.
(news_ca): Set selector action's table.
(commodity_ca, trade_ca): Set selector maxbidder's table.

18 years ago(trtstr): New members ef_type and trt_uid.
Markus Armbruster [Tue, 1 Nov 2005 12:53:43 +0000 (12:53 +0000)]
(trtstr): New members ef_type and trt_uid.
(do_treaty): Initialize them.
(treaty_ca): New selector uid.

18 years ago(ef_ptr): Null cache can't happen.
Markus Armbruster [Mon, 31 Oct 2005 21:26:16 +0000 (21:26 +0000)]
(ef_ptr): Null cache can't happen.

18 years ago(ef_open): EFF_STATIC and cache not null can't happen.
Markus Armbruster [Sun, 30 Oct 2005 18:48:55 +0000 (18:48 +0000)]
(ef_open): EFF_STATIC and cache not null can't happen.

(ef_open): Leave check of fd to do_write().

18 years ago(empfile_ca): Rename selector file_name to file, to match the member
Markus Armbruster [Sun, 30 Oct 2005 16:52:10 +0000 (16:52 +0000)]
(empfile_ca): Rename selector file_name to file, to match the member
name.

18 years ago(ichr): Define without array size, like the other characteristics
Markus Armbruster [Sun, 30 Oct 2005 16:51:21 +0000 (16:51 +0000)]
(ichr): Define without array size, like the other characteristics
tables.

18 years agoDoc fix.
Markus Armbruster [Sun, 30 Oct 2005 16:50:32 +0000 (16:50 +0000)]
Doc fix.

18 years ago(diroff, dirch, routech): Declare with array size. Define without.
Markus Armbruster [Sun, 30 Oct 2005 16:46:46 +0000 (16:46 +0000)]
(diroff, dirch, routech): Declare with array size.  Define without.
This requires moving routech[] declaration from map.h to path.h.  Get
rid of s_char.

18 years ago(ep): Global variable pointing to sector cache. Gross. Remove.
Markus Armbruster [Sun, 30 Oct 2005 16:22:29 +0000 (16:22 +0000)]
(ep): Global variable pointing to sector cache.  Gross.  Remove.

(bp_neighbors, bp_lbcost, pathcost): Replace pointer arithmetic by
array subscript.

18 years agoC_EXECUTE security.
Markus Armbruster [Sun, 30 Oct 2005 15:03:02 +0000 (15:03 +0000)]
C_EXECUTE security.

18 years ago(coun): Last access used to report last login time.
Markus Armbruster [Sun, 30 Oct 2005 14:59:39 +0000 (14:59 +0000)]
(coun): Last access used to report last login time.
Counter-intuitive.  Report last connection time range instead.
Unfortunately, this requires a change in output format.

(coun): Report on all countries even to mortals.  This used to be
done, and was most probably changed because it gave away too much
information.  Carefully limit the information given to mortals, as
follows.  Limit last access information to whether deities or allies
are logged on right now, no longer report connection time for deities
that are not logged on.  Remove column time for mortals, rename it to
BTU for deities.  Report status, but with less detail if HIDDEN is
enabled.

18 years ago(buy, check_market, trad, check_trade): Remove the following virtually
Markus Armbruster [Sun, 30 Oct 2005 14:33:44 +0000 (14:33 +0000)]
(buy, check_market, trad, check_trade): Remove the following virtually
undocumented feature: When a buyer didn't have enough money at the
time of the trade, the seller *automatically* granted a high-interest,
medium term loan for up to 90% of the price.  This is just a silly
trap for unwary sellers and buyers alike.
(N_FIN_TROUBLE, N_CREDIT_JUNK): Unused, remove.
(rpt): Update accordingly.

18 years ago(empfile): Rename member ef_uid to uid for consistency with other
Markus Armbruster [Sun, 30 Oct 2005 12:50:13 +0000 (12:50 +0000)]
(empfile): Rename member ef_uid to uid for consistency with other
members.

(empfile): Reorder members for clearer documentation.

(EFF_IMMUTABLE): New.
(EFF_OPEN): Remove, use ~EFF_IMMUTABLE.

(empfile): Don't initialize member size to a useless value for EF_MAP
and EF_BMAP.  ef_init() writes the real value.

18 years ago(ef_init_chr): Add a NULL check to sentinel check.
Ron Koenderink [Sat, 29 Oct 2005 20:38:59 +0000 (20:38 +0000)]
(ef_init_chr): Add a NULL check to sentinel check.

18 years ago(ef_init): Fix check for sentinel.
Markus Armbruster [Sat, 29 Oct 2005 16:50:07 +0000 (16:50 +0000)]
(ef_init): Fix check for sentinel.

18 years ago(xdump): Use xditem() for all empfile tables.
Markus Armbruster [Sat, 29 Oct 2005 16:44:53 +0000 (16:44 +0000)]
(xdump): Use xditem() for all empfile tables.
(xdchr, xdmeta): Specialize for meta-tables, rename.

18 years ago(meta_flags, meta_type): Change sentinel name to NULL to match the
Markus Armbruster [Sat, 29 Oct 2005 16:40:17 +0000 (16:40 +0000)]
(meta_flags, meta_type): Change sentinel name to NULL to match the
other symbol tables.

18 years ago(ef_init, ef_init_srv): Rename old ef_init() ef_init_srv(), call new
Markus Armbruster [Sat, 29 Oct 2005 15:16:50 +0000 (15:16 +0000)]
(ef_init, ef_init_srv): Rename old ef_init() ef_init_srv(), call new
ef_init().  Move initialization of map sizes to ef_init().
(main): Don't initialize map sizes by hand, call ef_init().

(fileinit): Internal linkage.

18 years ago(rpt, page_headings): Declare with array size. Define without.
Markus Armbruster [Sat, 29 Oct 2005 14:48:32 +0000 (14:48 +0000)]
(rpt, page_headings): Declare with array size.  Define without.

(empfile): Correctly initialize members cids, csize, fids for all
EFF_STATIC tables except EF_SHIP_CHR, EF_PLANE_CHR, EF_LAND_CHR,
EF_NUKE_CHR, EF_META and the symbol tables.

18 years ago(EF_TREATY_CHR, EF_TREATY_FLAGS): Rename for consistency with other flags.
Markus Armbruster [Sat, 29 Oct 2005 14:36:10 +0000 (14:36 +0000)]
(EF_TREATY_CHR, EF_TREATY_FLAGS): Rename for consistency with other flags.

(treaty_ca): Add missing EF_TREATY_FLAGS to selectors acond, bcond.

18 years ago(tchrstr, tchr_ca): Remove, use struct symbol and symbol_ca. Users
Markus Armbruster [Sat, 29 Oct 2005 14:10:23 +0000 (14:10 +0000)]
(tchrstr, tchr_ca): Remove, use struct symbol and symbol_ca.  Users
changed.
(tchr, treaty_flags): Rename for consistency with other flags.

18 years ago(lookup, symbol): Rename. Rename members to match selectors and
Markus Armbruster [Sat, 29 Oct 2005 07:46:42 +0000 (07:46 +0000)]
(lookup, symbol): Rename.  Rename members to match selectors and
better reflect their purpose.  Users changed.
(lookup_ca, symbol_ca): Rename.

18 years ago(intmatch): Assumes that struct size is a multiple of sizeof(int), out
Markus Armbruster [Sat, 29 Oct 2005 07:15:14 +0000 (07:15 +0000)]
(intmatch): Assumes that struct size is a multiple of sizeof(int), out
of laziness.  The assumption is true on any sane machine, due to
alignment constraints.  But the function doesn't provide enough value
to make me fix or document this.  Remove it.
(lookup): Replace it.

18 years ago(dchr): Remove second sentinel.
Markus Armbruster [Sat, 29 Oct 2005 06:34:21 +0000 (06:34 +0000)]
(dchr): Remove second sentinel.

18 years ago(rpt): Add sentinel.
Markus Armbruster [Sat, 29 Oct 2005 06:27:00 +0000 (06:27 +0000)]
(rpt): Add sentinel.
(EF_NEWS_CHR): New.
(empfile): Add its entry.

18 years ago(ef_byname): Old version didn't work when a table name was followed by
Markus Armbruster [Sat, 29 Oct 2005 06:18:41 +0000 (06:18 +0000)]
(ef_byname): Old version didn't work when a table name was followed by
one of its prefixes.  src/lib/global/file.c rev. 1.18 added such table
entries, and file.h rev. 1.34 made them visible to ef_byname().
Simply use stmtch().  This also rejects ambiguous abbreviations: "s"
used to return EF_SECTOR, it now returns M_NOTUNIQUE.

18 years ago(nchr): Move the array size to nuke.h. Add rows for configurable units.
Ron Koenderink [Fri, 28 Oct 2005 13:23:08 +0000 (13:23 +0000)]
(nchr): Move the array size to nuke.h.  Add rows for configurable units.
(lchr,plchr,mchr): Add array size to land.h/plane.h/ship.h.  Add rows for
configurable units.
(ichr,pchr,dchr,intrchr): Add array size to item.h/product.h/sect.h.

18 years ago(empfile): Add one to the array size for the sentinel row.
Ron Koenderink [Fri, 28 Oct 2005 12:56:54 +0000 (12:56 +0000)]
(empfile): Add one to the array size for the sentinel row.

18 years ago(NSC_CONST,castr,meta_flags): Add new flag NSC_CONST to castr.
Ron Koenderink [Fri, 28 Oct 2005 12:35:36 +0000 (12:35 +0000)]
(NSC_CONST,castr,meta_flags): Add new flag NSC_CONST to castr.
(ichr_ca,pchr_ca,intrchr_ca): Use it.

18 years ago(EF_IS_GAME_STATE): New.
Markus Armbruster [Fri, 28 Oct 2005 07:03:31 +0000 (07:03 +0000)]
(EF_IS_GAME_STATE): New.
(xdump, main): Use it.

(EF_MAX): Change to largest table ID + 1.  This is now possible
because the changes above get rid of the assumption that
empfile[0..EF_MAX-1] is only game state.  Code can now work on any
table using the advertized empfile interface, not just on game state.
(my_ef_byname): Remove, use ef_byname().

18 years ago(set): Fix the previous revision.
Markus Armbruster [Thu, 27 Oct 2005 23:23:42 +0000 (23:23 +0000)]
(set): Fix the previous revision.

18 years ago(ef_byname_from): New.
Markus Armbruster [Thu, 27 Oct 2005 21:33:17 +0000 (21:33 +0000)]
(ef_byname_from): New.
(set, mission, multifire, fuel, cons_choose, cede): Use it instead of
ef_byname().  Remove the hacks to map unwanted results to wanted
results.  The hacks in set() were broken: bad input made the code cast
arbitrary items to union trdgenstr, with potentially disastrous
consequences.  Closes #906483 and #906486.

(set): Less cryptic prompt and diagnostics.

18 years ago(xdftr): Change footer to / instead of dumped.
Ron Koenderink [Thu, 27 Oct 2005 21:22:33 +0000 (21:22 +0000)]
(xdftr): Change footer to / instead of dumped.

18 years ago(xdump,xdchr,xdhdr,xdhdr1): Add meta data dump to xdump.
Ron Koenderink [Thu, 27 Oct 2005 19:37:19 +0000 (19:37 +0000)]
(xdump,xdchr,xdhdr,xdhdr1): Add meta data dump to xdump.

18 years ago(ef_open): Implement EFF_STATIC.
Markus Armbruster [Wed, 26 Oct 2005 16:49:52 +0000 (16:49 +0000)]
(ef_open): Implement EFF_STATIC.

(ef_open): Simplify dynamic buffer allocation.

18 years ago(empth_start, empth_init) [_EMPTH_POSIX]: Do not handle SIGALRM. We
Markus Armbruster [Wed, 26 Oct 2005 16:30:00 +0000 (16:30 +0000)]
(empth_start, empth_init) [_EMPTH_POSIX]: Do not handle SIGALRM.  We
don't raise it, and the signal handler is fishy.
(empth_alarm): Unused, remove.

18 years ago(info): Remove dead code.
Markus Armbruster [Wed, 26 Oct 2005 16:22:32 +0000 (16:22 +0000)]
(info): Remove dead code.

18 years agoOne more SNEAK_ATTACK leftover.
Markus Armbruster [Wed, 26 Oct 2005 16:19:17 +0000 (16:19 +0000)]
One more SNEAK_ATTACK leftover.

18 years ago(disassoc): Rewrite for POSIX, return status. Caller changed.
Markus Armbruster [Tue, 25 Oct 2005 18:42:03 +0000 (18:42 +0000)]
(disassoc): Rewrite for POSIX, return status.  Caller changed.
Problems with the old code:
* Insufficient error checking.
* It used TIOCNOTTY (obsolete BSDism) to get rid of the controlling
  tty, except for hpux || Rel4, where it attempted to use the POSIX
  way, but screwed up.
* It left file descriptors 0, 1, 2 in a somewhat weird state.

18 years ago(empfile,mdchr_ca,meta_type,meta_flags):
Ron Koenderink [Tue, 25 Oct 2005 00:37:59 +0000 (00:37 +0000)]
(empfile,mdchr_ca,meta_type,meta_flags):
Add meta table and associated symbol tables.

18 years ago(main): Don't close EF_NATION twice.
Markus Armbruster [Mon, 24 Oct 2005 23:39:45 +0000 (23:39 +0000)]
(main): Don't close EF_NATION twice.

18 years ago(EFF_STATIC): New.
Markus Armbruster [Mon, 24 Oct 2005 23:35:18 +0000 (23:35 +0000)]
(EFF_STATIC): New.
(empfile): Use it.
(ef_open): Oops on it (not implemented).
(ef_close): Implement it (trivial).

18 years agoComments.
Markus Armbruster [Mon, 24 Oct 2005 23:30:22 +0000 (23:30 +0000)]
Comments.

18 years ago(ef_nameof, ef_ensure_space): Oops on bad argument.
Markus Armbruster [Mon, 24 Oct 2005 23:27:18 +0000 (23:27 +0000)]
(ef_nameof, ef_ensure_space): Oops on bad argument.

(ef_check): Use CANT_HAPPEN().

18 years ago(ef_zapcache): Clearing the cache doesn't make sense. No harm done if
Markus Armbruster [Mon, 24 Oct 2005 23:23:53 +0000 (23:23 +0000)]
(ef_zapcache): Clearing the cache doesn't make sense.  No harm done if
the next user can't use the cache, it gets automatically zapped then.
Remove.

18 years ago(ef_read): Catch null cache.
Markus Armbruster [Mon, 24 Oct 2005 23:16:13 +0000 (23:16 +0000)]
(ef_read): Catch null cache.

(ef_read): Used to get the file size again some circumstances; doesn't
make sense, as no other process may be writing this file.

(ef_write): Don't refuse to write beyond record 65536.  This module
can cope with that.  Some users have trouble long before that (short
record numbers), but that should be handled there.

(ef_write): Catch table not file-backed.

18 years ago(ef_extend): Use do_write() & simplify. Catch table not file-backed.
Markus Armbruster [Mon, 24 Oct 2005 22:47:16 +0000 (22:47 +0000)]
(ef_extend): Use do_write() & simplify.  Catch table not file-backed.
Catch negative count; used to have no effect with EFF_MEM, and
confusion otherwise.  Try to recover from partially successful
extension.  Need help from ef_write() to do a better job; to be done.

18 years ago(ef_extend): Fix rev. 1.25.
Markus Armbruster [Mon, 24 Oct 2005 22:44:29 +0000 (22:44 +0000)]
(ef_extend): Fix rev. 1.25.

18 years agoClean up rev. 1.30.
Markus Armbruster [Mon, 24 Oct 2005 21:57:20 +0000 (21:57 +0000)]
Clean up rev. 1.30.

18 years ago(ef_ptr): Change return type to void *.
Markus Armbruster [Mon, 24 Oct 2005 21:43:47 +0000 (21:43 +0000)]
(ef_ptr): Change return type to void *.

(ef_ptr): Use CANT_HAPPEN() to ensure EFF_MEM; check it before less
serious index out of range failure.

18 years ago(ef_open): Fix fatal typo.
Markus Armbruster [Mon, 24 Oct 2005 20:42:27 +0000 (20:42 +0000)]
(ef_open): Fix fatal typo.

18 years ago(ef_open): Portability fix: malloc(0) may return null, which is not a
Markus Armbruster [Mon, 24 Oct 2005 20:36:17 +0000 (20:36 +0000)]
(ef_open): Portability fix: malloc(0) may return null, which is not a
failure.  fillcache() chokes on null cache, so don't call it for empty
files.

18 years ago(ef_open): Failed to reset empfile member fd on failure, and leaked
Markus Armbruster [Mon, 24 Oct 2005 20:18:04 +0000 (20:18 +0000)]
(ef_open): Failed to reset empfile member fd on failure, and leaked
file descriptors.

(ef_flush, ef_close): Rely on negative fd instead of null cache to
detect unopened file.  This is more logical and consistent with the
use of cache by the new tables that are not file-backed (rev. 1.22).
Use CANT_HAPPEN().

(ef_close): Failed to report cash flush failure.

(ef_close): Clear all EFF_OPEN flags.  Should have been done in
rev. 1.27.

18 years ago(do_write): New.
Markus Armbruster [Mon, 24 Oct 2005 19:17:05 +0000 (19:17 +0000)]
(do_write): New.
(ef_flush, ef_write): Use it.  Old code couldn't cope with interrupted
or short writes (mostly harmless, as disk reads commonly complete).

(ef_write): Use CANT_HAPPEN() for catching unimplemented table
extensions.

18 years ago(fillcache): Rewrite. Old version failed to check success of lseek(),
Markus Armbruster [Mon, 24 Oct 2005 19:02:39 +0000 (19:02 +0000)]
(fillcache): Rewrite.  Old version failed to check success of lseek(),
couldn't cope with interrupted or short reads (mostly harmless, as
disk reads commonly complete), and left an empty cache after a failed
read.
(ef_open): Use fillcache() instead of read().
(ef_read): Fail if fillcache() fails to read at least one element.
Old version copied garbage to its caller and claimed success.

18 years ago(ef_open): Fail if file size is not a multiple of record size.
Markus Armbruster [Mon, 24 Oct 2005 18:40:13 +0000 (18:40 +0000)]
(ef_open): Fail if file size is not a multiple of record size.

18 years ago(ef_open, EFF_RDONLY, EFF_CREATE, EFF_OPEN): Replace mode parameter
Markus Armbruster [Mon, 24 Oct 2005 18:18:59 +0000 (18:18 +0000)]
(ef_open, EFF_RDONLY, EFF_CREATE, EFF_OPEN): Replace mode parameter
(really open flags, not mode) by new flags EFF_RDONLY, EFF_CREATE.
Open flags were needlessly general.  Callers changed.
(empfile): Member mode now unused, remove.

18 years agoUpdate for src/lib/commands/new.c:1.24 and include/prototypes.h:1.92
Marc Olzheim [Mon, 24 Oct 2005 15:35:35 +0000 (15:35 +0000)]
Update for src/lib/commands/new.c:1.24 and include/prototypes.h:1.92

18 years ago(START_UNITS, start_unit_type, deity_build_land, new): Remove
Markus Armbruster [Sun, 23 Oct 2005 20:52:46 +0000 (20:52 +0000)]
(START_UNITS, start_unit_type, deity_build_land, new): Remove
undocumented compile-time option START_UNITS.  It hasn't been used in
ages; writing a quick build script is easier than recompiling the
server.

18 years agoClean up the previous revision.
Markus Armbruster [Sun, 23 Oct 2005 15:03:12 +0000 (15:03 +0000)]
Clean up the previous revision.

18 years agoMore 4.2.23 changes. v4.2.23
Markus Armbruster [Sun, 23 Oct 2005 09:36:26 +0000 (09:36 +0000)]
More 4.2.23 changes.

18 years agoUpdate example to current output.
Markus Armbruster [Sun, 23 Oct 2005 09:28:15 +0000 (09:28 +0000)]
Update example to current output.

18 years agoRemove option SNEAK_ATTACK leftovers.
Markus Armbruster [Sun, 23 Oct 2005 09:26:15 +0000 (09:26 +0000)]
Remove option SNEAK_ATTACK leftovers.

18 years ago(draw_map): Parameter bmap abused EF_MAP and EF_BMAP, and required the
Markus Armbruster [Sun, 23 Oct 2005 08:58:23 +0000 (08:58 +0000)]
(draw_map): Parameter bmap abused EF_MAP and EF_BMAP, and required the
silly EF_NMAP.  Use characters instead: 'b' for bmap (was EF_BMAP),
't' for true bmap (was EF_MAP), 'r' for revert (was EF_MAP+EF_BMAP,
more sillness), and 'n' for nmap (was EF_NMAP).  Callers changed.
(EF_NMAP): Remove.

18 years ago[NOSTRDUP]: Drop support for systems without strdup(). First commit
Markus Armbruster [Sun, 23 Oct 2005 08:37:38 +0000 (08:37 +0000)]
[NOSTRDUP]: Drop support for systems without strdup().  First commit
was incomplete.

18 years ago(map, draw_map): Remove undocumented feature that lets deities run map
Markus Armbruster [Sun, 23 Oct 2005 08:32:49 +0000 (08:32 +0000)]
(map, draw_map): Remove undocumented feature that lets deities run map
as another country.  It appeared around Chainsaw 3.0 and never fully
worked.  See also #1335316.

18 years ago(map): Fix rev. 1.4: it treated nmap as a bmap command.
Markus Armbruster [Sun, 23 Oct 2005 07:41:24 +0000 (07:41 +0000)]
(map): Fix rev. 1.4: it treated nmap as a bmap command.

18 years ago(ef_close): Reset member fd.
Markus Armbruster [Sun, 23 Oct 2005 06:24:08 +0000 (06:24 +0000)]
(ef_close): Reset member fd.
(ef_open): Catch attempt to open open file.

18 years ago(EFF_OPEN): New.
Markus Armbruster [Sun, 23 Oct 2005 06:17:14 +0000 (06:17 +0000)]
(EFF_OPEN): New.
(ef_open): Restrict HOW to EFF_OPEN.

18 years ago(ship_ca,land_ca,plane_ca): Add missing EF_BAD for radius row in
Ron Koenderink [Sat, 22 Oct 2005 23:53:46 +0000 (23:53 +0000)]
(ship_ca,land_ca,plane_ca): Add missing EF_BAD for radius row in
NSC_GENITEM.

18 years ago(ef_open): Remove code killed by the previous revision.
Markus Armbruster [Sat, 22 Oct 2005 19:59:56 +0000 (19:59 +0000)]
(ef_open): Remove code killed by the previous revision.

18 years ago[aix]: Remove special case include, I doubt it's necessary.
Markus Armbruster [Sat, 22 Oct 2005 19:31:44 +0000 (19:31 +0000)]
[aix]: Remove special case include, I doubt it's necessary.

18 years ago[_NTSDK]: Remove _NTSDK not needed.
Ron Koenderink [Sat, 22 Oct 2005 19:19:16 +0000 (19:19 +0000)]
[_NTSDK]: Remove _NTSDK not needed.

18 years ago(ef_open): Don't assume blksize() is the same for all files.
Markus Armbruster [Sat, 22 Oct 2005 19:12:27 +0000 (19:12 +0000)]
(ef_open): Don't assume blksize() is the same for all files.

(ef_open): Ensure the cache has at least one slot.

18 years ago(empfile, empfile_ca): New struct empfile member ef_uid.
Ron Koenderink [Sat, 22 Oct 2005 19:10:22 +0000 (19:10 +0000)]
(empfile, empfile_ca): New struct empfile member ef_uid.

18 years ago(blksize) [aix, sgi]: Drop special case; I bet these systems support
Markus Armbruster [Sat, 22 Oct 2005 19:09:12 +0000 (19:09 +0000)]
(blksize) [aix, sgi]: Drop special case; I bet these systems support
st_blksize by now.

18 years ago(wripglob): No need to include misc.h since rev. 1.16.
Markus Armbruster [Sat, 22 Oct 2005 18:55:30 +0000 (18:55 +0000)]
(wripglob): No need to include misc.h since rev. 1.16.

18 years ago(ioq_destroy) [aix, NeXT]: Remove special case, which leaked memory,
Markus Armbruster [Sat, 22 Oct 2005 18:28:11 +0000 (18:28 +0000)]
(ioq_destroy) [aix, NeXT]: Remove special case, which leaked memory,
because freeing it didn't work at some time.  Well, it either works
now, or we'll find out what's wrong.

18 years agoUltrix is no longer supported, remove special case.
Markus Armbruster [Sat, 22 Oct 2005 18:24:01 +0000 (18:24 +0000)]
Ultrix is no longer supported, remove special case.

18 years ago[NOSTRDUP]: Drop support for systems without strdup().
Markus Armbruster [Sat, 22 Oct 2005 18:12:22 +0000 (18:12 +0000)]
[NOSTRDUP]: Drop support for systems without strdup().

18 years ago(castr,empfile,ship_chr,plane_chr,land_chr,nuke_chr):
Ron Koenderink [Sat, 22 Oct 2005 16:39:45 +0000 (16:39 +0000)]
(castr,empfile,ship_chr,plane_chr,land_chr,nuke_chr):
Add table index to castr to create a reference to the symbol table.
Add "ship chr flags" table to empfile.
Add "plane chr flags" table to empfile.
Add "land chr flags" table to empfile.
Add "nuke chr flags" table to empfile.
Add EF_SHIP_CHR_FLAGS reference to ship_chr.
Add EF_PLANE_CHR_FLAGS reference to plane_chr.
Add EF_LAND_CHR_FLAGS reference to land_chr.
Add EF_NUKE_CHR_FLAGS reference to nuke_chr.

(show_ship_capab,show_plane_capab,show_land_capab,
show_nuke_capab,ship_flags,land_flags,plane_flags,nuke_flags):
Move ship_flags nsc.c from show.c
Rename ship_flags to ship_chr_flags.
Move plane_flags nsc.c from show.c
Rename plane_flags to plane_chr_flags.
Move land_flags nsc.c from show.c
Rename land_flags to land_chr_flags.
Move nuke_flags nsc.c from show.c
Rename nuke_flags to nuke_chr_flags.
This is to accomodate future symbol table for EF_PLANE table.

18 years ago(ef_init): Remove cadef member from fileinit,
Ron Koenderink [Sat, 22 Oct 2005 13:55:04 +0000 (13:55 +0000)]
(ef_init): Remove cadef member from fileinit,
insert directly into the empfile structure.
Add ef_type member to fileinit to identify rows with data.
Remove unused rows of fileinit.

18 years ago(empfile[]) Add table of tables to empfile[].
Ron Koenderink [Sat, 22 Oct 2005 12:38:58 +0000 (12:38 +0000)]
(empfile[]) Add table of tables to empfile[].

18 years ago(player_init): Fix initialization of sin. Some systems have a member
Markus Armbruster [Sat, 22 Oct 2005 10:23:20 +0000 (10:23 +0000)]
(player_init): Fix initialization of sin.  Some systems have a member
sin_zero and choke when it's not zeroed.  INADDR_ANY wasn't converted
to network byte order, but since it's zero, the bug couldn't bite.

18 years ago(io_open, io_noblocking): FNDELAY is long obsolete, use O_NONBLOCK.
Markus Armbruster [Sat, 22 Oct 2005 10:18:07 +0000 (10:18 +0000)]
(io_open, io_noblocking): FNDELAY is long obsolete, use O_NONBLOCK.