Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

tgoto issue in zsh-5.0.0



Hi!

zsh-5.0.0 has two prototypes for tgoto (in case they lack in the
system headers) which do not have the same signature (except on AIX).

The first one is in Src/prototypes.h:
#if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H))
/*
 * 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 char *tgoto _((TC_CONST char *cm, int destcol, int destline));
...
#undef TC_CONST
#endif


The second one is in Src/zsh_system.h:
#ifdef TGOTO_PROTO_MISSING
char *tgoto(const char *cap, int col, int row);
#endif

This causes a compile error due to conflicting prototypes (on at least
NetBSD-5.99.40/amd64, an older development version of NetBSD-6; it's
fine on another newer snapshot).
 Thomas



Messages sorted by: Reverse Date, Date, Thread, Author