g++ compile fix

This commit is contained in:
Zeev Suraski 1999-04-24 09:08:03 +00:00
parent 1e9ce9528d
commit cd07879f2d

View file

@ -398,15 +398,29 @@ int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_
zval_dtor(str);
return SUCCESS;
}
END_EXTERN_C()
#ifdef ZTS
BEGIN_EXTERN_C()
int lex_scan(zval *zendlval CLS_DC)
{
return CG(ZFL)->lex_scan(zendlval CLS_CC);
}
const char *zend_get_zendtext(CLS_D)
{
return CG(ZFL)->YYText();
}
int zend_get_zendleng(CLS_D)
{
return CG(ZFL)->YYLeng();
}
END_EXTERN_C()
void ZendFlexLexer::BeginState(int state)
{
BEGIN(state);
@ -422,24 +436,6 @@ int yyFlexLexer::yylex()
#endif
#ifdef ZTS
const char *zend_get_zendtext(CLS_D)
{
return CG(ZFL)->YYText();
}
int zend_get_zendleng(CLS_D)
{
return CG(ZFL)->YYLeng();
}
#endif
END_EXTERN_C()
/* redefine YY_INPUT to handle urls for win32*/
#if 0 /*WIN32|WINNT*/
#define YY_INPUT(buf,result,max_size) \