1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

29134: change termcap prototypes locally for AIX

This commit is contained in:
Peter Stephenson 2011-05-03 12:03:46 +00:00
parent 17e3f742f1
commit 8e0a5b0aa0
2 changed files with 24 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2011-05-03 Peter Stephenson <pws@csr.com>
* 29134: Src/prototypes.h: change termcap prototypes for AIX
locally until we find the header.
2011-05-02 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 29129: Src/exec.c: reading off end of file descriptor array
@ -14560,5 +14565,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5272 $
* $Revision: 1.5273 $
*****************************************************

View file

@ -34,12 +34,24 @@ char *calloc _((size_t, size_t));
#endif
#if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H))
extern int tgetent _((char *bp, const char *name));
extern int tgetnum _((const char *id));
extern int tgetflag _((const char *id));
extern char *tgetstr _((const char *id, char **area));
extern char *tgoto _((const char *cm, int destcol, int destline));
extern int tputs _((const char *cp, int affcnt, int (*outc) (int)));
/*
* These prototypes are only used where we don't have the
* headers. In some cases they need tweaking.
* TBD: we'd much prefer to get hold of the header where
* these are defined.
*/
#ifdef _AIX
#define TC_CONST const
#else
#define TC_CONST
#endif
extern int tgetent _((char *bp, TC_CONST char *name));
extern int tgetnum _((char *id));
extern int tgetflag _((char *id));
extern char *tgetstr _((char *id, char **area));
extern char *tgoto _((TC_CONST char *cm, int destcol, int destline));
extern int tputs _((TC_CONST char *cp, int affcnt, int (*outc) (int)));
#undef TC_CONST
#endif
/* MISSING PROTOTYPES FOR VARIOUS OPERATING SYSTEMS */