Using the kludge for GNU Flex < 2.5.30 was slightly incorrect. Correct way is present in 2.5.9 already.
Additionaly use the kludge found on http://flex.sourceforge.net/manual/faq_002dmemory_002dleak.html git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4384 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
7b5934d762
commit
e28cf1ce77
|
@ -148,8 +148,11 @@ int res_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int res_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -145,9 +145,11 @@ int strres_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int strres_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -166,9 +166,11 @@ parseGetErrorData(int *pLine, char **ppText)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int audp_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -202,9 +202,11 @@ int chat_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int chat_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -848,9 +848,11 @@ int scr_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int scr_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -154,9 +154,11 @@ int lev_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int lev_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -199,8 +199,11 @@ int scrv_wrap(void)
|
|||
/* Older GNU Flex versions don't define yylex_destroy()
|
||||
* (and neither define a subminor version)
|
||||
*/
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 30)
|
||||
#if !defined(YY_FLEX_SUBMINOR_VERSION) || (YY_FLEX_SUBMINOR_VERSION < 9)
|
||||
int scrv_lex_destroy(void)
|
||||
{
|
||||
/* For non-reentrant C scanner only. */
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
yy_init = 1;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue