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);
}
-void ZendFlexLexer::BeginState(int state)
+const char *zend_get_zendtext(CLS_D)
{
- BEGIN(state);
+ return CG(ZFL)->YYText();
}
-int yyFlexLexer::yylex()
+int zend_get_zendleng(CLS_D)
{
- fprintf(stderr, "Error: yyFlexLexer::yylex() called\n");
- return -1;
+ return CG(ZFL)->YYLeng();
}
-
-#endif
-
+END_EXTERN_C()
-#ifdef ZTS
-const char *zend_get_zendtext(CLS_D)
+void ZendFlexLexer::BeginState(int state)
{
- return CG(ZFL)->YYText();
+ BEGIN(state);
}
-int zend_get_zendleng(CLS_D)
+int yyFlexLexer::yylex()
{
- return CG(ZFL)->YYLeng();
+ fprintf(stderr, "Error: yyFlexLexer::yylex() called\n");
+ return -1;
}
-#endif
-
-END_EXTERN_C()
+#endif
/* redefine YY_INPUT to handle urls for win32*/