Commit Graph

22 Commits

Author SHA1 Message Date
christos a35a74cd06 Fix pasto: don't call the wrong function from the wrapper. Reported by perry. 2005-08-08 01:28:08 +00:00
christos 0a918ea74c Traditional flex uses int instead of yy_size_t for some api functions.
Unfortunately this mangles differently in c++, so we get undefined symbols.
So we define the old function prototype to keep things happy.
2005-07-28 04:14:30 +00:00
christos 8e65a43404 Include iosfwd instead of iostream, since it is smaller; from Marc Espie. 2004-02-01 21:24:02 +00:00
lukem 08680ea4eb yy_flex_realloc(): apply __attribute__((__unused__)) instead of
wrapping with  #ifndef YY_USES_REJECT  .  Fixes [toolchain/11845].

Use __attribute__((__unused__)) instead of __attribute__((unused)).
2003-12-02 06:22:14 +00:00
christos 2f971ecfcb More g++-3 fixes:
- std:c{in,out,err}
	- include <iostream>
	- use std::endl instead of \n
2003-11-18 21:37:39 +00:00
christos 07c6ad20d0 Try to fix cplusplus by adding std:: in some places. 2003-11-18 17:02:27 +00:00
christos 3646bd21df don't roll your own declaration of isatty; use <unistd.h>; needs to be checked
for c++
2001-01-06 02:09:31 +00:00
assar 28db96a6b5 add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
2000-06-17 11:56:21 +00:00
simonb 07146e66cb Redo previous again, so that the check for YY_USES_REJECT is after "%%"
but still included for c++ lexers.

Fixes libc:nslexer.c build failure reported by Matthias Scheler.
2000-03-17 23:21:45 +00:00
simonb 35803308dc Redo rev 1.10 so that the changed lines are back in their original
position in the file.  This allows c++ lexers to build.

Fixes PR 8258 from Nick Hudson (uses a slightly different fix than
the one Nick supplies) and problems with c++ lexers described on
tech-pkg by Berndt Josef Wulf.
2000-03-15 22:52:14 +00:00
christos a492eb7eff Lint fixes:
- extend __GNUC__  if (0) hack for lint, make it use an unused
	  variable, and move it in reachable code.
	- fread and fwrite size_t casts.
	- use yy_size_t where appropriate.
1999-01-18 22:18:17 +00:00
lukem 72381e166d shut up `unused label' warning with %options yylineno, using a disgusting hack:
#ifdef __GNUC__
		if (0)
			goto find_label;
	#endif
:-)
1999-01-15 05:22:34 +00:00
lukem f860489a38 remove "unused function yy_flex_realloc()" warning if using %options yylineno 1999-01-14 06:58:40 +00:00
perry c44d4effcd RCSID Police. 1998-01-05 05:15:43 +00:00
mikel 7bd9154d93 Upgrade to flex 2.5.4. 1996-12-10 07:18:37 +00:00
jtc 852707219e Upgrade to Flex version 2.5.2 1995-05-05 05:35:08 +00:00
jtc f08cab4100 Upgraded to flex 2.4.7 1994-08-19 16:22:11 +00:00
jtc 7340d816d0 Upgrade to version 2.4.6 1994-01-06 23:58:18 +00:00
jtc c713bc64aa Upgrade to version 2.4.5. 1993-12-14 02:09:50 +00:00
jtc 0bac3c4487 Upgrade to version 2.4.4. 1993-12-09 19:06:03 +00:00
jtc 1ec64166fe Upgrade to Flex version 2.4.3. 1993-12-06 19:29:01 +00:00
jtc 5bf99b7657 Upgraded to Flex 2.4.2. 1993-12-02 19:17:24 +00:00