Back to index

php5  5.3.10
php_tokenizer.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: Andrei Zmievski <andrei@php.net>                             |
00016    +----------------------------------------------------------------------+
00017  */
00018 
00019 /* $Id: php_tokenizer.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_TOKENIZER_H
00022 #define PHP_TOKENIZER_H
00023 
00024 extern zend_module_entry tokenizer_module_entry;
00025 #define phpext_tokenizer_ptr &tokenizer_module_entry
00026 
00027 #ifdef ZTS
00028 #include "TSRM.h"
00029 #endif
00030 
00031 void tokenizer_register_constants(INIT_FUNC_ARGS);
00032 char *get_token_type_name(int token_type);
00033 
00034 
00035 PHP_MINIT_FUNCTION(tokenizer);
00036 PHP_MINFO_FUNCTION(tokenizer);
00037 
00038 PHP_FUNCTION(token_get_all);
00039 PHP_FUNCTION(token_name);
00040 
00041 #ifdef ZTS
00042 #define TOKENIZER_G(v) TSRMG(tokenizer_globals_id, zend_tokenizer_globals *, v)
00043 #else
00044 #define TOKENIZER_G(v) (tokenizer_globals.v)
00045 #endif
00046 
00047 #endif /* PHP_TOKENIZER_H */
00048 
00049 
00050 /*
00051  * Local variables:
00052  * tab-width: 4
00053  * c-basic-offset: 4
00054  * indent-tabs-mode: t
00055  * End:
00056  */