[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison scan-code and flex-3.5.36
From: |
Tys Lefering |
Subject: |
Re: bison scan-code and flex-3.5.36 |
Date: |
Tue, 26 Apr 2011 01:29:28 +0200 |
Hi,
Here is some more about a change in Flex scanners
from 'int' to 'yy_size_t' in the sf svn version.
Maybe Bison can do something with flex --header-file
output option and include it in flex-sacnner.h to get
a correct prototype for the get_leng.
http://flex.sourceforge.net/manual/Options-for-Specifying-Filenames.html#Options-for-Specifying-Filenames
`--header-file=FILE, %option header-file="FILE"'
instructs flex to write a C header to FILE.
This file contains function prototypes, extern variables, and types
used by the scanner.
The Flex skeleton change is here in revision 2.213 :
http://flex.cvs.sourceforge.net/viewvc/flex/flex/flex.skl?r1=2.212&r2=2.213
revision 2.212 by wlestes, Sat Feb 9 18:54:56 2008 UTC
revision 2.213 by wlestes, Thu May 15 21:11:57 2008 UTC
extern int yyleng; extern yy_size_t yyleng;
Revision 2.213 - (view) (download) (annotate) - [select for diffs]
Thu May 15 21:11:57 2008 UTC (2 years, 11 months ago) by wlestes
Branch: MAIN
CVS Tags: HEAD
Changes since 2.212: +21 -21 lines
Diff to previous 2.212
clean up types; resolves 1961902
[but could not find 1961902]
In the flex NEWS file:
revision 2.191 by wlestes, Thu May 15 21:11:57 2008 UTC
http://flex.cvs.sourceforge.net/viewvc/flex/flex/NEWS?r1=2.190&r2=2.191
** various portability fixes that quiet compiler warnings on 64-bit hosts
Maybe this helps,
Thanks, Tys.