X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=cheat.c;h=df9ab5b9af03b0c501e24282969fdaee2d1976ea;hb=97a69d8cbd2a3f57d3df419a8c881593d7643470;hp=0eee14bfb2d44b29be7d0d3aad4639cbe538cf2a;hpb=81af59974bcc0c619437cb83064d7c18e27614ec;p=open-adventure.git diff --git a/cheat.c b/cheat.c index 0eee14b..df9ab5b 100644 --- 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 #include #include +#include #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 */ + +