Mailing List Archive

1 2  View All
Re: parser bug [ In reply to ]
It's a wrapper around fgetc? That's actually what I used in the first version
of the delivery chain, and either Ilja or I changed to fgets to reduce the
number of library calls.

Aaron


Paul J Stevens <paul@nfg.nl> said:

>
> One solution just for freebsd might be:
>
> http://anjuta.sourceforge.net/cvs/HEAD/anjuta/src/getline.c
>
> But probably far superior given our long term goals:
>
>
http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-read-line-string
>
>
>
>
> Ilja Booij wrote:
> > On Thu, 2004-04-22 at 15:57, Paul J Stevens wrote:
> >
> >>Just a quick look into main.c, assuming it to be the most like suspect
> >>wrt the parser bug.
> >>
> >>Shouldn't we use getline instead of fgets? I've done a patch and it
> >>looks ok in my tests.
> >>
> >
> > I didn't know there was a getline() function, but it seems to be a GNU
> > extension. Debian doesn't even have a manpage for it (well, my install
> > doesn't have it). My Fedora box does.
> >
> > Looks like a very useful thing, but I wonder if the function is also
> > available on FreeBSD. If it's not, I think it's a no-go. If it is, it
> > might be useful.
> >
> > Ilja
> >
> >
> > _______________________________________________
> > Dbmail-dev mailing list
> > Dbmail-dev@dbmail.org
> > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> >
>
> --
> ________________________________________________________________
> Paul Stevens mailto:paul@nfg.nl
> NET FACILITIES GROUP PGP: finger paul@nfg.nl
> The Netherlands________________________________http://www.nfg.nl
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>



--

1 2  View All