Attempting voodoo change to banish GitLab error.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 18 Nov 2018 17:39:04 +0000 (12:39 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 18 Nov 2018 17:39:04 +0000 (12:39 -0500)
This shouldn't be necessary.

advent.h
main.c

index 5e9871d4ed7a65c10497a251429bdb3b5e98c218..09f5ad99271d427f31f3b347ba5f6e9097799d80 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -231,7 +231,7 @@ extern int suspend(void);
 extern int resume(void);
 extern int restore(FILE *);
 extern long initialise(void);
 extern int resume(void);
 extern int restore(FILE *);
 extern long initialise(void);
-extern int action(command_t command);
+extern int action(command_t);
 extern void state_change(obj_t, int);
 extern bool is_valid(struct game_t);
 
 extern void state_change(obj_t, int);
 extern bool is_valid(struct game_t);
 
diff --git a/main.c b/main.c
index 3f2776c227e65ff35eb08a2de116e94f549ab7e5..027f92d46ba00fa5bd4c4541ca52737944dbcdbd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -972,6 +972,13 @@ static void listobjects(void)
     }
 }
 
     }
 }
 
+void clear_command(command_t *cmd)
+{
+    cmd->verb = ACT_NULL;
+    game.oldobj = cmd->obj;
+    cmd->obj = NO_OBJECT;
+}
+
 static bool do_command()
 /* Get and execute a command */
 {
 static bool do_command()
 /* Get and execute a command */
 {