From 19215160f4fd1bba35c53628a40bde0220a35ba1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 24 Apr 2011 08:30:31 +0200 Subject: [PATCH] Refer to table names instead of C identifiers in .config The C identifier permits looking up the table in the source. The table name permits lookup with xdump. Coders should know how to go from table name to C identifier. Deities aren't all coders; we shouldn't ask them to guess table names from C identifiers. --- src/lib/global/item.config | 5 +++-- src/lib/global/land.config | 6 +++--- src/lib/global/nuke.config | 6 +++--- src/lib/global/plane.config | 6 +++--- src/lib/global/product.config | 6 +++--- src/lib/global/sect.config | 6 +++--- src/lib/global/ship.config | 6 +++--- 7 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/lib/global/item.config b/src/lib/global/item.config index 6e013dd6c..67f6531b0 100644 --- a/src/lib/global/item.config +++ b/src/lib/global/item.config @@ -27,12 +27,13 @@ # item.config: Item characteristics # # Known contributors to this file: -# Markus Armbruster, 2006 +# Markus Armbruster, 2006-2011 # # Derived from item.c; no known contributors. # -# Columns pkg are indexed by packing types in packing[]. +# Columns pkg are indexed by packing types in compiled-in table +# packing. # Do not edit this file to customize a game! Create your own custom # configuration file(s), best next to your econfig, and name them in diff --git a/src/lib/global/land.config b/src/lib/global/land.config index f1b524df5..1e56ad3fd 100644 --- a/src/lib/global/land.config +++ b/src/lib/global/land.config @@ -27,7 +27,7 @@ # land.config: Land unit characteristics # # Known contributors to this file: -# Markus Armbruster, 2006-2008 +# Markus Armbruster, 2006-2011 # # Derived from land.c; known contributors: # Thomas Ruschak, 1992 @@ -35,8 +35,8 @@ # Steve McClure, 1998-2000 # -# Available flags are in land_chr_flags[]. info Unit-types should -# document them all. +# Available flags are in compiled-in table land-chr-flags. info +# Unit-types should document them all. # Do not edit this file to customize a game! Create your own custom # configuration file(s), best next to your econfig, and name them in diff --git a/src/lib/global/nuke.config b/src/lib/global/nuke.config index 0b8b11ef2..80ccd597b 100644 --- a/src/lib/global/nuke.config +++ b/src/lib/global/nuke.config @@ -27,13 +27,13 @@ # nuke.c: Nuke characteristics # # Known contributors to this file: -# Markus Armbruster, 2006 +# Markus Armbruster, 2006-2011 # # Derived from nuke.c. # -# Available flags are in nuke_chr_flags[]. info Nuke-types should -# document them all. +# Available flags are in compiled-in table nuke-chr-flags. info +# Nuke-types should document them all. # Do not edit this file to customize a game! Create your own custom # configuration file(s), best next to your econfig, and name them in diff --git a/src/lib/global/plane.config b/src/lib/global/plane.config index 08eb7cc38..561b9d312 100644 --- a/src/lib/global/plane.config +++ b/src/lib/global/plane.config @@ -27,7 +27,7 @@ # plane.config: Plane characteristics # # Known contributors to this file: -# Markus Armbruster, 2006-2009 +# Markus Armbruster, 2006-2011 # # Derived from plane.c; known contributors: # Dave Pare, 1986 @@ -37,8 +37,8 @@ # Steve McClure, 1998 # -# Available flags are in plane_chr_flags[]. info Plane-types should -# document them all. +# Available flags are in compiled-in table plane-chr-flags. info +# Plane-types should document them all. # # Note if a flag missile is set, then flag VTOL will automatically be # set by init_plchr(). diff --git a/src/lib/global/product.config b/src/lib/global/product.config index 0d4a01b83..d650ebbad 100644 --- a/src/lib/global/product.config +++ b/src/lib/global/product.config @@ -27,14 +27,14 @@ # product.config: Product characteristics # # Known contributors to this file: -# Markus Armbruster, 2006 +# Markus Armbruster, 2006-2011 # # Derived from product.c; no known contributors # # Available item types (columns ct and type) are in item.config. -# Levels (columns lev and nlndx) are in level[]. Resources (column -# nrndx) are in resources[]. +# Levels (columns lev and nlndx) are in compiled-in table level. +# Resources (column nrndx) are in compiled-in table resources. # A product is either an item (value other than -1 in column type) or # a level (value other than none in column lev). diff --git a/src/lib/global/sect.config b/src/lib/global/sect.config index 0fab8b90d..2340de9a9 100644 --- a/src/lib/global/sect.config +++ b/src/lib/global/sect.config @@ -27,7 +27,7 @@ # sect.config: Sector characteristics # # Known contributors to this file: -# Markus Armbruster, 2006-2009 +# Markus Armbruster, 2006-2011 # # Derived from sect.c; known contributors: # Dave Pare, 1986 @@ -42,8 +42,8 @@ # types, and must have themselves as terrain. # Available products (column prd) are in product.config. Navigation -# types (column nav) are in sector_navigation[]. Packing types -# (column pkg) are in packing[]. +# types (column nav) are in compiled-in table sector-navigation. +# Packing types (column pkg) are in compiled-in table packing. # Players can only designate sectors with a non-negative value in # column cost, and only to something with the same terrain. All diff --git a/src/lib/global/ship.config b/src/lib/global/ship.config index c80aa3f04..997af0740 100644 --- a/src/lib/global/ship.config +++ b/src/lib/global/ship.config @@ -27,7 +27,7 @@ # ship.config: Ship characteristics # # Known contributors to this file: -# Markus Armbruster, 2006-2008 +# Markus Armbruster, 2006-2011 # # Derived from ship.c; known contributors: # Dave Pare, 1986 @@ -37,8 +37,8 @@ # Steve McClure, 1998 # -# Available flags are in ship_chr_flags[]. info Ship-types should -# document them all. +# Available flags are in compiled-in table ship-chr-flags. info +# Ship-types should document them all. # # Note that if nplanes > 0 and flag plane is not set, then flag miss # will automatically be set. -- 2.43.0