delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/04/15:43:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200101042042.f04KgFO25740@capella.ssd.hal.com>
Subject: Re: values.h / 2
To: cygwin AT sourceware DOT cygnus DOT com (Cygwin Mailing List)
Date: Thu, 4 Jan 2001 12:42:15 -0800 (PST)
In-Reply-To: <80575AFA5F0DD31197CE00805F650D7602CE47@wilber.adroit.com> from "Robinow, David" at Jan 04, 2001 12:29:10 PM
From: "J. J. Farrell" <jjf AT bcs DOT org DOT uk>
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0

> From: "Robinow, David" <drobinow AT dayton DOT adroit DOT com>
> 
> > mainly, i'm missing these two identifiers:
> > 
> > MINDOUBLE
> > MAXDOUBLE
> > 
> > i found a 'values.h' in mingw, but it contains nothing...
> > also the other headers which ar ementioned there didn't contain
> > these identifiers.
> > 
> > Is it possible, to include a regular values.h in cygwin?
>
>  I suggest you use DBL_MIN and DBL_MAX from float.h
> 
>  I'm not familiar with the various standards
>  controlling this sort of thing, but I'm guessing
>  that values.h can be considered obsolete
> 
>  for cygwin  float.h  defines DBL_MIN and DBL_MAX
> 
>  My Irix has both float.h and values.h and
>  DBL_MIN = MINDOUBLE

values.h is an old UNIX standard file for these things - it was
documented in issues 1 and 2 of the X/Open Portability Guide.
float.h was standardized in ANSI C in 1989 and had become widely
used before then. values.h was withdrawn from the standard in
issue 3 of the XPG in 1989, and never made it into POSIX at all.

In short, values.h has been obsolete for over 12 years - any code
which wants to be portable should be changed to use the float.h
identifiers instead. If anyone wanted to do it, I can't imagine
any harm in adding a values.h to the cygwin distribution which
#defines the values.h identifiers to their float.h equivalents,
but it would be better if the software which uses values.h were
changed to not do so.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019