From owner-freebsd-hackers Mon May 29 5:38:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 628D737B7C7 for ; Mon, 29 May 2000 05:38:39 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p01-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.130]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id VAA07581; Mon, 29 May 2000 21:38:15 +0900 (JST) Message-ID: <3932639F.2EFDF7F1@newsguy.com> Date: Mon, 29 May 2000 21:33:35 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: A G F Keahan Cc: freebsd-hackers@FreeBSD.ORG, Doug Barton Subject: Re: Generic config file parser? References: <3931B325.BB166270@freenet.co.uk> <3931AAF9.BE1846A@gorean.org> <3931BF15.3D2870EF@freenet.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A G F Keahan wrote: > > Which does not necessarily make it bad, of course, it's just nice to > separate things out. Many UNIX applications use similar formats; you > don't have to go very far to find an example -- look at e.g. > /etc/defaults/rc.conf, which has distinct sections separated by comments > like this one: > > ############################################################## > ### Important initial Boot-time options #################### > ############################################################## > > I'll say it again -- I'm not specifically after a Windows-style config > file parser, just any similar type thing. You can find libconf on http://people.freebsd.org/~dcs/, which will parse rc.conf-style files. At one point it was my intention importing it intou our tree, but I was dissuaded by my senpai, who said do it right or don't do it at all (even though it was done already :). -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@another.bsdconspiracy.org "Sentience hurts." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message