[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling ncurses 5.2 on Solaris 8 64-Bit
From: |
Thomas Dickey |
Subject: |
Re: Compiling ncurses 5.2 on Solaris 8 64-Bit |
Date: |
Fri, 30 Nov 2001 18:17:07 -0500 |
User-agent: |
Mutt/1.2.5i |
On Fri, Nov 30, 2001 at 05:59:07PM -0500, Sullivan N. Beck wrote:
> http://docs.sun.com/ab2/coll.45.10/SOL64TRANS/@Ab2PageView/3725
>
> for more information. The sscanf function is available however, and does
> the same thing that vsscanf is doing, so it is trivial to fix this problem
> with the following patch:
sscanf doesn't do the same thing (that third parameter isn't compatible)
> *** ncurses/base/vsscanf.c Fri Nov 30 17:12:29 2001
> --- ncurses/base/vsscanf.c Fri Nov 30 17:13:26 2001
> ***************
> *** 42,47 ****
> --- 42,50 ----
> (const char *str, const char *format, va_list ap)
> {
> #if defined(_IOREAD) && defined(_NFILE)
> + #if HAVE_SSCANF
> + return sscanf(str, format, ap);
> + #else
> The second problem is that genericerror is not defined in libC for the
> new c++ compilers. A patch for this is:
something like that (I'd reverse the ifdef to check for genericerror).
> *** c++/etip.h.in Fri Nov 30 17:16:37 2001
> --- c++/etip.h.in Fri Nov 30 17:17:45 2001
> ***************
> *** 278,284 ****
> --- 278,288 ----
> throw *e;
> #endif
> #elif defined(__SUNPRO_CC)
> + # if (__SUNPRO_CC_COMPAT >= 5)
> + throw *e;
> + #else
> genericerror(1, ((e != 0) ? (char *)(e->message) : ""));
> + #endif
> #else
> if (e)
> cerr << e->message << endl;
(thanks)
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net