]> git.pond.sub.org Git - empserver/log
empserver
18 years agoRework obsolete comment on hours file, an move it where it belongs:
Markus Armbruster [Fri, 24 Feb 2006 18:33:58 +0000 (18:33 +0000)]
Rework obsolete comment on hours file, an move it where it belongs:
next to variable definitions and into econfig doc strings.

18 years ago(vers): Clean up damage spill matrix. PZ5
Markus Armbruster [Thu, 23 Feb 2006 18:34:42 +0000 (18:34 +0000)]
(vers): Clean up damage spill matrix.

(vers): Move show_custom() down somewhat.

(show_custom): Point players to show command.

18 years ago(config_tables, custom_tables, read_config_tables, read_custom_tables)
Markus Armbruster [Thu, 23 Feb 2006 18:31:23 +0000 (18:31 +0000)]
(config_tables, custom_tables, read_config_tables, read_custom_tables)
(read_config_table_file, read_custom_table_file): Rename.

18 years ago(EFF_CUSTOM): New.
Markus Armbruster [Thu, 23 Feb 2006 08:37:46 +0000 (08:37 +0000)]
(EFF_CUSTOM): New.
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.

18 years ago(player_main): Don't end session silently when init_nats() fails.
Markus Armbruster [Thu, 23 Feb 2006 07:40:11 +0000 (07:40 +0000)]
(player_main): Don't end session silently when init_nats() fails.

18 years ago(init_nats): Use CANT_HAPPEN() where appropriate.
Markus Armbruster [Thu, 23 Feb 2006 07:38:38 +0000 (07:38 +0000)]
(init_nats): Use CANT_HAPPEN() where appropriate.

18 years agoDocument not to edit this file to customize a game.
Markus Armbruster [Thu, 23 Feb 2006 07:36:31 +0000 (07:36 +0000)]
Document not to edit this file to customize a game.

