aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-14 10:08:01 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-14 10:08:01 +1000
commit99662d7711c5926c1d0513f180031b0fd4d41df4 (patch)
treec728198f4031ad9a80801cd27254a1d4f5f31094
parent5f3ad87a981ba4d5a0cab0a7e2b934c9a8cf6f49 (diff)
Move typedef of tputs_arg_t from common.h to fallback.h
darcs-hash:20060314000801-ac50b-466d5b90d9a1bea0e55c8657748edf6663edd06f.gz
-rw-r--r--common.h13
-rw-r--r--fallback.h14
2 files changed, 13 insertions, 14 deletions
diff --git a/common.h b/common.h
index 895f3313..57541ec0 100644
--- a/common.h
+++ b/common.h
@@ -16,19 +16,6 @@
#include "util.h"
/**
- Under curses, tputs expects an int (*func)(char) as its last
- parameter, but in ncurses, tputs expects a int (*func)(int) as its
- last parameter. tputs_arg_t is defined to always be what tputs
- expects. Hopefully.
-*/
-
-#ifdef NCURSES_VERSION
-typedef int tputs_arg_t;
-#else
-typedef char tputs_arg_t;
-#endif
-
-/**
Maximum number of bytes used by a single utf-8 character
*/
#define MAX_UTF8_BYTES 6
diff --git a/fallback.h b/fallback.h
index 2d8f727b..ca4a32c2 100644
--- a/fallback.h
+++ b/fallback.h
@@ -5,8 +5,20 @@
#include <stdio.h>
#include <stdarg.h>
-#ifdef TPUTS_KLUDGE
+/**
+ Under curses, tputs expects an int (*func)(char) as its last
+ parameter, but in ncurses, tputs expects a int (*func)(int) as its
+ last parameter. tputs_arg_t is defined to always be what tputs
+ expects. Hopefully.
+*/
+#ifdef NCURSES_VERSION
+typedef int tputs_arg_t;
+#else
+typedef char tputs_arg_t;
+#endif
+
+#ifdef TPUTS_KLUDGE
/**
Linux on PPC seems to have a tputs implementation that sometimes