summaryrefslogtreecommitdiff
path: root/Zend/zend_indent.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-23 03:32:33 +0000
committerZeev Suraski <zeev@php.net>1999-04-23 03:32:33 +0000
commit1aa2c5c0b4457cf7f275571defe908859328f950 (patch)
treed8a113ad58b7371136105c53f1a826f869326c5c /Zend/zend_indent.c
parentcad2318a549dff68a7c4d36b5b6b8924f57e6547 (diff)
downloadphp-git-1aa2c5c0b4457cf7f275571defe908859328f950.tar.gz
Ok, call me crazy, because I probably am.
Thread safe version now uses a C++ scanner object. Works fully.
Diffstat (limited to 'Zend/zend_indent.c')
-rw-r--r--Zend/zend_indent.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_indent.c b/Zend/zend_indent.c
index a532bac81a..63e1e3143c 100644
--- a/Zend/zend_indent.c
+++ b/Zend/zend_indent.c
@@ -21,8 +21,14 @@
#include "zend_compile.h"
#include "zend_indent.h"
+#ifndef ZTS
extern char *zendtext;
extern int zendleng;
+#else
+#define zendtext ((char *) zend_get_zendtext(CLS_C))
+#define zendleng zend_get_zendleng(CLS_C)
+#endif
+
static void handle_whitespace(int *emit_whitespace)
{