Date: Sun, 22 Jul 2001 15:57:48 -0700 From: Seth Kingsley <seth.kingsley@windriver.com> To: Assar Westerlund <assar@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/lex flex.skl Message-ID: <20010722155748.A84989@meow.osd.bsdi.com> In-Reply-To: <5l8zhhqmya.fsf@assaris.sics.se>; from assar@FreeBSD.ORG on Sun, Jul 22, 2001 at 12:26:21PM %2B0200 References: <200107211947.f6LJlHT62249@freefall.freebsd.org> <20010722021054.C77888@meow.osd.bsdi.com> <5l8zhhqmya.fsf@assaris.sics.se>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sun, Jul 22, 2001 at 12:26:21PM +0200, Assar Westerlund wrote:
> Seth Kingsley <seth.kingsley@windriver.com> writes:
> > I thought that people were intended to use:
> >
> > #define YY_NO_UNPUT
> >
> > for this purpose?
>
> Well, yes, that has been the traditional way, but it's not documented,
Actually, from looking back at flex(1) I find a section that describes
another (better) method for having the function not exist in the
generated code at all:
A number of options are available for lint purists who
want to suppress the appearance of unneeded routines in
the generated scanner. Each of the following, if unset
(e.g., %option nounput ), results in the corresponding
routine not appearing in the generated scanner:
input, unput
yy_push_state, yy_pop_state, yy_top_state
yy_scan_buffer, yy_scan_bytes, yy_scan_string
(though yy_push_stat) and friends won't appear anyway
unless you use %option stack).
--
|| Seth Kingsley || Platforms Lab Opps || seth.kingsley@windriver.com ||
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE7W1psD1AymFxBOwgRAr6AAJ9qmpdTuEE0O4DQNnyEL6iTki981ACfR4wS
gmTNMrs/oTb0625484NmY4U=
=GFge
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010722155748.A84989>
