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 /fallback.h | |
parent | 5f3ad87a981ba4d5a0cab0a7e2b934c9a8cf6f49 (diff) |
Move typedef of tputs_arg_t from common.h to fallback.h
darcs-hash:20060314000801-ac50b-466d5b90d9a1bea0e55c8657748edf6663edd06f.gz
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |