summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/cio.h12
-rw-r--r--crawl-ref/source/debug.cc12
2 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h
index 27f31570aa..38e8b8a2ba 100644
--- a/crawl-ref/source/cio.h
+++ b/crawl-ref/source/cio.h
@@ -73,6 +73,18 @@ int cancelable_get_line( char *buf,
input_history *mh = NULL,
int (*keyproc)(int &c) = NULL );
+// Do not use this templated function directly. Use the macro below instead.
+template<int> static int cancelable_get_line_autohist_temp(char *buf, int len)
+{
+ static input_history hist(10);
+ return cancelable_get_line(buf, len, get_number_of_cols(), &hist);
+}
+
+// This version of cancelable_get_line will automatically retain its own
+// input history, independent of other calls to cancelable_get_line.
+#define cancelable_get_line_autohist(buf, len) \
+ cancelable_get_line_autohist_temp<__LINE__>(buf, len)
+
struct c_mouse_event
{
coord_def pos;
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index 566a0ac905..b709be9936 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -96,18 +96,6 @@
// Internal Functions
// ========================================================================
-// Do not use this templated function directly. Use the macro below instead.
-template<int> int cancelable_get_line_autohist_temp(char *buf, int len)
-{
- static input_history hist(10);
- return cancelable_get_line(buf, len, get_number_of_cols(), &hist);
-}
-
-// This version of cancelable_get_line will automatically retain its own
-// input history, independent of other calls to cancelable_get_line.
-#define cancelable_get_line_autohist(buf, len) \
- cancelable_get_line_autohist_temp<__LINE__>(buf, len)
-
//---------------------------------------------------------------
// BreakStrToDebugger
//---------------------------------------------------------------