Start building a better test load for micwords.
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 0eee14bfb2d44b29be7d0d3aad4639cbe538cf2a..df9ab5b9af03b0c501e24282969fdaee2d1976ea 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -1,7 +1,7 @@
 /*
  * 'cheat' is a tool for generating save game files to test states that ought
  * not happen. It leverages chunks of advent, mostly initialize() and
- * savefile(), so we know we're always outputing save files that advent
+ * savefile(), so we know we're always outputting save files that advent
  * can import.
  *
  * Copyright (c) 1977, 2005 by Will Crowther and Don Woods
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>
+#include <editline/readline.h>
 #include "advent.h"
 
 int main(int argc, char *argv[])
@@ -96,3 +97,19 @@ int main(int argc, char *argv[])
 
     return EXIT_SUCCESS;
 }
+
+// LCOV_EXCL_START
+/*
+ * Ugh...unused, but required for linkage.
+ * See the actually useful version of this in main.c
+ */
+
+char *myreadline(const char *prompt)
+{
+    return readline(prompt);
+}
+// LCOV_EXCL_STOP
+
+/* end */
+
+