123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef PHP_TOKENIZER_H
- #define PHP_TOKENIZER_H
- extern zend_module_entry tokenizer_module_entry;
- #define phpext_tokenizer_ptr &tokenizer_module_entry
- #include "php_version.h"
- #define PHP_TOKENIZER_VERSION PHP_VERSION
- #ifdef ZTS
- #include "TSRM.h"
- #endif
- void tokenizer_register_constants(INIT_FUNC_ARGS);
- char *get_token_type_name(int token_type);
- PHP_MINIT_FUNCTION(tokenizer);
- PHP_MINFO_FUNCTION(tokenizer);
- PHP_FUNCTION(token_get_all);
- PHP_FUNCTION(token_name);
- #ifdef ZTS
- #define TOKENIZER_G(v) TSRMG(tokenizer_globals_id, zend_tokenizer_globals *, v)
- #else
- #define TOKENIZER_G(v) (tokenizer_globals.v)
- #endif
- #endif
|