From owner-freebsd-ports Fri Jun 22 0:30:59 2001 Delivered-To: freebsd-ports@freebsd.org Received: from winston.osd.bsdi.com (adsl-64-173-15-98.dsl.sntc01.pacbell.net [64.173.15.98]) by hub.freebsd.org (Postfix) with ESMTP id 87FCF37B409; Fri, 22 Jun 2001 00:30:44 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.4/8.11.3) with ESMTP id f5M7UDt10302; Fri, 22 Jun 2001 00:30:13 -0700 (PDT) (envelope-from jkh@osd.bsdi.com) To: dima@unixfreak.org Cc: ianjhart@freeloader.freeserve.co.uk, freebsd-ports@freebsd.org, jkh@freebsd.org Subject: Re: New INDEX In-Reply-To: <20010622062315.6C42D3E28@bazooka.unixfreak.org> References: <3B326B5F.C763F5F8@freeloader.freeserve.co.uk> <20010622062315.6C42D3E28@bazooka.unixfreak.org> X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010622003013G.jkh@osd.bsdi.com> Date: Fri, 22 Jun 2001 00:30:13 -0700 From: Jordan Hubbard X-Dispatcher: imput version 20000228(IM140) Lines: 12 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You're right, sysinstall should certainly dynamically allocate everything, but then to do that for INDEX you'd need to either pre-size all the fields and then make a 2nd pass to suck the data in, or you'd need to seriously change the way parsing is done, e.g. with a proper state machine. I think you can see why I just used fixed-size buffers and raced onwards instead. For what's probably the 47,938th time, I'll just remind everyone that the bloody thing was supposed to be a prototype. :-) - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message