Commit graph

223 commits

Author SHA1 Message Date
Eric S. Raymond
937714f31d Magic-number limination. Improve test coverage. 2017-06-18 09:44:34 -04:00
Eric S. Raymond
6333544efb Simplify code, improve test coverage. 2017-06-18 08:57:08 -04:00
Eric S. Raymond
c8dbb241e8 Rxtend test coverage, remove magic numbers. 2017-06-18 07:11:20 -04:00
Eric S. Raymond
ff7db8b0c8 Improve test coverage, simplify code. 2017-06-18 06:41:16 -04:00
Eric S. Raymond
b3057f038b Re-format to consistent indent style with "make indent". 2017-06-18 06:18:51 -04:00
Eric S. Raymond
900822d38f Magic-number elimination. 2017-06-17 19:39:25 -04:00
Bob Little
a3485d2a41 Move a few prototypes and static'ed a few functions
Moved prototypes for initialise() and action() from main.c to advent.h
Made the following functions static, so they wouldn't require prototypes:
   sig_handler (main.c)
   spotted_by_pirate (main.c)
   light (actions.c)
2017-06-17 18:19:09 -04:00
Eric S. Raymond
13f2e85535 Correct a message. 2017-06-17 11:09:55 -04:00
Eric S. Raymond
851f90cdf7 Improve test coverage. 2017-06-16 15:40:46 -04:00
Eric S. Raymond
59a558b762 Code simplification. 2017-06-16 15:08:21 -04:00
Peje Nilsson
a6feda5307 Split saveresume to reduce complexity
Fixed a bug where current time was printed as version of advent
when loading an old savegame.
2017-06-16 14:16:02 -04:00
Peje Nilsson
adbbd1df25 Merge branch 'master' into actions-arithmetic 2017-06-16 17:43:14 +02:00
Eric S. Raymond
d97574d35c Magic-number elimination. 2017-06-16 08:55:53 -04:00
Eric S. Raymond
a57d93ce35 Magic-number elimination. 2017-06-16 07:00:57 -04:00
Eric S. Raymond
1b5ab6c808 Code simplification. 2017-06-16 06:44:22 -04:00
Peje Nilsson
d4fc7a88b4 Merge branch 'master' into actions-arithmetic 2017-06-16 10:10:38 +02:00
Peje Nilsson
9a32f4c770 Fix more arithmetic on locations & messages 2017-06-16 10:06:01 +02:00
Eric S. Raymond
eaee02aa09 Squasgh -Wextra warnings. 2017-06-15 19:39:43 -04:00
Eric S. Raymond
14486d67d4 Magic-numnber elimination. 2017-06-15 12:19:06 -04:00
Peje Nilsson
a86c67c2ab Merge branch 'master' into actions-arithmetic 2017-06-15 17:33:15 +02:00
Eric S. Raymond
49edca485d More use of manifeat constants. 2017-06-15 11:15:45 -04:00
Peje Nilsson
29121a82f8 Fix arithmetic on message number 2017-06-15 17:01:10 +02:00
Eric S. Raymond
0dc78b4221 More use of manifest constants. 2017-06-15 10:59:43 -04:00
Eric S. Raymond
1896e0f886 Use symbolic shortnames for locations. 2017-06-15 10:31:26 -04:00
NHOrus
f1f7cfd4e9 Localizing variables 2017-06-15 16:16:21 +03:00
Eric S. Raymond
e5f9c4fbea Use LOC_* constants for locations. Clean up some ARB_* constants. 2017-06-15 08:49:47 -04:00
Eric S. Raymond
a141f021d5 Meaningful shortnames for RSPEAK messages. 2017-06-15 07:35:03 -04:00
Eric S. Raymond
1d37262a16 More ARB tagging. 2017-06-15 07:16:39 -04:00
Eric S. Raymond
da883d53c0 Clean up remnant magic labels. 2017-06-14 17:41:01 -04:00
Eric S. Raymond
fef9657e3e Move from random message numbers to ARB_* symbols generate from YAML. 2017-06-14 17:36:30 -04:00
NHOrus
46bb20deb3 Lowering the scope And cleaning up some warnings from static analysis 2017-06-14 15:17:02 -04:00
Eric S. Raymond
7c9a0bfb36 Fix handling of intransitive "say". 2017-06-14 15:15:00 -04:00
Eric S. Raymond
6c6498b797 Eliminate magic return value. 2017-06-14 13:35:06 -04:00
Eric S. Raymond
9344b8b329 De-FORTRANize the code. 2017-06-14 05:36:55 -04:00
Eric S. Raymond
dcf4d5f1d3 Correct a typo, and a test for the affected verb. 2017-06-13 17:32:07 -04:00
Eric S. Raymond
8718a6c1da Typo fix. 2017-06-13 17:13:38 -04:00
Eric S. Raymond
bd35d47139 Fix compiler warnings. 2017-06-13 14:33:19 -04:00
Jason S. Ninneman
bfa06be62d Fix all the simple compiler warnings. 2017-06-13 11:19:58 -07:00
NHOrus
2d1e089caf Remove shadowing of variable 2017-06-13 21:12:16 +03:00
Eric S. Raymond
1a12a3acf2 Move awqy from FORTRANISH conditionals. 2017-06-13 12:47:34 -04:00
Eric S. Raymond
6166d687b9 Code simplification. 2017-06-13 11:28:53 -04:00
Eric S. Raymond
c9abf8243c Code simplification. 2017-06-13 11:12:38 -04:00
Eric S. Raymond
a02b387999 FORTRAN line numbers returned from action() become action symbols. 2017-06-12 14:42:04 -04:00
Eric S. Raymond
cfcb1a6ec6 Fix uninitialized-variable warning. 2017-06-12 05:28:28 -04:00
Eric S. Raymond
e723b7e462 SPK is abolished. 2017-06-12 02:10:14 -04:00
Eric S. Raymond
ac88b9c7e1 More SPK localization. 2017-06-12 01:45:01 -04:00
Eric S. Raymond
a101fc8679 SPK localization. 2017-06-12 01:28:20 -04:00
Eric S. Raymond
80c0c10221 Localize K to main.c 2017-06-12 00:21:14 -04:00
Eric S. Raymond
1f7a1bc8fd Localization moves for K. 2017-06-12 00:10:07 -04:00
Eric S. Raymond
a062d43079 SPK is no longer global. 2017-06-11 22:04:14 -04:00