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
--jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: > >=20 > > #define YY_NO_UNPUT > >=20 > > for this purpose?=20 >=20 > 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). --=20 || Seth Kingsley || Platforms Lab Opps || seth.kingsley@windriver.com || --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7W1psD1AymFxBOwgRAr6AAJ9qmpdTuEE0O4DQNnyEL6iTki981ACfR4wS gmTNMrs/oTb0625484NmY4U= =GFge -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010722155748.A84989>