In article <[EMAIL PROTECTED]>, Pietro Gagliardi <[EMAIL PROTECTED]> 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?