2003-08-01 08:22:43 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2014-09-20 00:33:14 +08:00
|
|
|
| PHP Version 7 |
|
2003-08-01 08:22:43 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 17:03:12 +08:00
|
|
|
| Copyright (c) The PHP Group |
|
2003-08-01 08:22:43 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 20:51:34 +08:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2003-08-01 08:22:43 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 20:51:34 +08:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2003-08-01 08:22:43 +08:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
2003-12-14 14:02:33 +08:00
|
|
|
| Author: John Coggeshall <john@php.net> |
|
2003-08-01 08:22:43 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHP_TIDY_H
|
|
|
|
#define PHP_TIDY_H
|
|
|
|
|
2008-01-27 23:04:41 +08:00
|
|
|
extern zend_module_entry tidy_module_entry;
|
2003-08-01 08:22:43 +08:00
|
|
|
#define phpext_tidy_ptr &tidy_module_entry
|
|
|
|
|
2015-03-24 04:30:22 +08:00
|
|
|
#include "php_version.h"
|
|
|
|
#define PHP_TIDY_VERSION PHP_VERSION
|
|
|
|
|
2003-12-14 14:02:33 +08:00
|
|
|
#define TIDY_METHOD_MAP(name, func_name, arg_types) \
|
|
|
|
ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
|
|
|
|
#define TIDY_NODE_METHOD(name) PHP_FUNCTION(tnm_ ##name)
|
2004-02-23 08:59:29 +08:00
|
|
|
#define TIDY_NODE_ME(name, param) TIDY_METHOD_MAP(name, tnm_ ##name, param)
|
2009-12-29 01:01:24 +08:00
|
|
|
#define TIDY_NODE_PRIVATE_ME(name, param) ZEND_NAMED_ME(name, ZEND_FN(tnm_ ##name), param, ZEND_ACC_PRIVATE)
|
2003-12-14 14:02:33 +08:00
|
|
|
#define TIDY_DOC_METHOD(name) PHP_FUNCTION(tdm_ ##name)
|
|
|
|
#define TIDY_DOC_ME(name, param) TIDY_METHOD_MAP(name, tdm_ ##name, param)
|
|
|
|
#define TIDY_ATTR_METHOD(name) PHP_FUNCTION(tam_ ##name)
|
|
|
|
#define TIDY_ATTR_ME(name, param) TIDY_METHOD_MAP(name, tam_ ##name, param)
|
2003-09-22 08:12:54 +08:00
|
|
|
|
2003-08-01 08:22:43 +08:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(tidy)
|
2003-09-21 03:45:32 +08:00
|
|
|
char *default_config;
|
2010-05-31 18:29:43 +08:00
|
|
|
zend_bool clean_output;
|
2003-08-01 08:22:43 +08:00
|
|
|
ZEND_END_MODULE_GLOBALS(tidy)
|
|
|
|
|
2015-07-29 18:26:23 +08:00
|
|
|
#define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v)
|
|
|
|
|
|
|
|
#if defined(ZTS) && defined(COMPILE_DL_TIDY)
|
2016-03-03 23:46:04 +08:00
|
|
|
ZEND_TSRMLS_CACHE_EXTERN()
|
2014-10-16 22:30:26 +08:00
|
|
|
#endif
|
2003-08-01 08:22:43 +08:00
|
|
|
|
|
|
|
#endif
|