From: "Federico G. Benavento" <benavento@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] float.h
Date: Thu, 7 Aug 2008 16:49:13 -0300 [thread overview]
Message-ID: <32d987d50808071249t3ace43eay9edd22750317b6c2@mail.gmail.com> (raw)
In-Reply-To: <8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com>
why are you including <ape/float.h> ?
you're lucky that /$objtype/include/ape/float.h doesn't have
a #pragma lib, otherwise you'll be seeing some weird behavior.
you should not link APE's libs against the standard libc.
On Thu, Aug 7, 2008 at 3:24 PM, Pietro Gagliardi <pietro10@mac.com> wrote:
> 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);
> ...
>
>
>
--
Federico G. Benavento
prev parent reply other threads:[~2008-08-07 19:49 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
2008-08-07 19:49 ` Federico G. Benavento [this message]
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=32d987d50808071249t3ace43eay9edd22750317b6c2@mail.gmail.com \
--to=benavento@gmail.com \
--cc=9fans@9fans.net \
/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).