Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Oct 1999 23:44:35 +1200
From:      Joe Abley <jabley@patho.gen.nz>
To:        Mark Murray <mark@grondar.za>
Cc:        dcs@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: FICL breakage...
Message-ID:  <19991002234434.A13467@patho.gen.nz>
In-Reply-To: <19990929230549.F10020@patho.gen.nz>; from Joe Abley on Wed, Sep 29, 1999 at 11:05:49PM %2B1200
References:  <199909291002.MAA52950@gratis.grondar.za> <19990929230549.F10020@patho.gen.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991002234434.A13467>