mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
g++ compile fix
This commit is contained in:
parent
1e9ce9528d
commit
cd07879f2d
1 changed files with 15 additions and 19 deletions
|
@ -398,15 +398,29 @@ int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_
|
||||||
zval_dtor(str);
|
zval_dtor(str);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
END_EXTERN_C()
|
||||||
|
|
||||||
#ifdef ZTS
|
#ifdef ZTS
|
||||||
|
BEGIN_EXTERN_C()
|
||||||
int lex_scan(zval *zendlval CLS_DC)
|
int lex_scan(zval *zendlval CLS_DC)
|
||||||
{
|
{
|
||||||
return CG(ZFL)->lex_scan(zendlval CLS_CC);
|
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)
|
void ZendFlexLexer::BeginState(int state)
|
||||||
{
|
{
|
||||||
BEGIN(state);
|
BEGIN(state);
|
||||||
|
@ -422,24 +436,6 @@ int yyFlexLexer::yylex()
|
||||||
#endif
|
#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*/
|
/* redefine YY_INPUT to handle urls for win32*/
|
||||||
#if 0 /*WIN32|WINNT*/
|
#if 0 /*WIN32|WINNT*/
|
||||||
#define YY_INPUT(buf,result,max_size) \
|
#define YY_INPUT(buf,result,max_size) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue