simonb
1d351ebc53
Remove a incorrect semicolon at the end of an if().
...
Magic levels now appear after extensive play testing!
2005-02-25 15:04:43 +00:00
jsm
58b3287ba1
Don't presume phantasia's internal bool (char) is the same as that in
...
curses.h: define phbool and use it where necessary to avoid declaring
functions with one bool and defining them with the other.
Reviewed by <hubertf>.
2005-02-15 12:58:21 +00:00
jsm
b91a81ab9f
Cast last argument of execl to (char *).
...
Reviewed by <hubertf>.
2005-02-15 12:56:20 +00:00
jsm
2773e864bb
Avoid arrays of incomplete types (required to build with GCC 4).
...
Reviewed by <hubertf>.
2005-02-15 12:54:50 +00:00
perry
1a3bb884dc
A preprocessor macro named "srand" was defined which seeded the random
...
number generator.
Unfortunately, it conflicted with a function of the same defined in
stdlib.h. This was masked by the __P hack, which is now being purged.
I've renamed "srand" to "seedrand" to eliminate the conflict.
2005-02-03 02:23:02 +00:00
jsm
a4dab13a3b
Correct typos in German fortune. Reported by Charles Senger, csenger at UCSD.
...
Reviewed by <hubertf>.
2005-01-30 13:49:28 +00:00
nathanw
df7bbbcb3c
Convert from libc/threadlib-style mutex protection to pthread style.
...
(XXX this game totally does not need a thread-safe malloc)
2004-12-14 00:21:01 +00:00
jmc
279847975e
Redo how void gets init'd.
...
setup now just creates an empty file. When main starts and loads it in,
it stats and if zero size init's a new location and saves it back out.
Now games.tgz can be shared among MACHINE_ARCH's
2004-12-09 05:15:59 +00:00
christos
42728e787e
Slimy worms are clean enough for level 3.
2004-11-13 10:22:13 +00:00
dsl
49f7d8a9b1
Add (unsigned char) cast to ctype functions
2004-11-05 21:30:31 +00:00
christos
82345479d5
Don't try to catch SIGSTOP...
2004-09-12 04:51:32 +00:00
wiz
f4d1c39625
Indent header description (from jmc@openbsd).
...
Sort sections and remove a trailing space.
2004-09-09 22:03:21 +00:00
wiz
8dab296315
Some improvements from jmc@openbsd:
...
sort option descriptions, add argument to -m, mention strfile
and add some xrefs.
2004-09-09 22:01:08 +00:00
jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
christos
111956c585
- sleep a little in autobot mode so that we can see what is happening.
...
- use refresh() instead of wrefresh()
2004-08-27 09:07:08 +00:00
christos
04c4e386f5
describe the algorithm better.
2004-08-27 09:06:25 +00:00
mjl
d2da97557b
Fix typo
2004-08-20 11:23:47 +00:00
wiz
2eabcd5e18
Grammar fix, from ray at raylai org via jmc@openbsd.
2004-06-01 10:10:06 +00:00
mjl
3cb55d86f4
Had fun with a spell checker.
...
Also, try to canonize attributions.
2004-05-22 14:33:50 +00:00
christos
fc21964e2e
- don't catch STOP, TSTP, QUIT; the first you cannot catch and the other two
...
you should not.
- don't accept delay == 1000, because it turns to 0 and fix the number parsing
- misc KNF cleanups.
2004-05-02 21:31:23 +00:00
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
he
9b1375ac78
Undef bool before including <curses.h>, since it tries to typedef
...
bool. Otherwise we get (at least on gcc 2.95.3) an empty declaration
warning from "typedef char char;" due to the #define of bool in
phantstruct.h.
2004-04-11 13:35:06 +00:00
ross
9209ce5ad8
Rework to use curses.h only on the target, not on the host.
2004-04-07 17:46:47 +00:00
jdc
f015cad4b7
If the current player has no cards, skip to the other player.
...
While we're here, make this compile with -DDEBUG.
Fixes PR bin/12530 from Thomas Klausner.
2004-04-06 19:15:07 +00:00
hubertf
6162c9b1a1
Properly handle -d 1000, OK'd by jsm
2004-03-29 20:30:03 +00:00
snj
e2462f3ddb
It's "its".
2004-03-29 07:59:39 +00:00
snj
a7b3f75db2
Spell "political" correctly and capitalize a last name.
2004-03-29 02:00:41 +00:00
snj
3eaff3a9c8
s/feal/feel/
2004-03-28 22:43:03 +00:00
snj
f1710feaa1
s/venomenous/venomous/
2004-03-28 22:42:39 +00:00
wiz
dc4cc98b15
becuase -> because. From Peter Postma.
2004-02-24 15:05:53 +00:00
jsm
1775f4fec6
Encode and decode more characters. Don't put commas after every
...
character. Don't encode whitespace as "...". Don't fail decoding
across a 1024-byte boundary. Mark end of message appropriately. From
OpenBSD but with punctuation taken from ITU-T Recommendation F.1
(03/98).
2004-02-13 23:16:11 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
wiz
83a837b7df
|fmt; add single quotes around a plus.
2004-02-09 23:25:47 +00:00
jsm
10b61a7cca
Mark unused parameters, nonreturning functions and format functions in
...
the few cases not already marked.
2004-02-08 22:23:50 +00:00
jsm
a12bf9a7e0
Hide the cursor if possible. From OpenBSD.
2004-02-08 22:21:57 +00:00
lukem
34fb5c1494
Fix race in parallel make when creating multiple targets in one operation.
2004-02-08 22:14:27 +00:00
jsm
4eccb08bd5
Separate primes manpage from that of factor. Correct DIAGNOSTICS
...
information.
2004-02-08 13:16:25 +00:00
jsm
4eec310a4f
Check large factor for being prime before applying Pollard's
...
algorithm; fixes "factor 2147483647111311". Correct comment;
algorithm is Pollard p-1, not Pollard rho. Increase base if p-1
algorithm reaches 1; fixes "factor 99999999999991". Testcases from
David A Bagley <bagleyd@tux.org>.
2004-02-08 11:47:36 +00:00
jsm
859993b44f
Control -d by #ifdef DEBUG; adjust usage message accordingly. Bug
...
reported by Malcolm Parsons <malcolm@ivywell.screaming.net> in Debian
bug 84852.
2004-02-08 00:33:31 +00:00
jsm
5c6ba47786
Use standard C abs function rather than local macro.
2004-02-08 00:32:48 +00:00
jsm
d035cfe33e
Mark variables changed between setjmp and longjmp as volatile rather
...
than just taking their addresses.
2004-02-08 00:32:07 +00:00
jsm
e7d3d51380
Fix grammar (bug reported by Thomas Bushnell BSG <tb@MIT.EDU> in
...
Debian bug 61846).
2004-02-08 00:31:16 +00:00
jsm
cb5fd8342e
Remove uses of __P.
2004-01-27 20:30:28 +00:00
jsm
716c7169f3
Include <sys/stat.h>.
2004-01-27 20:27:59 +00:00
jsm
8f5e2162b1
Include <sys/types.h>.
2004-01-27 20:27:29 +00:00
jsm
d91509309a
Include <sys/endian.h>.
2004-01-27 20:26:55 +00:00
jsm
0752e03df7
Include <limits.h> instead of <machine/limits.h>.
2004-01-27 20:26:20 +00:00
jsm
514bad17d7
Include <sys/endian.h>.
2004-01-27 20:25:48 +00:00
jsm
b974cbaba0
Include <sys/endian.h> instead of <machine/endian.h>. Include
...
<stdlib.h>.
2004-01-27 20:25:07 +00:00
jsm
a3b9fbcc3a
Include <sys/endian.h>.
2004-01-27 20:24:32 +00:00