1 /* 2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 13 | Author: Andrei Zmievski <andrei@php.net> | 14 +----------------------------------------------------------------------+ 15 */ 16 17 #ifndef PHP_TOKENIZER_H 18 #define PHP_TOKENIZER_H 19 20 extern zend_module_entry tokenizer_module_entry; 21 #define phpext_tokenizer_ptr &tokenizer_module_entry 22 23 #include "php_version.h" 24 #define PHP_TOKENIZER_VERSION PHP_VERSION 25 26 #ifdef ZTS 27 #include "TSRM.h" 28 #endif 29 30 void tokenizer_register_constants(INIT_FUNC_ARGS); 31 char *get_token_type_name(int token_type); 32 33 34 PHP_MINIT_FUNCTION(tokenizer); 35 PHP_MINFO_FUNCTION(tokenizer); 36 37 PHP_FUNCTION(token_get_all); 38 PHP_FUNCTION(token_name); 39 40 #endif /* PHP_TOKENIZER_H */ 41