diff options
author | axel <axel@liljencrantz.se> | 2006-03-14 10:08:01 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-03-14 10:08:01 +1000 |
commit | 99662d7711c5926c1d0513f180031b0fd4d41df4 (patch) | |
tree | c728198f4031ad9a80801cd27254a1d4f5f31094 | |
parent | 5f3ad87a981ba4d5a0cab0a7e2b934c9a8cf6f49 (diff) |
Move typedef of tputs_arg_t from common.h to fallback.h
darcs-hash:20060314000801-ac50b-466d5b90d9a1bea0e55c8657748edf6663edd06f.gz
-rw-r--r-- | common.h | 13 | ||||
-rw-r--r-- | fallback.h | 14 |
2 files changed, 13 insertions, 14 deletions
@@ -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 @@ -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 |