Partial REUSE cmpliance.
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 0eee14bfb2d44b29be7d0d3aad4639cbe538cf2a..ebbc1661397b66e8edf43a3041b4a9b688edadf4 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -1,17 +1,18 @@
 /*
  * '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
- * Copyright (c) 2017 by Eric S. Raymond
- * SPDX-License-Identifier: BSD-2-clause
+ * SPDX-FileCopyrightText: 1977, 2005 by Will Crowther and Don Woods
+ * SPDX-FileCopyrightText: 2017 by Eric S. Raymond
+ * SPDX-License-Identifier: BSD-2-Clause
  */
 #include <getopt.h>
 #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 */
+
+