]> granicus.if.org Git - nethack/commitdiff
Move getpos return values to header
authorPasi Kallinen <paxed@alt.org>
Sat, 24 Sep 2016 14:07:42 +0000 (17:07 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 24 Sep 2016 14:07:42 +0000 (17:07 +0300)
include/hack.h
src/pager.c

index eeb5ce3e6a44406756d7239e766f5635353ba912..45da184a99586e5410d9fb65d6dd9c374c525d5a 100644 (file)
 #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
index 7322e609464b872b47042c93356acaf29a3b3117..184027ba053fe6332da4b2c392186e42c933eba1 100644 (file)
@@ -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";