Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 1999 23:30:08 +1300
From:      Joe Abley <jabley@clear.co.nz>
To:        Andrzej Bialecki <abial@nask.pl>
Cc:        Mike Smith <mike@smith.net.au>, freebsd-hackers@FreeBSD.ORG, jabley@clear.co.nz
Subject:   Re: FICL and setting BTX variables
Message-ID:  <19990112233008.A81635@clear.co.nz>
In-Reply-To: <Pine.BSF.4.02A.9901121005501.15079-100000@korin.warman.org.pl>; from Andrzej Bialecki on Tue, Jan 12, 1999 at 10:13:55AM %2B0100
References:  <19990112155325.A32880@clear.co.nz> <Pine.BSF.4.02A.9901121005501.15079-100000@korin.warman.org.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 12, 1999 at 10:13:55AM +0100, Andrzej Bialecki wrote:
> On Tue, 12 Jan 1999, Joe Abley wrote:
> 
> > # some general early substitutions
> > {
> >   gsub("\t", "    ");			# replace each tab with 4 spaces
> 
> Mhm.. I'm not sure. One of the goals here is also to make the resulting
> string as short as possible, because it directly influences the size of
> /boot/loader later. The string doesn't have to be nicely formatted, it
> just has to compile. So, I'd suggest gsub("\t"," ");

I was just copying what the perl version did :) I'm not sure what the idea
was either...

.. also, why are we bothering to split the input file with \n's within the
string? Does the FICL parser have a maximum line length? Or does it just
deal in tokens, and not care about linefeeds at all?

If the latter we could save more space by compressing every occurrance
of [[:blank:]]+ to " ", and omitting the newlines.

> Otherwise, I like it.

Thanks :)


Joe

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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