From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <32d987d50808071249t3ace43eay9edd22750317b6c2@mail.gmail.com> Date: Thu, 7 Aug 2008 16:49:13 -0300 From: "Federico G. Benavento" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10808052014q1f6931epdddd339fb86f860f@mail.gmail.com> <8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com> Subject: Re: [9fans] float.h Topicbox-Message-UUID: fc911bd4-ead3-11e9-9d60-3106f5b1d025 why are you including ? 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 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 > > 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