9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: comeau@panix.com (Greg Comeau)
To: 9fans@9fans.net
Subject: Re: [9fans] float.h
Date: Wed,  6 Aug 2008 16:29:08 +0000	[thread overview]
Message-ID: <g7cj7t$qo1$1@panix3.panix.com> (raw)
In-Reply-To: <A34E0AEF-930F-45D3-9E8C-E518998604C4@mac.com>

In article <A34E0AEF-930F-45D3-9E8C-E518998604C4@mac.com>,
Pietro Gagliardi <pietro10@mac.com> wrote:
>On Aug 5, 2008, at 11:14 PM, ron minnich wrote:
>
>> I'm so confused. Why don't you just show the code.
>>
>> ron
>>
>
>#include <u.h>
>...
>#include <ape/float.h>
>...
>
>static struct{
>	char *name;
>	double value;
>}constants[] = {
>	...
>	"MIN",		DBL_MIN,
>	"MAX",		DBL_MAX,
>	"EPSILON",	DBL_EPSILON,
>	...
>};
>
>I'm actually writing a calculator that will take advantage of several
>features of Plan 9 (Runes, libgeometry, etc.) and I'd like to make
>these available.

Does it help any to initialize constants[] in a source file
by itself?
--
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?



  parent reply	other threads:[~2008-08-06 16:29 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 [this message]
2008-08-07 18:24           ` Pietro Gagliardi
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='g7cj7t$qo1$1@panix3.panix.com' \
    --to=comeau@panix.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).