Annotation of embedaddon/php/ext/intl/php_intl.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:    +----------------------------------------------------------------------+
                      3:    | PHP Version 5                                                        |
                      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:    | Authors: Vadim Savchuk <vsavchuk@productengine.com>                  |
                     14:    |          Dmitry Lakhtyuk <dlakhtyuk@productengine.com>               |
                     15:    |          Stanislav Malyshev <stas@zend.com>                          |
                     16:    |          Kirti Velankar <kirtig@yahoo-inc.com>                       |
                     17:    +----------------------------------------------------------------------+
                     18:  */
                     19: 
                     20: #ifndef PHP_INTL_H
                     21: #define PHP_INTL_H
                     22: 
                     23: #include <php.h>
                     24: 
                     25: #include "collator/collator_sort.h"
                     26: #include "grapheme/grapheme.h"
                     27: #include "intl_error.h"
                     28: 
                     29: extern zend_module_entry intl_module_entry;
                     30: #define phpext_intl_ptr &intl_module_entry
                     31: 
                     32: #ifdef PHP_WIN32
                     33: #define PHP_INTL_API __declspec(dllexport)
                     34: #else
                     35: #define PHP_INTL_API
                     36: #endif
                     37: 
                     38: #ifdef ZTS
                     39: #include "TSRM.h"
                     40: #endif
                     41: 
                     42: ZEND_BEGIN_MODULE_GLOBALS(intl)
                     43:        zval* current_collator;
                     44:        char* default_locale;
                     45:        collator_compare_func_t compare_func;
                     46:        UBreakIterator* grapheme_iterator;
                     47:        intl_error g_error;
                     48:        long error_level;
                     49: ZEND_END_MODULE_GLOBALS(intl)
                     50: 
                     51: /* Macro to access request-wide global variables. */
                     52: #ifdef ZTS
                     53: #define INTL_G(v) TSRMG(intl_globals_id, zend_intl_globals *, v)
                     54: #else
                     55: #define INTL_G(v) (intl_globals.v)
                     56: #endif
                     57: 
                     58: ZEND_EXTERN_MODULE_GLOBALS(intl)
                     59: 
                     60: PHP_MINIT_FUNCTION(intl);
                     61: PHP_MSHUTDOWN_FUNCTION(intl);
                     62: PHP_RINIT_FUNCTION(intl);
                     63: PHP_RSHUTDOWN_FUNCTION(intl);
                     64: PHP_MINFO_FUNCTION(intl);
                     65: 
                     66: #define PHP_INTL_VERSION "1.1.0"
                     67: 
                     68: #endif  /* PHP_INTL_H */
                     69: 
                     70: /*
                     71:  * Local variables:
                     72:  * tab-width: 4
                     73:  * c-basic-offset: 4
                     74:  * End:
                     75:  * vim600: noet sw=4 ts=4 fdm=marker
                     76:  * vim<600: noet sw=4 ts=4
                     77:  */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>