This code implements (and expands) the new parser for Mistral.
[mistral.git] / mistral.h
blob8dff50a59be682ee266241edeba0d559363ba1b7
1 #ifndef MISTRAL_H
2 #define MISTRAL_H
4 #define PHP_MISTRAL_VERSION "0.1.0"
6 extern zend_module_entry mistral_module_entry;
7 #define phpext_mistral_ptr &mistral_module_entry
9 #ifdef ZTS
10 #include "TSRM.h"
11 #endif
13 PHP_MSHUTDOWN_FUNCTION(mistral);
14 PHP_MINFO_FUNCTION(mistral);
16 PHP_FUNCTION(mistral_init);
17 PHP_FUNCTION(mistral_register_callback);
18 PHP_FUNCTION(mistral_start);
20 #define php_strcasecmp(string, php_string, php_len) ((strlen(string)) == php_len && strncasecmp(string, php_string, php_len) == 0)
21 #define php_strcmp(string, php_string, php_len) ((strlen(string)) == php_len && strncmp(string, php_string, php_len) == 0)
23 #endif /* MISTRAL_H */