From: Pasi Kallinen Date: Sat, 24 Sep 2016 14:07:42 +0000 (+0300) Subject: Move getpos return values to header X-Git-Tag: NetHack-3.6.1_RC01~600 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6d2a48b252d6cf6f6be459f37ca494ecb1b7d78;p=nethack Move getpos return values to header --- diff --git a/include/hack.h b/include/hack.h index eeb5ce3e6..45da184a9 100644 --- a/include/hack.h +++ b/include/hack.h @@ -102,6 +102,14 @@ #define CXN_ARTICLE 8 /* include a/an/the prefix */ #define CXN_NOCORPSE 16 /* suppress " corpse" suffix */ +/* getpos() return values */ +enum getpos_retval { + LOOK_TRADITIONAL = 0, /* '.' -- ask about "more info?" */ + LOOK_QUICK, /* ',' -- skip "more info?" */ + LOOK_ONCE, /* ';' -- skip and stop looping */ + LOOK_VERBOSE /* ':' -- show more info w/o asking */ +}; + /* * This is the way the game ends. If these are rearranged, the arrays * in end.c and topten.c will need to be changed. Some parts of the diff --git a/src/pager.c b/src/pager.c index 7322e6094..184027ba0 100644 --- a/src/pager.c +++ b/src/pager.c @@ -958,12 +958,6 @@ const char **firstmatch; return found; } -/* getpos() return values */ -#define LOOK_TRADITIONAL 0 /* '.' -- ask about "more info?" */ -#define LOOK_QUICK 1 /* ',' -- skip "more info?" */ -#define LOOK_ONCE 2 /* ';' -- skip and stop looping */ -#define LOOK_VERBOSE 3 /* ':' -- show more info w/o asking */ - /* also used by getpos hack in do_name.c */ const char what_is_an_unknown_object[] = "an unknown object";