Back to index

php5  5.3.10
php_tidy.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author: John Coggeshall <john@php.net>                               |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_tidy.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_TIDY_H
00022 #define PHP_TIDY_H
00023 
00024 extern zend_module_entry tidy_module_entry;
00025 #define phpext_tidy_ptr &tidy_module_entry
00026 
00027 #define TIDY_METHOD_MAP(name, func_name, arg_types) \
00028        ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
00029 #define TIDY_NODE_METHOD(name)    PHP_FUNCTION(tnm_ ##name)
00030 #define TIDY_NODE_ME(name, param) TIDY_METHOD_MAP(name, tnm_ ##name, param)
00031 #define TIDY_NODE_PRIVATE_ME(name, param) ZEND_NAMED_ME(name, ZEND_FN(tnm_ ##name), param, ZEND_ACC_PRIVATE)
00032 #define TIDY_DOC_METHOD(name)     PHP_FUNCTION(tdm_ ##name)
00033 #define TIDY_DOC_ME(name, param)  TIDY_METHOD_MAP(name, tdm_ ##name, param)
00034 #define TIDY_ATTR_METHOD(name)    PHP_FUNCTION(tam_ ##name)
00035 #define TIDY_ATTR_ME(name, param) TIDY_METHOD_MAP(name, tam_ ##name, param)
00036 
00037 ZEND_BEGIN_MODULE_GLOBALS(tidy)
00038        char *default_config;
00039 ZEND_END_MODULE_GLOBALS(tidy)
00040 
00041 #ifdef ZTS
00042 #define TG(v) TSRMG(tidy_globals_id, zend_tidy_globals *, v)
00043 #else
00044 #define TG(v) (tidy_globals.v)
00045 #endif
00046 
00047 #endif
00048 
00049 /*
00050  * Local variables:
00051  * tab-width: 4
00052  * c-basic-offset: 4
00053  * End:
00054  * vim600: noet sw=4 ts=4 fdm=marker
00055  * vim<600: noet sw=4 ts=4
00056  */