From: Pietro Gagliardi <pietro10@mac.com>
To: comeau@comeaucomputing.com,
Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] float.h
Date: Thu, 7 Aug 2008 14:24:04 -0400 [thread overview]
Message-ID: <8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com> (raw)
In-Reply-To: <g7cj7t$qo1$1@panix3.panix.com>
On Aug 6, 2008, at 12:29 PM, Greg Comeau wrote:
> Does it help any to initialize constants[] in a source file
> by itself?
I don't know, but your idea gave me something that did:
% cat mach.c
#include <ape/float.h>
double dblmin = DBL_MIN;
double dblmax = DBL_MAX;
double dbleps = DBL_EPS;
% cat builtins.c
...
extern double dblmin, dblmax, dbleps;
...
install(s_copy("MIN"), CONSTANT, dblmin);
install(s_copy("MAX"), CONSTANT, dblmax);
install(s_copy("EPSILON"), CONSTANT, dbleps);
...
next prev parent reply other threads:[~2008-08-07 18:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 19:07 Pietro Gagliardi
2008-08-05 23:43 ` Russ Cox
2008-08-06 2:51 ` Pietro Gagliardi
2008-08-06 3:14 ` ron minnich
2008-08-06 3:22 ` Pietro Gagliardi
2008-08-06 8:06 ` Charles Forsyth
2008-08-06 12:43 ` Pietro Gagliardi
2008-08-06 12:59 ` erik quanstrom
2008-08-06 16:29 ` Greg Comeau
2008-08-07 18:24 ` Pietro Gagliardi [this message]
2008-08-07 19:49 ` Federico G. Benavento
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com \
--to=pietro10@mac.com \
--cc=9fans@9fans.net \
--cc=comeau@comeaucomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).