18 years ago(show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
Markus Armbruster [Thu, 23 Feb 2006 07:32:41 +0000 (07:32 +0000)]
(show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
Clients had four months to adapt.  Moreover, there have been other
changes that could well break clients, so backward compatibility is
gone anyway.

18 years agoDocument unused member.
Markus Armbruster [Thu, 23 Feb 2006 07:23:52 +0000 (07:23 +0000)]
Document unused member.

18 years agoMinor clarifications. Document play's use of C_EXIT for errors.
Markus Armbruster [Thu, 23 Feb 2006 07:21:22 +0000 (07:21 +0000)]
Minor clarifications.  Document play's use of C_EXIT for errors.

18 years ago(banfil, authfil): Remove. Matching user is useless, because the
Markus Armbruster [Wed, 22 Feb 2006 22:12:18 +0000 (22:12 +0000)]
(banfil, authfil): Remove.  Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.

18 years agoDoc improvement.
Markus Armbruster [Wed, 22 Feb 2006 21:12:20 +0000 (21:12 +0000)]
Doc improvement.

18 years ago(may_play): Clarify deity login rejection message.
Markus Armbruster [Wed, 22 Feb 2006 21:08:09 +0000 (21:08 +0000)]
(may_play): Clarify deity login rejection message.

18 years ago(banfil, authfil): Remove. Matching user is useless, because the
Markus Armbruster [Wed, 22 Feb 2006 20:57:51 +0000 (20:57 +0000)]
(banfil, authfil): Remove.  Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.

18 years ago(may_play): New, factored out of play_cmd() and kill_cmd().
Markus Armbruster [Wed, 22 Feb 2006 19:50:01 +0000 (19:50 +0000)]
(may_play): New, factored out of play_cmd() and kill_cmd().
(play_cmd, kill_cmd): Use it.
(player_main): Don't check authfil, caller takes care of that.

18 years ago(player): Rename member validated to authenticated.
Markus Armbruster [Wed, 22 Feb 2006 19:20:41 +0000 (19:20 +0000)]
(player): Rename member validated to authenticated.

18 years ago(set_dirs) [_WIN32]: Add the ability to deal with Windows
Ron Koenderink [Tue, 21 Feb 2006 20:15:55 +0000 (20:15 +0000)]
(set_dirs) [_WIN32]: Add the ability to deal with Windows
file and directory names.

18 years ago(ichrstr): Rename member i_vtype to i_uid.
Markus Armbruster [Mon, 20 Feb 2006 05:35:58 +0000 (05:35 +0000)]
(ichrstr): Rename member i_vtype to i_uid.
(ichr_ca): Rename selector vtype to uid.

18 years agoMake Emacs use c-mode.
Markus Armbruster [Mon, 20 Feb 2006 05:24:44 +0000 (05:24 +0000)]
Make Emacs use c-mode.

18 years ago(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Ron Koenderink [Sun, 19 Feb 2006 21:05:55 +0000 (21:05 +0000)]
(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Add size to array declarations to compile in WIN32.

18 years agoFit for the general public, not just for GUINEA_PIGS. Closes #928396.
Markus Armbruster [Sun, 19 Feb 2006 18:47:50 +0000 (18:47 +0000)]
Fit for the general public, not just for GUINEA_PIGS.  Closes #928396.

18 years ago(set_dirs): New, factored out of emp_config(). Also fix for relative
Markus Armbruster [Sun, 19 Feb 2006 18:36:36 +0000 (18:36 +0000)]
(set_dirs): New, factored out of emp_config().  Also fix for relative
file name argument.

18 years ago(main): Fix for relative builtindir (pathological...).
Markus Armbruster [Sun, 19 Feb 2006 18:33:49 +0000 (18:33 +0000)]
(main): Fix for relative builtindir (pathological...).

18 years agoDocument interpretation of relative file names.
Markus Armbruster [Sun, 19 Feb 2006 18:33:02 +0000 (18:33 +0000)]
Document interpretation of relative file names.

18 years ago(lndchr): Document that members l_gun and l_shell are unused.
Markus Armbruster [Sun, 19 Feb 2006 18:30:13 +0000 (18:30 +0000)]
(lndchr): Document that members l_gun and l_shell are unused.
(lchr_ca): Remove selectors g_build and s_build.  Update land.config.

18 years ago(uninstall): Implement.
Markus Armbruster [Sun, 19 Feb 2006 17:19:16 +0000 (17:19 +0000)]
(uninstall): Implement.

18 years ago(verify_fail): New.
Markus Armbruster [Sun, 19 Feb 2006 17:08:35 +0000 (17:08 +0000)]
(verify_fail): New.
(verify_row): Use it.

18 years ago(ef_init): Remove superflous size initialization for tables that are
Markus Armbruster [Sun, 19 Feb 2006 17:07:04 +0000 (17:07 +0000)]
(ef_init): Remove superflous size initialization for tables that are
initialized from builtin config files.
(ef_init_chr): Unused, remove.

18 years ago(xuheader): Fix misleading diagnostics.
Markus Armbruster [Sun, 19 Feb 2006 17:03:33 +0000 (17:03 +0000)]
(xuheader): Fix misleading diagnostics.

(xundump1): Fix table shrinking.

18 years agoFix the previous revision.
Markus Armbruster [Sun, 19 Feb 2006 15:42:48 +0000 (15:42 +0000)]
Fix the previous revision.

18 years agoSplit excessively wide tables. No functional change.
Markus Armbruster [Sun, 19 Feb 2006 15:41:37 +0000 (15:41 +0000)]
Split excessively wide tables.  No functional change.

18 years agoPermit field repetition in each part of vertically split tables,
Markus Armbruster [Sun, 19 Feb 2006 15:25:35 +0000 (15:25 +0000)]
Permit field repetition in each part of vertically split tables,
provided the values all match:
(caseen): New.
(xundump): Initialize and finalize it.
(xundump2): Update it.
(deffld): Deal with repetition.
(fldval_must_match): New, considers repetition as well as NSC_CONST.
(setnum, setstr): Use it.

18 years ago(need_uid, is_partial): Rename.
Markus Armbruster [Sun, 19 Feb 2006 15:15:40 +0000 (15:15 +0000)]
(need_uid, is_partial): Rename.

(xuheader1, chkflds): Collect all code dealing with index field of
vertically split tables in chkflds().

18 years ago(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
Markus Armbruster [Sun, 19 Feb 2006 09:47:26 +0000 (09:47 +0000)]
(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
l_type, n_type.
(mchr_ca, plchr_ca, lchr_ca, nchr_ca): New selector type.  Update
builtin config files.

18 years agoFix the previous revision.
Markus Armbruster [Sun, 19 Feb 2006 09:21:21 +0000 (09:21 +0000)]
Fix the previous revision.

18 years ago(mchr, plchr, lchr, nchr): Move initializer to new builtin config
Markus Armbruster [Sun, 19 Feb 2006 09:15:46 +0000 (09:15 +0000)]
(mchr, plchr, lchr, nchr): Move initializer to new builtin config
files ship.config, plane.config, land.config, nuke.config.
(empfile): Declare the new config files.
(install, installdirs): Install them.
(builtins): New make variable.

18 years ago(lndchr): Rename member l_mxland to l_nland for consistency with
Markus Armbruster [Sun, 19 Feb 2006 07:32:03 +0000 (07:32 +0000)]
(lndchr): Rename member l_mxland to l_nland for consistency with
similar unit characteristics.

18 years ago(builtindir): New econfig key, variable and make variable.
Markus Armbruster [Sun, 19 Feb 2006 07:04:30 +0000 (07:04 +0000)]
(builtindir): New econfig key, variable and make variable.
(subst.in): Substitute it.  Fix prerequisites.
(read_builtin_tables): New.
(main): Call it.  This doesn't do anything, because no builtin tables
have been defined.

18 years ago(emp_config): Non-portable strndup() crept into rev. 1.33. Replace by
Markus Armbruster [Sat, 18 Feb 2006 16:48:23 +0000 (16:48 +0000)]
(emp_config): Non-portable strndup() crept into rev. 1.33.  Replace by
portable code.

18 years ago(print_config): When km_comment starts with '#', don't prepend "\n#".
Markus Armbruster [Sat, 18 Feb 2006 16:12:50 +0000 (16:12 +0000)]
(print_config): When km_comment starts with '#', don't prepend "\n#".

18 years ago(empfile, SYMTAB): Reorder so that symbol tables are together. Sort
Markus Armbruster [Sat, 18 Feb 2006 15:02:18 +0000 (15:02 +0000)]
(empfile, SYMTAB): Reorder so that symbol tables are together.  Sort
them alphabetically.  Factor out commonalities into new SYMTAB().  No
functional changes.

18 years agoCollect all symbol tables in new symbol.c. No functional changes.
Markus Armbruster [Sat, 18 Feb 2006 14:55:29 +0000 (14:55 +0000)]
Collect all symbol tables in new symbol.c.  No functional changes.

18 years agoNew way to read configuration tables:
Markus Armbruster [Sat, 18 Feb 2006 13:57:52 +0000 (13:57 +0000)]
New way to read configuration tables:
(config_tables): New econfig key.
(read_config_tables): New, implements config_tables.
(main): Call it.  Need to call ef_init() and chdir(configdir) first.
(ef_init_srv): Don't call ef_init(), since main() did it already.

Remove old way to do the same:
(ef_load): Remove, along with calls.
(empfile): Set configuration tables' member file back to NULL.

18 years ago(configdir): New, to be used for loading configuration tables.
Markus Armbruster [Sat, 18 Feb 2006 12:43:17 +0000 (12:43 +0000)]
(configdir): New, to be used for loading configuration tables.
(emp_config): Set it to econfig's directory.

18 years ago(main): Don't use access() before mkdir() to check whether the
Markus Armbruster [Sat, 18 Feb 2006 09:29:49 +0000 (09:29 +0000)]
(main): Don't use access() before mkdir() to check whether the
directory to be created exists, just check errno afterwards.

[_WIN32] (F_OK, W_OK, R_OK): Unused, remove.

18 years ago(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
Markus Armbruster [Sat, 18 Feb 2006 09:16:50 +0000 (09:16 +0000)]
(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
output variable datadir and with configuration data.

18 years agoChange xdump nat to show only own country, and xdump cou to show to
Markus Armbruster [Fri, 17 Feb 2006 18:38:50 +0000 (18:38 +0000)]
Change xdump nat to show only own country, and xdump cou to show to
deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.

18 years ago(lost_ca, trade_ca): Provide proper ca_table for selector type.
Markus Armbruster [Fri, 17 Feb 2006 18:04:07 +0000 (18:04 +0000)]
(lost_ca, trade_ca): Provide proper ca_table for selector type.

18 years ago(xdvisible): Fix case EF_NATION for deities not to return true for
Markus Armbruster [Thu, 16 Feb 2006 21:49:27 +0000 (21:49 +0000)]
(xdvisible): Fix case EF_NATION for deities not to return true for
STAT_UNUSED.

18 years ago(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.
Markus Armbruster [Thu, 16 Feb 2006 19:54:47 +0000 (19:54 +0000)]
(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.

(vers): Fix rev. 1.25 for fallout_spread.  Beautify message.

(vers): Align collateral damage heading with the columns in the body.

18 years ago(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
Ron Koenderink [Thu, 16 Feb 2006 02:14:08 +0000 (02:14 +0000)]
(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
(show_nuke_capab, vers, xdvisible, build.t, Options.t):
Remove opt_DRNUKE and replace with the following check
drnuke_const > MIN_DRNUKE_CONST.
Set MIN_DRNUKE_CONST to 0.001 to prevent issues with tiny values.
Change the default drnuke_const to 0.0 because in the stock game
opt_DRNUKE was disabled.

18 years ago(buil): Fix rev. 1.32: information on how to list nukes was incorrect
Markus Armbruster [Wed, 15 Feb 2006 19:47:56 +0000 (19:47 +0000)]
(buil): Fix rev. 1.32: information on how to list nukes was incorrect
for opt_DRNUKE.

18 years ago(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
Markus Armbruster [Wed, 15 Feb 2006 07:35:32 +0000 (07:35 +0000)]
(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
effect here.  Was mindlessly copied from old info/Makefile.

18 years ago(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
Markus Armbruster [Tue, 14 Feb 2006 19:54:08 +0000 (19:54 +0000)]
(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
which broke NSC_STRINGY.

18 years ago(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
Markus Armbruster [Tue, 14 Feb 2006 18:04:44 +0000 (18:04 +0000)]
(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
require index field in all parts of a split table.

18 years agoSupport vertically split configuration tables (human-readable only):
Markus Armbruster [Tue, 14 Feb 2006 07:30:06 +0000 (07:30 +0000)]
Support vertically split configuration tables (human-readable only):
(ellipsis): New.
(xuheader1): Initialize it.  Compute nflds.  Allow repetition of index
field in continued tables.
(xundump): Don't set nflds.
(xufldname, defellipsis): Accept ... and call new defellipsis().
(xufldname, chkflds): Update and elaborate check for missing fields,
move it to new chkflds().  Require repetition of index field in
continued tables.
(xundump2): New, factored out of xundump().  Parse continued tables.

18 years agoXdumps don't contain records not in use, cope with that:
Markus Armbruster [Mon, 13 Feb 2006 21:22:05 +0000 (21:22 +0000)]
Xdumps don't contain records not in use, cope with that:
(xundump1, setnum, setstr, getobj, cur_id): Delay table lookup until
first field is about to be assigned.
(xundump1): Record largest ID, because it's no longer given by final
value of row.

(xuheader1, xundump1, xundump): Move initialization of cur_type to
xundump().

18 years ago(xundump1): Don't suppress table growth just because it has NSC_CONST
Markus Armbruster [Mon, 13 Feb 2006 21:16:41 +0000 (21:16 +0000)]
(xundump1): Don't suppress table growth just because it has NSC_CONST
selectors.  That's wrong for EF_SECTOR_CHR and EF_PRODUCT.  Don't
allow table shrinking just because it has no NSC_CONST selectors.
That's wrong for EF_NEWS_CHR.  Allow it for game state and unit
characteristics.
(has_const): Unused, remove.

18 years ago(sect_ca): Make selectors xloc, yloc NSC_CONST.
Markus Armbruster [Mon, 13 Feb 2006 20:48:00 +0000 (20:48 +0000)]
(sect_ca): Make selectors xloc, yloc NSC_CONST.

(realm_ca): Make selectors cnum, realm NSC_CONST.

18 years ago(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.
Markus Armbruster [Mon, 13 Feb 2006 20:44:18 +0000 (20:44 +0000)]
(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.

18 years ago(xuheader, xundump): Return -2 for empty input, so it can be
Markus Armbruster [Mon, 13 Feb 2006 19:07:31 +0000 (19:07 +0000)]
(xuheader, xundump): Return -2 for empty input, so it can be
distinguished from bad input.

18 years ago(setstr): Fix for NSC_STRINGY without terminating zero.
Markus Armbruster [Mon, 13 Feb 2006 07:06:47 +0000 (07:06 +0000)]
(setstr): Fix for NSC_STRINGY without terminating zero.

18 years agoDoc fix.
Markus Armbruster [Sun, 12 Feb 2006 23:01:47 +0000 (23:01 +0000)]
Doc fix.

18 years agoPolish messages.
Markus Armbruster [Sun, 12 Feb 2006 23:00:06 +0000 (23:00 +0000)]
Polish messages.

18 years ago(sect_ca[]): Remove NSC_EXTRA for sct_coastal
Ron Koenderink [Sun, 12 Feb 2006 20:40:18 +0000 (20:40 +0000)]
(sect_ca[]): Remove NSC_EXTRA for sct_coastal
so the field is dumped.

18 years ago(perform_mission): Disqualify land units from performing
Ron Koenderink [Sun, 12 Feb 2006 20:37:27 +0000 (20:37 +0000)]
(perform_mission): Disqualify land units from performing
missions when they are on ship or a train.

18 years ago(xuheader1): New, factored out of xundump().
Markus Armbruster [Sun, 12 Feb 2006 15:52:10 +0000 (15:52 +0000)]
(xuheader1): New, factored out of xundump().

18 years agoChange dchrstr member d_mnem to char.
Markus Armbruster [Sun, 12 Feb 2006 13:56:12 +0000 (13:56 +0000)]
Change dchrstr member d_mnem to char.

18 years agoChange ichrstr member i_mnen to char.
Markus Armbruster [Sat, 11 Feb 2006 07:41:34 +0000 (07:41 +0000)]
Change ichrstr member i_mnen to char.

18 years ago(xdeval): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
Markus Armbruster [Sat, 11 Feb 2006 07:25:28 +0000 (07:25 +0000)]
(xdeval): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
which broke NSC_STRINGY.  Initialize from new parameter len.  Callers
changed.

18 years agoNew.
Markus Armbruster [Fri, 10 Feb 2006 19:30:19 +0000 (19:30 +0000)]
New.

18 years ago(cou_ca, symbol_ca, mdchr_ca): Make all selectors NSC_CONST.
Markus Armbruster [Fri, 10 Feb 2006 19:12:10 +0000 (19:12 +0000)]
(cou_ca, symbol_ca, mdchr_ca): Make all selectors NSC_CONST.

(empfile_ca): Make selector name NSC_CONST.

18 years ago(cou_ca): Fix ca_type for selector stat.
Markus Armbruster [Fri, 10 Feb 2006 19:00:38 +0000 (19:00 +0000)]
(cou_ca): Fix ca_type for selector stat.

18 years ago(options_cmd): Sent two prompts when listing options.
Markus Armbruster [Fri, 10 Feb 2006 18:28:55 +0000 (18:28 +0000)]
(options_cmd): Sent two prompts when listing options.

18 years agoDoc update.
Markus Armbruster [Thu, 9 Feb 2006 19:48:21 +0000 (19:48 +0000)]
Doc update.

18 years ago(xundump): Rev. 1.44 broke ef_load(). Fix.
Markus Armbruster [Thu, 9 Feb 2006 18:34:57 +0000 (18:34 +0000)]
(xundump): Rev. 1.44 broke ef_load().  Fix.

18 years ago(lchr_ca[]): Change the name for l_rnd from "rad" to "rmax".
Ron Koenderink [Thu, 9 Feb 2006 13:31:05 +0000 (13:31 +0000)]
(lchr_ca[]): Change the name for l_rnd from "rad" to "rmax".
This removes a conflict between rad items and reaction radius.
Now the name matches the equivalent name in land_ca[].

18 years ago(xundump, xundump1): Fix treatment of empty lines.
Markus Armbruster [Thu, 9 Feb 2006 07:10:18 +0000 (07:10 +0000)]
(xundump, xundump1): Fix treatment of empty lines.

18 years ago(mtsymset, xutrailer, xundump1): Remove unused variables.
Ron Koenderink [Thu, 9 Feb 2006 00:28:28 +0000 (00:28 +0000)]
(mtsymset, xutrailer, xundump1): Remove unused variables.

18 years agoAccept fields out of order in human-readable syntax (indexes must
Markus Armbruster [Wed, 8 Feb 2006 23:23:48 +0000 (23:23 +0000)]
Accept fields out of order in human-readable syntax (indexes must
still be in order), support abbreviated field names:
(nxt_sel, nxt_idx, nxtfld, ca4fld): Remove.
(nflds, fldca, fldidx, caflds, getfld): New.
(xundump): Initialize and finalize them.
(xundump1): New, factored out of xundump().
(deffld): Match names, record field order in fldca[], fldidx[] for
getfld().  Use caflds[] to detect duplicates.
(xufldname): Catch negative index.  Used to pass it to deffld(), which
now interprets it as no index.
(setnum, setstr, setsym, mtsymset, add2symset): Use getfld().

(xufld): Improve error message.

(setstr): Fix for NULL strings.

(xuheader): Catch null ef_cadef().

(xuheader): Don't oops when an unexpected table can't be undumped.

18 years agoImprove error messages.
Markus Armbruster [Wed, 8 Feb 2006 22:44:22 +0000 (22:44 +0000)]
Improve error messages.

18 years agoThe separation between parsing and semantic actions is awkward and
Markus Armbruster [Wed, 8 Feb 2006 22:32:53 +0000 (22:32 +0000)]
The separation between parsing and semantic actions is awkward and
leaks memory; rework it:
(deffld): New; semantic action for field headers.
(xufldname): Use it instead of storing a value for xucolumnheader().
(xucolumnheader): Remove, use xuflds() directly instead.
(setnum, setstr, setsym): New; semantic actions for field values.
(xufld): Use it instead of storing a value for xuloadrow().
(xuloadrow): Remove.  Was incomplete.
(xufldname, xufld, xuflds): Remove parameter values.  Callers
changed.
(cur_type, cur_obj, nxt_sel, nxt_idx, nxtfld, ca4fld, getsymtab): New
helpers.
(xundump): Initialize them.
(enum_value, value, freeflds, xunsymbol): Remove.

(mtsymset, add2symset): New.
(xufld): Use them to build a symbol set along the parse.

(xufldname, xufld, xuheader, xutrailer, xundump): Increment lineno
when and only when a linefeed is consumed, to make sure it is correct.
Move some semantic checks so that errors get reported for the correct
line.

(xundump): Use compare filenames as pointers, not strings, when
checking whether to reset lineno.

(xundump): Keep empfile[type] consistent during parse, to make
ef_ptr() usable.

(xundump): Don't call ep->init() on sentinels.
(xuinitrow): Unused, remove.

18 years ago(xundump): Precise value for need_sentinel.
Markus Armbruster [Wed, 8 Feb 2006 22:02:13 +0000 (22:02 +0000)]
(xundump): Precise value for need_sentinel.

18 years ago(xutrailer): Fix parsing of /config. Change human-readable syntax not
Markus Armbruster [Wed, 8 Feb 2006 21:53:04 +0000 (21:53 +0000)]
(xutrailer): Fix parsing of /config.  Change human-readable syntax not
to accept number of records.  Don't skip empty lines after trailer.

18 years ago(xuheader): Check for unexpected table before oopsing on !EFF_MEM.
Markus Armbruster [Wed, 8 Feb 2006 21:41:48 +0000 (21:41 +0000)]
(xuheader): Check for unexpected table before oopsing on !EFF_MEM.

18 years ago(xufldname, xufld): New, factored out of xuflds and specialized for
Markus Armbruster [Wed, 8 Feb 2006 20:56:39 +0000 (20:56 +0000)]
(xufldname, xufld): New, factored out of xuflds and specialized for
headers and for body lines, respectively.
(xflds): Call them through new parameter parse.  Callers changed.

18 years ago(xucolumnheader): Don't gripe when xuflds() fails, because that one
Markus Armbruster [Wed, 8 Feb 2006 20:49:47 +0000 (20:49 +0000)]
(xucolumnheader): Don't gripe when xuflds() fails, because that one
already griped.

18 years ago(MIN, MAX): Fix insufficiently parenthesized macro expansion.
Markus Armbruster [Mon, 6 Feb 2006 21:56:38 +0000 (21:56 +0000)]
(MIN, MAX): Fix insufficiently parenthesized macro expansion.

18 years ago(nation_status): Lacked sentinel.
Markus Armbruster [Mon, 6 Feb 2006 20:12:42 +0000 (20:12 +0000)]
(nation_status): Lacked sentinel.

18 years ago(verify_row): Check all values against symbol tables, not just
Markus Armbruster [Mon, 6 Feb 2006 07:57:04 +0000 (07:57 +0000)]
(verify_row): Check all values against symbol tables, not just
non-negative ones.

(verify_row): Fix off by one in non-symbol table index check.

18 years ago(verify_row): Check table references regardless of target table. Also
Markus Armbruster [Mon, 6 Feb 2006 07:53:42 +0000 (07:53 +0000)]
(verify_row): Check table references regardless of target table.  Also
fixes the previous revision.

18 years ago(level): Add value -1.
Markus Armbruster [Mon, 6 Feb 2006 07:41:55 +0000 (07:41 +0000)]
(level): Add value -1.

18 years ago(meta_type): Fix NSC_TYPE entry to match specification.
Markus Armbruster [Sun, 5 Feb 2006 20:20:46 +0000 (20:20 +0000)]
(meta_type): Fix NSC_TYPE entry to match specification.

18 years ago(verify_row): Check uid.
Markus Armbruster [Sun, 5 Feb 2006 19:59:08 +0000 (19:59 +0000)]
(verify_row): Check uid.

18 years ago(verify_row): NSC_BITS implies symbol_ca. Oops if violated.
Markus Armbruster [Sun, 5 Feb 2006 19:57:10 +0000 (19:57 +0000)]
(verify_row): NSC_BITS implies symbol_ca.  Oops if violated.

18 years ago(verify_row): Simplify control structure. No functional change.
Markus Armbruster [Sun, 5 Feb 2006 19:55:05 +0000 (19:55 +0000)]
(verify_row): Simplify control structure.  No functional change.

18 years agoDocument uid selector convention.
Markus Armbruster [Sun, 5 Feb 2006 19:30:20 +0000 (19:30 +0000)]
Document uid selector convention.

18 years ago(zdon): Display current number of missed updates and number of
Ron Koenderink [Sun, 5 Feb 2006 19:19:00 +0000 (19:19 +0000)]
(zdon): Display current number of missed updates and number of
missed updates before vetoing begins.

18 years ago(verify_row): Fix for flags that don't fit into int.
Markus Armbruster [Sun, 5 Feb 2006 19:16:37 +0000 (19:16 +0000)]
(verify_row): Fix for flags that don't fit into int.

18 years ago(verify_row): if/else with negated condition is confusing. Negate
Markus Armbruster [Sun, 5 Feb 2006 19:13:58 +0000 (19:13 +0000)]
(verify_row): if/else with negated condition is confusing.  Negate
condition, swap conditional statements.