[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.8.0: C++-style cast
From: |
Mike Gran |
Subject: |
Re: 1.8.0: C++-style cast |
Date: |
Wed, 12 Jul 2006 19:13:23 -0700 (PDT) |
--- Kevin Ryde <address@hidden> wrote:
> I don't think it's c++. I'm guessing X_CAST is an OSF macro. Dunno
> if it does anything good. John Eaton contributed that, maybe he can
> say (Cc'ed).
>
You're right. When I googled for X_CAST, I came across this...
http://www.belgeler.org/autobook/autobook-Changeable-C--.html
which I didn't read too closely and took to understand that X_CAST was
C++ (which I don't use much.) It also showed up in the Octave source,
which is C++, to reinforce my misperception.
For what it is worth, one of the strange machines I've been trying to
compile on (powerpc-ibm-aix4.3.3.0) has the code below in float.h and
math.h, which seems to align with the intent of the X_CAST in the guile
source.
extern unsigned int _DBLINF[2];
#define DINFINITY _DBLINF
#define DBL_INFINITY (*((double *) (_DBLINF)))
#define DBL_QNAN (*((double *) (DQNAN)))
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com