@@ -49,25 +49,25 @@ ZEND_API void zend_ts_hash_clean(TsHashTable *ht);
49
49
50
50
51
51
/* additions/updates/changes */
52
- ZEND_API int _zend_ts_hash_add_or_update (TsHashTable * ht , char * arKey , uint nKeyLength , void * pData , uint nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
52
+ ZEND_API int _zend_ts_hash_add_or_update (TsHashTable * ht , char * arKey , zend_size_t nKeyLength , void * pData , zend_size_t nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
53
53
#define zend_ts_hash_update (ht , arKey , nKeyLength , pData , nDataSize , pDest ) \
54
54
_zend_ts_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
55
55
#define zend_ts_hash_add (ht , arKey , nKeyLength , pData , nDataSize , pDest ) \
56
56
_zend_ts_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC)
57
57
58
- ZEND_API int _zend_ts_hash_quick_add_or_update (TsHashTable * ht , char * arKey , uint nKeyLength , zend_uint_t h , void * pData , uint nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
58
+ ZEND_API int _zend_ts_hash_quick_add_or_update (TsHashTable * ht , char * arKey , zend_size_t nKeyLength , zend_uint_t h , void * pData , zend_size_t nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
59
59
#define zend_ts_hash_quick_update (ht , arKey , nKeyLength , h , pData , nDataSize , pDest ) \
60
60
_zend_ts_hash_quick_add_or_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
61
61
#define zend_ts_hash_quick_add (ht , arKey , nKeyLength , h , pData , nDataSize , pDest ) \
62
62
_zend_ts_hash_quick_add_or_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC)
63
63
64
- ZEND_API int _zend_ts_hash_index_update_or_next_insert (TsHashTable * ht , zend_uint_t h , void * pData , uint nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
64
+ ZEND_API int _zend_ts_hash_index_update_or_next_insert (TsHashTable * ht , zend_uint_t h , void * pData , zend_size_t nDataSize , void * * pDest , int flag ZEND_FILE_LINE_DC );
65
65
#define zend_ts_hash_index_update (ht , h , pData , nDataSize , pDest ) \
66
66
_zend_ts_hash_index_update_or_next_insert(ht, h, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
67
67
#define zend_ts_hash_next_index_insert (ht , pData , nDataSize , pDest ) \
68
68
_zend_ts_hash_index_update_or_next_insert(ht, 0, pData, nDataSize, pDest, HASH_NEXT_INSERT ZEND_FILE_LINE_CC)
69
69
70
- ZEND_API int zend_ts_hash_add_empty_element (TsHashTable * ht , char * arKey , uint nKeyLength );
70
+ ZEND_API int zend_ts_hash_add_empty_element (TsHashTable * ht , char * arKey , zend_size_t nKeyLength );
71
71
72
72
ZEND_API void zend_ts_hash_graceful_destroy (TsHashTable * ht );
73
73
ZEND_API void zend_ts_hash_apply (TsHashTable * ht , apply_func_t apply_func TSRMLS_DC );
@@ -78,21 +78,21 @@ ZEND_API void zend_ts_hash_reverse_apply(TsHashTable *ht, apply_func_t apply_fun
78
78
79
79
80
80
/* Deletes */
81
- ZEND_API int zend_ts_hash_del_key_or_index (TsHashTable * ht , char * arKey , uint nKeyLength , zend_uint_t h , int flag );
81
+ ZEND_API int zend_ts_hash_del_key_or_index (TsHashTable * ht , char * arKey , zend_size_t nKeyLength , zend_uint_t h , int flag );
82
82
#define zend_ts_hash_del (ht , arKey , nKeyLength ) \
83
83
zend_ts_hash_del_key_or_index(ht, arKey, nKeyLength, 0, HASH_DEL_KEY)
84
84
#define zend_ts_hash_index_del (ht , h ) \
85
85
zend_ts_hash_del_key_or_index(ht, NULL, 0, h, HASH_DEL_INDEX)
86
86
87
- ZEND_API zend_uint_t zend_ts_get_hash_value (TsHashTable * ht , char * arKey , uint nKeyLength );
87
+ ZEND_API zend_uint_t zend_ts_get_hash_value (TsHashTable * ht , char * arKey , zend_size_t nKeyLength );
88
88
89
89
/* Data retreival */
90
- ZEND_API int zend_ts_hash_find (TsHashTable * ht , char * arKey , uint nKeyLength , void * * pData );
91
- ZEND_API int zend_ts_hash_quick_find (TsHashTable * ht , char * arKey , uint nKeyLength , zend_uint_t h , void * * pData );
90
+ ZEND_API int zend_ts_hash_find (TsHashTable * ht , char * arKey , zend_size_t nKeyLength , void * * pData );
91
+ ZEND_API int zend_ts_hash_quick_find (TsHashTable * ht , char * arKey , zend_size_t nKeyLength , zend_uint_t h , void * * pData );
92
92
ZEND_API int zend_ts_hash_index_find (TsHashTable * ht , zend_uint_t h , void * * pData );
93
93
94
94
/* Misc */
95
- ZEND_API int zend_ts_hash_exists (TsHashTable * ht , char * arKey , uint nKeyLength );
95
+ ZEND_API int zend_ts_hash_exists (TsHashTable * ht , char * arKey , zend_size_t nKeyLength );
96
96
ZEND_API int zend_ts_hash_index_exists (TsHashTable * ht , zend_uint_t h );
97
97
98
98
/* Copying, merging and sorting */
0 commit comments