From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Message-id: <8CB9EDC8-B167-4E72-8613-D2A2927B0D4F@mac.com> From: Pietro Gagliardi To: comeau@comeaucomputing.com, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Date: Thu, 7 Aug 2008 14:24:04 -0400 References: <13426df10808052014q1f6931epdddd339fb86f860f@mail.gmail.com> Subject: Re: [9fans] float.h Topicbox-Message-UUID: fc8ca46e-ead3-11e9-9d60-3106f5b1d025 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); ...