zsh-workers
 help / color / mirror / code / Atom feed
* tgoto issue in zsh-5.0.0
@ 2012-08-16 12:04 Thomas Klausner
  2012-08-16 13:07 ` Peter Stephenson
  0 siblings, 1 reply; 25+ messages in thread
From: Thomas Klausner @ 2012-08-16 12:04 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-06-26  9:49 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 12:04 tgoto issue in zsh-5.0.0 Thomas Klausner
2012-08-16 13:07 ` Peter Stephenson
2012-08-16 13:20   ` Thomas Klausner
2012-08-16 13:25     ` Peter Stephenson
2012-08-16 14:25       ` pkgsrc patches for zsh [was Re: tgoto issue in zsh-5.0.0] Thomas Klausner
2012-08-16 19:18         ` Peter Stephenson
2012-08-17  8:11           ` Thomas Klausner
2012-08-17  9:38             ` Peter Stephenson
2012-08-17 10:50               ` Thomas Klausner
2012-08-17 11:35                 ` Peter Stephenson
2012-08-17 12:16                   ` Thomas Klausner
2012-08-17 13:27                     ` Peter Stephenson
2014-06-24 14:37                     ` ulimit -a: -r vs -N [was Re: pkgsrc patches for zsh] Thomas Klausner
2014-06-24 15:07                       ` Peter Stephenson
2014-06-24 16:11                         ` Thomas Klausner
2014-06-24 16:26                           ` Peter Stephenson
2014-06-24 17:09                             ` Thomas Klausner
2014-06-25  8:26                               ` Peter Stephenson
2014-06-25  8:36                                 ` Thomas Klausner
2014-06-25 10:33                                   ` Peter Stephenson
2014-06-25 11:00                                     ` Thomas Klausner
2014-06-25 11:11                                       ` Peter Stephenson
2014-06-25 12:18                                         ` Thomas Klausner
2014-06-26  8:31                                         ` Daniel Shahaf
2014-06-26  9:49                                           ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).