Move typedef of tputs_arg_t from common.h to fallback.h

darcs-hash:20060314000801-ac50b-466d5b90d9a1bea0e55c8657748edf6663edd06f.gz
This commit is contained in:
axel 2006-03-14 10:08:01 +10:00
parent 5f3ad87a98
commit 99662d7711
2 changed files with 13 additions and 14 deletions

View file

@ -15,19 +15,6 @@
#include "util.h" #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 Maximum number of bytes used by a single utf-8 character
*/ */

View file

@ -5,8 +5,20 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.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 Linux on PPC seems to have a tputs implementation that sometimes