Ron Koenderink
16d0f5d133
(natstate): Add STAT_SANCT case so the nation report properly
...
shows SANCTUARY instead of VISITOR for countries in sanctuary.
2005-12-20 01:49:55 +00:00
Ron Koenderink
f3303bce1e
(capi): Do not check capital location if the country
...
is has NF_SACKED set.
2005-12-19 01:52:13 +00:00
Ron Koenderink
e3459cba5d
(caploss): Remove the moving of a sacked capital.
...
This corrects the incorrect display of the old capital in the nation output.
(caploss): Remove unnecessary include files.
2005-12-18 19:54:44 +00:00
Ron Koenderink
7944db242c
(nati): Fix the grammer for No capital output.
2005-12-18 15:43:56 +00:00
Ron Koenderink
9217e75761
(shp_nav_one_sector, mchr[], ship_chr_flags[], Ship-types, Sector-types):
...
Add M_CANAL flag to indicate which ships can navigate a canal
in a big city. Remove the hard code values for canal from
shp_nav_one_sector() for which ships can navigate a canal.
Set M_CANAL flag in ship_chr_flags[] to match the hard
coding in shp_nav_one_sector().
Update Ship-types.t with new canal flag.
Update Sector-types.t to indicate that cities have canals.
2005-12-18 15:16:52 +00:00
Ron Koenderink
6157409f20
(influx): Remove carriage return.
2005-12-18 03:53:52 +00:00
Ron Koenderink
c2ee177256
(zdon): Do not allow a country that is in-flux to request an update.
...
Closes #1025597 .
2005-12-17 20:27:08 +00:00
Ron Koenderink
5ffef496ea
(coun_list, repo_list, nati): Replace in-flux determination code with influx().
...
(influx): New.
2005-12-17 20:18:54 +00:00
Ron Koenderink
d1e2d91961
(repo_list): Remove unreachable state (STAT_NORM | STAT_SANCT).
2005-12-17 19:55:52 +00:00
3dc35a77f7
(xundump): Eat whitespace after table, so that caller can check for
...
trailing junk more easily. This fixes that check in ef_load().
2005-12-17 15:09:43 +00:00
Ron Koenderink
4799984997
(gen_power): Do not include land units with spy capability in the
...
land unit count. Closes #910398 .
2005-12-17 12:41:39 +00:00
965bf6dbe4
(xundump): Fix table row counting, broken by rev. 1.23.
2005-12-17 08:25:57 +00:00
fdea1beb34
(lwpNewContext): Fix the previous revision.
2005-12-12 07:34:52 +00:00
d343fee727
Remove superflous include.
2005-12-11 10:09:09 +00:00
72f4cef34f
(lwpNewContext) [MAKECONTEXT_SP_HIGH]: Work around makecontext()
...
lossage.
(IRIX5CFLAGS, SOLCFLAGS): Define MAKECONTEXT_SP_HIGH. This is wrong
for Solaris 10.
2005-12-11 08:18:15 +00:00
588329ab35
(lwpCreate): Check for lwpNewContext() success.
2005-12-10 20:42:42 +00:00
e841fc0826
(lwpNewContext) [UCONTEXT]: Fix the previous revision.
2005-12-10 20:41:44 +00:00
9e3db08fda
Redesign interface to machine-dependent code to cleanse lwp.c of
...
machine-dependencies:
(lwpNewContext): New, factored out of lwpCreate().
(lwpSwitchContext): New, factored out of lwpReschedule().
(LWP_EXTRASTACK, STKALIGN, lwpInitContext, lwpSave, lwpRestore): Move
to arch.c. Remove for UCONTEXT, else static linkage unless macro or
AIX32.
(lwpReschedule): Skip lwpStatus() when not actually switching.
(LwpStackGrowsDown): New.
(lwpInitSystem): Initialize it.
(lwpStackCheck, lwpStackCheckUsed): Use it.
2005-12-10 19:28:24 +00:00
2218a7a9a1
(lwpProc): Members lowmark and himark are confusing, replace by
...
ustack, usize.
(lwpCreate): Initialize them.
(lwpStackCheckInit, lwpStackCheck, lwpStackCheckUsed): Rewrite using
them. lwpStackCheckUsed() was off by LWP_REDZONE when stack grows
down.
(lwpDestroy): Don't bother to clear memory to be freed.
2005-12-10 17:26:22 +00:00
bd7b1f480a
Clean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).
2005-12-10 16:55:38 +00:00
ef79cd67ef
(lwpInitContext) [UCONTEXT]: Failed to initialized uc_stack.ss_flags.
2005-12-10 15:03:11 +00:00
bb33660672
Clean up the move of lwpProc (lwpint.h rev. 1.11, lwp.h rev. 1.8).
2005-12-10 15:00:35 +00:00
a540be8fe3
(empth_start, empth_init, empth_alarm) [_EMPTH_POSIX]: We do raise
...
SIGALRM! Revert rev. 1.21.
(empth_alarm): Internal linkage.
2005-12-09 20:52:30 +00:00
16fe285ec7
(lwpCreate) [UCONTEXT]: ss_sp is the (base) address of the stack area,
...
not the initial stack pointer. Fix. ss_size was wrong as well.
Amazing that this ever worked.
2005-12-07 20:39:55 +00:00
bc270377d5
[UCONTEXT] (lwpInitContext): Failed to initialize context.uc_link as
...
required by the API.
2005-12-07 20:32:25 +00:00
28e116dac4
(lwpCreate): Check STKALIGN is sane.
...
(lwpCreate): Used to allocate one byte more than necessary. The fix
won't save memory (malloc() will add the byte back), it's just clearer
this way.
(lwpCreate): Clean up computation of sp. Rename parameter size to
stacksz.
(lwpCreate): Always compute newp->lowmark and newp->highmark from sp,
not from s. Old code misaligned newp->himark for stacks growing
upward when stack size argument wasn't aligned.
2005-12-07 20:28:12 +00:00
3bc2c1ae08
(stkalign_t, STKALIGN): Replace.
2005-12-07 19:47:26 +00:00
aab54fcd54
(lwpProc, lwpSem): Declare as incomplete type in include/lwp.h. Move
...
complete declaration to src/lib/lwp/lwpint.h.
(lwpQueue): Move to src/lib/lwp/lwpint.h.
(empth_main, empth_flags): New.
(empth_init): Initialize them.
(empth_create, empth_exit): Use them instead of lwpProc members.
2005-12-07 19:15:37 +00:00
f958d3d683
(lwpReschedule): Fix the previous revision.
2005-12-06 00:12:34 +00:00
a76c6d3a4a
[BOUNDS_CHECK]: Defunct, remove.
...
(lwpReschedule): Fix potential crash bug that crept in with
BOUNDS_CHECK years ago.
2005-12-05 22:58:23 +00:00
d5774a938d
(lwpSleepFd): More information in debug output.
...
(lwpSelect): Fix use of uninitialized variable in debug output.
2005-12-05 22:38:58 +00:00
b60f7d7b42
Fix the previous revision.
2005-12-05 22:34:22 +00:00
80a72d1906
Clean up includes.
2005-12-05 22:31:45 +00:00
5a248c0d4e
Doc fix.
2005-12-05 22:28:52 +00:00
320322cda9
(oops): Move declaration to misc.h, to make CANT_HAPPEN() usable
...
with just misc.h included.
2005-12-05 22:13:35 +00:00
3a18d0b986
(lwpSave, lwpReschedule) [hpc]: Move machine-dependent code to arch.c,
...
where it belongs. Code looks fishy. Untested.
(initcontext, startpoint): Internal linkage.
2005-12-05 21:38:03 +00:00
955fab9d86
Remove LWP code for targets we no longer support: VAX/MIPS Ultrix
...
(dropped in Make.sysdefs rev. 1.12), 386 USL/Unixware (unclear, long
ago), 386BSD (never been?)
2005-12-05 21:07:24 +00:00
081e60d86e
Clean up the incomprehensible #ifdef jungle a bit. Didn't compile if
...
both UCONTEXT and one of the other recognized preprocessor symbols was
defined; fix to prefer UCONTEXT.
2005-12-05 20:30:29 +00:00
5d79a0cf6e
(lwpCreate): Clean up the incomprehensible #ifdef jungle. No
...
functional changes.
2005-12-05 19:16:59 +00:00
e29f288289
Remove silly superflous parenthesis.
2005-12-03 21:14:26 +00:00
e59c4bcfd0
(peek): Old owner is not hidden, remove column.
2005-12-03 21:04:00 +00:00
8f7389e404
(peek, empmod): Remove obsolete command hidden.
2005-12-03 21:02:31 +00:00
38c55314f2
Doc fix.
2005-12-03 20:59:07 +00:00
2ebc947969
(xundump): Fix rev. 1.19.
2005-12-03 16:15:16 +00:00
86a59e4de4
(xuflds, xunsymbol, xuloadrow): Symbol sets.
...
(VAL_SYMBOL_SET, getid, xunsymbol1): New.
(xunsymbol): New argument n for more useful diagnostics.
(xuloadrow): Remove redundant semantic check.
2005-12-03 14:14:44 +00:00
739f346584
(xunsymbol): Fix design flaw: negative symbol values were interpreted
...
as failure.
2005-12-03 13:38:52 +00:00
b7eb39ebef
(xuflds): Allow unescaped space and tab in strings. Also fix the
...
previous revision, which broke '#' in strings.
2005-12-03 11:36:55 +00:00
1eb7d1795c
(xuloadrow): Fix crash.
2005-12-03 11:19:20 +00:00
0a7291eb37
Less rigid field separators, support comments:
...
(skipfs): New.
(xuflds, xundump): Use it. Update field scanf stop-sets accordingly.
(xuflds): Update test for good field separator.
(xundump): Fail silently if nothing can be read and no specific table
is expected.
2005-12-03 11:04:44 +00:00
8ca219819c
(xuloadrow): Obey NSC_EXTRA.
...
(xuloadrow): Remove redundant `not supported' check.
2005-12-03 10:15:57 +00:00