Commit graph

  • b2bb7f0130 Rewrite save/resume in idiomatic C. Savefile version bumped to 26. Eric S. Raymond 2017-06-10 07:13:23 -04:00
  • 96a80e5a02 Isolate the grotty save/resume code. Most of it will soon go away. Eric S. Raymond 2017-06-10 05:38:47 -04:00
  • 45605685f3 Unbreak the tests. Eric S. Raymond 2017-06-10 05:35:35 -04:00
  • 27fb272506 Enable input editing with the linenoise library. Eric S. Raymond 2017-06-10 05:11:29 -04:00
  • 0d51145d77 Change NAPLIN signature - prepration for linenoise. Eric S. Raymond 2017-06-10 01:42:53 -04:00
  • 333aa2f1d2 Replace magic linenumbers with a clearer enum. Eric S. Raymond 2017-06-10 00:23:28 -04:00
  • 4a649a6097 More goto eliminations. Eric S. Raymond 2017-06-09 17:22:20 -04:00
  • ee4ec74d89 Whitespace fixes. Eric S. Raymond 2017-06-09 17:14:18 -04:00
  • 849d702f29 Whuirespace-only change. Eric S. Raymond 2017-06-09 16:53:15 -04:00
  • 2f3738bb46 Continuing gotoicide. Eric S. Raymond 2017-06-09 14:18:09 -04:00
  • 12c8d1b42c Still more gotoicides. Eric S. Raymond 2017-06-09 13:49:19 -04:00
  • 23296c8eae Factor out player movement logic. Eric S. Raymond 2017-06-09 13:36:21 -04:00
  • 354af97829 Another gotoicide. Eric S. Raymond 2017-06-09 13:09:45 -04:00
  • 74b3027aae Another gotoicide. Eric S. Raymond 2017-06-09 12:53:27 -04:00
  • 95efe0907a Render the ascii<->advent character code mappings to lookup tables. Jason S. Ninneman 2017-06-09 09:15:44 -07:00
  • 0c5e33c922 Replace an unstructured goto with a two-level break. Eric S. Raymond 2017-06-09 12:09:47 -04:00
  • 4204e422ee Label and global-variable elimination. Eric S. Raymond 2017-06-09 12:04:45 -04:00
  • 4917100b19 Abolish global variable I. Eric S. Raymond 2017-06-09 11:53:02 -04:00
  • 5baeb82bcc Localize I. Eric S. Raymond 2017-06-09 11:47:55 -04:00
  • 43aa27b6ef Abolish a silly layer of macros. Eric S. Raymond 2017-06-09 11:36:49 -04:00
  • 5e95df59ee Eliminate an unused global. Eric S. Raymond 2017-06-09 11:23:04 -04:00
  • 42fc43080f Eliminate a global variable. Eric S. Raymond 2017-06-09 11:19:47 -04:00
  • 2e53572e63 Abolish global variable L. Eric S. Raymond 2017-06-09 11:14:04 -04:00
  • f572c9d823 Abolish global variable J. Eric S. Raymond 2017-06-09 11:13:03 -04:00
  • 8473e0b454 Remove objectioonable uses of global variables. Eric S. Raymond 2017-06-09 10:39:12 -04:00
  • fd51e6e76a Eliminate objectionable use of global. Eric S. Raymond 2017-06-09 10:17:13 -04:00
  • 2d58b29616 Reformat actions.c, no code changes. Eric S. Raymond 2017-06-09 10:00:28 -04:00
  • 88250cc4c0 Suspend/resume handler. Eric S. Raymond 2017-06-09 09:54:23 -04:00
  • 9546f9b0be Mass goto removal. Switch now calls handlers directly. Eric S. Raymond 2017-06-09 09:04:26 -04:00
  • 1d92bc41c6 Because (almost) everything is done in handlers now, merge the action files. Eric S. Raymond 2017-06-09 08:54:03 -04:00
  • 8b69968634 read() and reservoir() handlers. Eric S. Raymond 2017-06-09 08:38:11 -04:00
  • d3fd587a32 Yet more action handlers. Eric S. Raymond 2017-06-09 08:21:14 -04:00
  • 7572d88e38 Action handler light(). Eric S. Raymond 2017-06-09 07:55:55 -04:00
  • 536d923f04 More vocabulary handlers. Eric S. Raymond 2017-06-09 02:12:59 -04:00
  • de39ac1eb0 Add lock() handler. Eric S. Raymond 2017-06-09 02:04:01 -04:00
  • 660f541517 Handler for transitive extinguish. Eric S. Raymond 2017-06-09 01:39:41 -04:00
  • 54be4bcea3 Reassure compiler ("control may reach end of non-void function") John Boyle 2017-06-08 09:05:38 -07:00
  • 049eb800b1 Correct the definition of SETBIT. John Boyle 2017-06-08 08:55:22 -07:00
  • 30eac2f991 Prepare for large goto elimination - whitesoace-only change. Eric S. Raymond 2017-06-08 22:48:05 -04:00
  • 7788d22d11 Handler for SAY. Eric S. Raymond 2017-06-08 18:49:36 -04:00
  • d477856249 More action handlers. Eric S. Raymond 2017-06-08 18:24:15 -04:00
  • dd334ccb2b More handler refactoring. Eric S. Raymond 2017-06-08 17:14:00 -04:00
  • 512b95d5c6 More action handlers. Use consistent VO order. Eric S. Raymond 2017-06-08 16:18:21 -04:00
  • 1ede2cddad Beginning of actions1.c refactor. Eric S. Raymond 2017-06-08 15:27:05 -04:00
  • a29eb7be82 Remove one last goto from actions2.c Eric S. Raymond 2017-06-08 09:21:45 -04:00
  • c2593ee11f De-gotoified actions2.c functions. Peje Nilsson 2017-06-08 09:13:34 -04:00
  • 63259b7d31 De-gotoize throw(). Peje Nilsson 2017-06-08 09:09:48 -04:00
  • 6b29cc2c59 One more goto gone. Eric S. Raymond 2017-06-08 08:26:10 -04:00
  • f089791786 Factor out the croak() function for player death. Eric S. Raymond 2017-06-08 08:15:35 -04:00
  • 23ed1be99b Yet more gotoectomy. Eric S. Raymond 2017-06-08 08:02:55 -04:00
  • 10321807ab De-gotoize hint machine. Eric S. Raymond 2017-06-08 07:49:27 -04:00
  • 59cc1d8bba Factor out the state machine for hints. Eric S. Raymond 2017-06-08 07:19:44 -04:00
  • 474b83fa7d Resolve a particularly gnarly foto in dwarfmove. Eric S. Raymond 2017-06-08 06:44:25 -04:00
  • 0ec4ba6c7a Refactor of dwarfmove logic. Eric S. Raymond 2017-06-08 06:25:52 -04:00
  • f68e3e566d More gotoectomies. Eric S. Raymond 2017-06-08 06:15:08 -04:00
  • f3cc1e8ab4 Clean up dwarfmove() Eric S. Raymond 2017-06-08 05:52:32 -04:00
  • 6f5df391c0 Gotoectomy. Eric S. Raymond 2017-06-08 05:21:20 -04:00
  • 840fca5389 More main.c cleanup. Eric S. Raymond 2017-06-08 05:11:52 -04:00
  • 951268e008 De-gotoifying main.c Eric S. Raymond 2017-06-08 05:01:51 -04:00
  • 08bdaa8063 Localize V1 and V2 in main.c Eric S. Raymond 2017-06-08 04:31:06 -04:00
  • a4fec479dc Abolish funcs.h. Eric S. Raymond 2017-06-08 04:25:20 -04:00
  • c23b79f8c2 Repair linenoise build, add guidance to Makefile on getting it. Eric S. Raymond 2017-06-08 03:37:58 -04:00
  • 42330708ba Update the save/resume tests for linenoise. Jason S. Ninneman 2017-06-08 00:14:46 -07:00
  • 8ce6f2980b Remove .adv files with make clean. Jason S. Ninneman 2017-06-08 00:14:09 -07:00
  • 7e6cff7014 git-ignore .adv files. Jason S. Ninneman 2017-06-08 00:13:53 -07:00
  • 1388a00436 Use linenoise to get the save file name. Jason S. Ninneman 2017-06-08 00:09:11 -07:00
  • b45e3bd46b Add database.o to the linker list. Jason S. Ninneman 2017-06-08 00:08:11 -07:00
  • 237ba4a047 Localize K in fill(). Eric S. Raymond 2017-06-08 03:12:07 -04:00
  • 39cf11b947 De-gotoify feed(). Eric S. Raymond 2017-06-08 03:03:00 -04:00
  • 096dd81759 De-gotoify carry(). Eric S. Raymond 2017-06-08 02:43:40 -04:00
  • 18a7ad3c11 Goto removal in actions2.c. Eric S. Raymond 2017-06-08 02:33:03 -04:00
  • 76f632e633 De-gotoify fill(). Eric S. Raymond 2017-06-08 01:57:12 -04:00
  • 59b3f63b74 misc.c is goto-free. Eric S. Raymond 2017-06-08 01:35:50 -04:00
  • ec18d10350 Fix Makefile issue that broke 'make dist'. Jason S. Ninneman 2017-06-07 19:39:41 -07:00
  • 35871ccf85 The nuclear option. Jason S. Ninneman 2017-06-07 19:29:53 -07:00
  • c0b6832052 Getting desperate now. Jason S. Ninneman 2017-06-07 19:21:45 -07:00
  • 46f0da9aa0 Fix YAML syntax. Jason S. Ninneman 2017-06-07 19:18:11 -07:00
  • 64a6fab515 Fix YAML syntax. Jason S. Ninneman 2017-06-07 19:16:01 -07:00
  • 7f9ffe10d5 Fix YAML syntax. Jason S. Ninneman 2017-06-07 19:14:26 -07:00
  • 5ef2a3c07d Fix YAML syntax. Jason S. Ninneman 2017-06-07 19:13:34 -07:00
  • 809a8084aa Another workaround. Jason S. Ninneman 2017-06-07 19:13:00 -07:00
  • a4074218a7 Use a workaround of Gitlab issue 2148.wq Jason S. Ninneman 2017-06-07 19:01:14 -07:00
  • 8c56288333 Tell Gitlab to grab git submodules. Jason S. Ninneman 2017-06-07 18:57:53 -07:00
  • edf9d5a5d2 Update Makefile for linenoise. Jason S. Ninneman 2017-06-07 18:37:30 -07:00
  • fe75cade13 Submodularize the linenoise library. Jason S. Ninneman 2017-06-06 22:11:11 -07:00
  • 005c912e8f Yet another parallel make attempt. Eric S. Raymond 2017-06-07 23:04:44 -04:00
  • 12fb49593f Yet more gotoectomy. Eric S. Raymond 2017-06-07 22:59:55 -04:00
  • 936b13a751 The continuing cleanup of misc.c Eric S. Raymond 2017-06-07 22:34:06 -04:00
  • 824de77ea9 Attempt to repair GitLab build breakage. Eric S. Raymond 2017-06-07 21:26:45 -04:00
  • db87612538 Still more gotoectomy. Eric S. Raymond 2017-06-07 19:22:41 -04:00
  • 0f6c504eac More goto removal. Eric S. Raymond 2017-06-07 19:10:39 -04:00
  • 115f784ed4 More goto elimination in misc.c Eric S. Raymond 2017-06-07 18:34:08 -04:00
  • 2286db404b More misc.c cleanup. Eric S. Raymond 2017-06-07 18:00:12 -04:00
  • 68287c335a Continuing cleanup of misc.c. Eric S. Raymond 2017-06-07 16:39:59 -04:00
  • 9030fc6715 Partial misc.c gotoectomy. Eric S. Raymond 2017-06-07 16:30:51 -04:00
  • 83347f2bbd Move MAXDIE computation to dungeonmaker. Eric S. Raymond 2017-06-07 15:33:22 -04:00
  • 8492d7bcb8 Localize K in score.c. Eric S. Raymond 2017-06-07 15:20:19 -04:00
  • d052a99661 init.c is now real C. Eric S. Raymond 2017-06-07 15:12:21 -04:00
  • 8ba8d4c21c Scoring code is fully translated to C. Eric S. Raymond 2017-06-07 15:00:16 -04:00
  • a1db02b594 Reformat score.c like normal C, since it now almost is. Eric S. Raymond 2017-06-07 14:50:45 -04:00