summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h
index 85fda8c..e858e3c 100644
--- a/main/php.h
+++ b/main/php.h
@@ -386,7 +386,20 @@ END_EXTERN_C()
/* Output support */
#include "main/php_output.h"
-
+#define PHPWRITE(str, str_len) php_body_write((str), (str_len) TSRMLS_CC)
+#define PUTS(str) do { \
+ const char *__str = (str); \
+ php_body_write(__str, strlen(__str) TSRMLS_CC); \
+} while (0)
+
+#define PUTC(c) (php_body_write(&(c), 1 TSRMLS_CC), (c))
+#define PHPWRITE_H(str, str_len) php_header_write((str), (str_len) TSRMLS_CC)
+#define PUTS_H(str) do { \
+ const char *__str = (str); \
+ php_header_write(__str, strlen(__str) TSRMLS_CC); \
+} while (0)
+
+#define PUTC_H(c) (php_header_write(&(c), 1 TSRMLS_CC), (c))
#include "php_streams.h"
#include "php_memory_streams.h"