mirror of
https://github.com/php/php-src.git
synced 2026-04-10 01:23:53 +02:00
g++ compile fix
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user