On Wed, Sep 29, 1999 at 11:05:49PM +1200, Joe Abley wrote:
> On Wed, Sep 29, 1999 at 12:02:09PM +0200, Mark Murray wrote:
> > There is breakage in the new FICL. This fixes it...
> > 
> > [awk diff]
> 
> I remember a long time ago someone asked me to make some modifications
> to softcore.awk to compress the textual ficl keywords by eliminating
> double-spaces and newlines, and that kind of thing.

Modifications have been made; patch in kern/14087. It produces
identical output to the new softcore.pl for my test case of

  cat sys/boot/ficl/softwords/*.fr

People (more) familiar with ficl syntax might like to craft some
awkward constructs and check that I'm handling them legally.

Note that the script contains one gawk-ism (use of strftime() to
include a cosmetic "last update" comment in the generated
softcore.c). In my opinion, this should be eliminated -- it seems
like a needless GNUism to me.

gawk(1) says that the use of the character class [[:space:]] is
consistent with POSIX 1003.2 (and I have no reason to disbelieve
it). However, [[:space:]] also seems to be frequently misunderstood
by other common awks, so it might also be considered a candidate for
removal in the interests of portability. The alternative is a bit
messier, though, and not necessarily portable across different
locales.


Joe


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to