parsing madness [was: bogolexer.c]
David Relson
relson at osagesoftware.com
Tue May 13 17:03:46 CEST 2003
At 10:52 AM 5/13/03, Matthias Andree wrote:
>relson at users.sourceforge.net writes:
>
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1:/tmp/cvs-serv4172
> >
> > Modified Files:
> > bogolexer.c
> > Log Message:
> > Split command line processing into passes 1 & 2.
>
>And I was just wondering if this command line parsing madness would find
>its end somewhere. I haven't yet had the time to look at the "AutoGen"
>component "AutoOpts", I wonder if an earlier look at that would have
>saved us some of this work.
Rather than have a flag indicating pass 1 or pass 2, it began to make more
sense to have two functions. A few days ago, I had a toggle, i.e. "varb ^=
true", which was getting set on pass 1 and reset on pass 2. Today,
bogolexer had a switch which was getting overridden by the config file,
i.e. it now needed a second pass.
I hadn't heard of AutoGen or AutoOpts until now. If they're related to
autoconf and automake, I'm sure they're wonderfully capable and have a
horrendous learning curve...
More information about the bogofilter-dev
mailing list