*BSD News Article 5561


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!sgiblab!swrinde!elroy.jpl.nasa.gov!ames!agate!pasteur!cory.Berkeley.EDU!sim
From: sim@cory.Berkeley.EDU (Peng-Toh Sim)
Subject: Re: strtod.c -- Where's the source Luke? (Original poster)
Message-ID: <1992Sep24.172254.5951@pasteur.Berkeley.EDU>
Sender: nntp@pasteur.Berkeley.EDU (NNTP Poster)
Nntp-Posting-Host: cory
Organization: University of California, at Berkeley
References: <9721@hq.hq.af.mil>
Date: Thu, 24 Sep 1992 17:22:54 GMT
Lines: 56

In article <9721@hq.hq.af.mil> rick@hq.af.mil writes:
>In article <1992Sep18.222250.15477@serval.net.wsu.edu>, you write:
>|> In article <1992Sep18.154311.20396@qualcomm.com>, karn@servo.qualcomm.com (Phil Karn) writes:
>|> |> In article <DJM.92Sep15104153@frob.eng.umd.edu> djm@eng.umd.edu (David J. MacKenzie) writes:
>|> |> >You can get strtod.c from the GNU shellutils 1.7, but when I tried
>|> |> >compiling it on 386BSD 0.1, gcc died from some internal error, with
>|> |> >signal 6 I think.  I didn't try to figure out what it was about the
>|> |> >file that tickled the compiler bug; I just gave up.
>|> |> 
>|> 
>|> The only free strtod () which I know work are the one in libg++/iostream/dtoa.C
>|> in libg++.a 2.2 and the one hacked by me. Any other free ones are just toys.
>|> H.J. 
>
>I posted the original article on the strtod.c -- Where's the source Luke? --
>question. I was working on porting tcl and expect to 386BSD when I ran into the
>strtod problem. Come to find out a version of strtod.c is supplied 
>with tcl in the compat subdir in the source tree. I found that it compiled
>without a problem. I didn't add it to stdlib because I was told that
>it was a workaround. I simply generated the .o and linked it in. 
>
>Now I'm curious as to why stdlib/strtod.c was not included with 
>the 386BSD source distribution. Was it an oversight perhaps? I noticed
>that the man page is there but no source. If this is the case does anyone
>know where to get the "real" strtod.c?

Hi

strtod.c just happens to be "unimplemented" in the version of the
C library that comes with NET2 :)

I have ported tcl6.4 and tk2.3 and tclX6.4b to 386BSD.
The tcl port was almost trivial because I have already "kludged" up
a strtod.c earlier for lcc front-end.  tk2.3 and tclX6.4B are
relatively easy to port.  I haven't got time to make proper
patches, but if anybody wants the binaries to "wish" or "tcl" *program*
(from tclX) or the libraries can send me mail.  Or I can put them
on an ftp site.  BTW, "wish" is great.  It is an interpreter that
interfaces to tk2.3 which is a Motif look-alike.
I also have a patch for "#!interpreter [ARG]" which I'm currently testing
for 0.1 .  Note the "[ARG]", Bill's patch "kern_shell.0_1" does not
handle the [ARG].  This is needed by "wish" as in "#!wish -f" .

PT

>
>BTW expect and tcl work very well. The tweaks to get it up were trivial.
>The only thing I noticed was that it choked on some of the math tests when
>I ran the test programs against it. 
>
>-- 
>Rick Weldon     I-NET Inc. (Pentagon, 7TH Com Group)
>E-mail: rick@hq.af.mil
>Phone:  703-695-5060