Annotation of embedaddon/php/ext/spl/php_spl.h, revision 1.1.1.3

1.1       misho       1: /*
                      2:    +----------------------------------------------------------------------+
                      3:    | PHP Version 5                                                        |
                      4:    +----------------------------------------------------------------------+
1.1.1.3 ! misho       5:    | Copyright (c) 1997-2013 The PHP Group                                |
1.1       misho       6:    +----------------------------------------------------------------------+
                      7:    | This source file is subject to version 3.01 of the PHP license,      |
                      8:    | that is bundled with this package in the file LICENSE, and is        |
                      9:    | available through the world-wide-web at the following url:           |
                     10:    | http://www.php.net/license/3_01.txt                                  |
                     11:    | If you did not receive a copy of the PHP license and are unable to   |
                     12:    | obtain it through the world-wide-web, please send a note to          |
                     13:    | license@php.net so we can mail you a copy immediately.               |
                     14:    +----------------------------------------------------------------------+
                     15:    | Authors: Marcus Boerger <helly@php.net>                              |
                     16:    +----------------------------------------------------------------------+
                     17:  */
                     18: 
                     19: #ifndef PHP_SPL_H
                     20: #define PHP_SPL_H
                     21: 
                     22: #include "php.h"
                     23: #if defined(PHP_WIN32)
                     24: # include "win32/php_stdint.h"
                     25: #elif defined(HAVE_STDINT_H)
                     26: # include <stdint.h>
                     27: #endif
                     28: #include <stdarg.h>
                     29: 
                     30: #if 0
                     31: #define SPL_DEBUG(x)   x
                     32: #else
                     33: #define SPL_DEBUG(x)
                     34: #endif
                     35: 
                     36: extern zend_module_entry spl_module_entry;
                     37: #define phpext_spl_ptr &spl_module_entry
                     38: 
                     39: #ifdef PHP_WIN32
                     40: #      ifdef SPL_EXPORTS
                     41: #              define SPL_API __declspec(dllexport)
                     42: #      elif defined(COMPILE_DL_SPL)
                     43: #              define SPL_API __declspec(dllimport)
                     44: #      else
                     45: #              define SPL_API /* nothing */
                     46: #      endif
                     47: #elif defined(__GNUC__) && __GNUC__ >= 4
                     48: #      define SPL_API __attribute__ ((visibility("default")))
                     49: #else
                     50: #      define SPL_API
                     51: #endif
                     52: 
                     53: #if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)
                     54: #undef phpext_spl
                     55: #define phpext_spl NULL
                     56: #endif
                     57: 
                     58: PHP_MINIT_FUNCTION(spl);
                     59: PHP_MSHUTDOWN_FUNCTION(spl);
                     60: PHP_RINIT_FUNCTION(spl);
                     61: PHP_RSHUTDOWN_FUNCTION(spl);
                     62: PHP_MINFO_FUNCTION(spl);
                     63: 
                     64: 
                     65: ZEND_BEGIN_MODULE_GLOBALS(spl)
                     66:        char *       autoload_extensions;
                     67:        HashTable *  autoload_functions;
                     68:        int          autoload_running;
                     69:        int          autoload_extensions_len;
                     70:        intptr_t     hash_mask_handle;
                     71:        intptr_t     hash_mask_handlers;
                     72:        int          hash_mask_init;
                     73: ZEND_END_MODULE_GLOBALS(spl)
                     74: 
                     75: #ifdef ZTS
                     76: # define SPL_G(v) TSRMG(spl_globals_id, zend_spl_globals *, v)
                     77: extern int spl_globals_id;
                     78: #else
                     79: # define SPL_G(v) (spl_globals.v)
                     80: extern zend_spl_globals spl_globals;
                     81: #endif
                     82: 
                     83: PHP_FUNCTION(spl_classes);
                     84: PHP_FUNCTION(class_parents);
                     85: PHP_FUNCTION(class_implements);
1.1.1.2   misho      86: PHP_FUNCTION(class_uses);
1.1       misho      87: 
                     88: PHPAPI void php_spl_object_hash(zval *obj, char* md5str TSRMLS_DC);
                     89: 
                     90: #endif /* PHP_SPL_H */
                     91: 
                     92: /*
                     93:  * Local Variables:
                     94:  * c-basic-offset: 4
                     95:  * tab-width: 4
                     96:  * End:
                     97:  * vim600: fdm=marker
                     98:  * vim: noet sw=4 ts=4
                     99:  */

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