R-alpha: Probably <float.h> instead of <values.h> for an automatic .Machine

Jan Erik Backlund (Jan.E.Backlund-4@tc.umn.edu)
Wed, 4 Dec 1996 14:53:49 -0600

Date: Wed, 4 Dec 1996 14:53:49 -0600
Message-Id: <199612042053.OAA00831@solanum.agoff.umn.edu>
From: Jan Erik Backlund <Jan.E.Backlund-4@tc.umn.edu>
To: Douglas Bates <bates@stat.wisc.edu>
Subject: R-alpha: Probably <float.h> instead of <values.h> for an automatic .Machine
In-Reply-To: <m0vVMQu-000hhyC@franz.stat.wisc.edu>

gcc uses enquire.c to generate <float.h>.  Would it be an option to
bundle enquire.c, compile it, and run it to generate <float.h> for R
as part of the normal build process?

I've appended part of the blurb for enquire.c

Jan Erik

from: comp.sources.misc volume 15

Posting-number: Volume 15, Issue 95
Submitted-by: steven@cwi.nl (Steven Pemberton)
Archive-name: enquire-4.3/part01

Enquire.c (which used to be called config.c) is a program that
determines many properties of the C compiler and machine that it is
run on, such as minimum and maximum [un]signed char/int/long, many
properties of float/ [long] double, and so on.

As an option it produces the ANSI C float.h and limits.h files.

As a further option, it even checks that the compiler reads the header
files correctly.

It is a good test-case for compilers, since it exercises them with
many limiting values, such as the ability to handle the minimum and
maximum floating-point numbers.

Version 4.3 of enquire.c has been submitted to comp.sources.misc, and
will appear as part of the gcc distribution (where it is used to
generate float.h); it is also available by anonymous ftp from
mcsun.eu.net and hp4nl.nluug.nl as misc/enquire43.c, and by mail from
info-server@hp4nl.nluug.nl by sending a mail message:
        request: misc
        topic: enquire43.c

Steven Pemberton, CWI, Amsterdam; steven@cwi.nl
"Let us go then you and I/while the night is laid out against the
sky/like a
                                        smear of mustard on an old
pork pie"
Nice poem Tom. I have ideas for changes though, why not come over? -

r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch