static int yy_n_chars; /* number of characters read into yy_ch_buf */
-int yyleng;
-
/* Points to current character in buffer. */
#define yy_c_buf_p SCNG(c_buf_p)
#define yy_init SCNG(init)
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
%% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
-#ifdef ZTS
#undef yyleng
#define yyleng SCNG(yy_leng)
#undef yytext
#define yytext SCNG(yy_text)
#undef yytext_ptr
#define yytext_ptr SCNG(yy_text)
-#endif
%- Standard (non-C++) definition
#include "zend_ptr_stack.h"
#include "zend_globals.h"
-#ifndef ZTS
-extern char *zendtext;
-extern int zendleng;
-#else
-#define zendtext LANG_SCNG(yy_text)
-#define zendleng LANG_SCNG(yy_leng)
-#endif
-
ZEND_API void zend_html_putc(char c)
{
switch (c) {
in_string = !in_string;
break;
case T_WHITESPACE:
- zend_html_puts(zendtext, zendleng); /* no color needed */
+ zend_html_puts(LANG_SCNG(yy_text), LANG_SCNG(yy_leng)); /* no color needed */
token.type = 0;
continue;
break;
zend_html_puts(token.value.str.val, token.value.str.len);
break;
default:
- zend_html_puts(zendtext, zendleng);
+ zend_html_puts(LANG_SCNG(yy_text), LANG_SCNG(yy_leng));
break;
}