Commit Graph

15 Commits

Author SHA1 Message Date
schweikh
3efe44ddf8 Parenthesize args in yyless() and unput() replacement text
so they are safer when used with expressions.

MFC after:	1 week
2012-04-10 15:29:28 +00:00
uqs
ccfed289db flex: add missing ifdef magic to create/hide prototypes
This unbreaks build for some software with higher WARNS flags.

Reviewed by:	rpaulo
PR:		bin/139319 (parts already committed in previous revision)
2010-10-24 15:31:41 +00:00
rpaulo
35bffd28c5 Don't define the input() function ifdef YY_NO_INPUT.
This was previously done for the input() function.

Submitted by:	Norberto Lopes <nblopes.ml at gmail.com>
2010-10-13 10:31:32 +00:00
ed
1126c5fc83 Let both yacc and lex generate code that passes -Wold-style-definition.
Both these tools emit code where several functions have no `void'
keyword placed in the arugment list when the function has no arguments.
2009-12-30 22:46:08 +00:00
cperciva
45f0d08992 Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible.

This commit eliminates 117 false positive bug reports of the form
"allocate memory; error out if pointer is NULL; use pointer".
2008-08-04 01:25:48 +00:00
dwmalone
d1804c46b1 I missed some "register"s in non-dot-C files. 2008-06-08 19:59:15 +00:00
nectar
38f9e74fab Mark a function as `unused' in generated code. (Sometimes it is used,
sometimes it is not, depending upon the input grammar.)
2004-01-06 19:03:44 +00:00
obrien
71fe626844 Catch up with the ISO-C++ standard.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-09-09 02:58:42 +00:00
assar
fe8624bc3a revert last commit. using %option nounput is better
noted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-07-22 23:14:33 +00:00
assar
d5b518a5b5 add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
2001-07-21 19:47:17 +00:00
obrien
8d7c2de91b After a proper import we now have both the original RCS tags + our own.
(also now clearer in ``cvs log'' that we are at version 2.5.4)
1999-10-27 07:56:49 +00:00
peter
c81dbb3c98 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
steve
f06b28eb4a Upgrade to version 2.5.4 of flex.
Inspired by: NetBSD/OpenBSD (I can't remember who I saw do it
             first, so I'll give them both some inspiration
             points. :)
1996-12-14 05:48:48 +00:00
nate
abbed305c8 Flex version 2.5.3 from Vern Paxson at LBL. 1996-06-19 20:26:48 +00:00
csgr
b5e4d7a92e Flex version 2.4.7 from LBL
Reviewed by:	Geoff.
1994-08-24 13:10:34 +00:00