From owner-freebsd-hackers Tue Jan 12 02:30:54 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA28505 for freebsd-hackers-outgoing; Tue, 12 Jan 1999 02:30:54 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fep1-orange.clear.net.nz (fep1-orange.clear.net.nz [203.97.32.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA28500 for ; Tue, 12 Jan 1999 02:30:52 -0800 (PST) (envelope-from jabley@buddha.clear.net.nz) Received: from buddha.clear.net.nz (buddha.clear.net.nz [192.168.24.106]) by fep1-orange.clear.net.nz (1.5/1.11) with ESMTP id XAA21988; Tue, 12 Jan 1999 23:30:14 +1300 (NZDT) Received: (from jabley@localhost) by buddha.clear.net.nz (8.9.1/8.9.1) id XAA90830; Tue, 12 Jan 1999 23:30:09 +1300 (NZDT) (envelope-from jabley) Date: Tue, 12 Jan 1999 23:30:08 +1300 From: Joe Abley To: Andrzej Bialecki Cc: Mike Smith , freebsd-hackers@FreeBSD.ORG, jabley@clear.co.nz Subject: Re: FICL and setting BTX variables Message-ID: <19990112233008.A81635@clear.co.nz> References: <19990112155325.A32880@clear.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: ; from Andrzej Bialecki on Tue, Jan 12, 1999 at 10:13:55AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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