mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Making zend_hash_str_find_ptr_lc && zend_hash_find_ptr_lc C++ friendly (#16476)
This commit is contained in:
parent
89f10e6e92
commit
cf3ecfff25
1 changed files with 4 additions and 0 deletions
|
@ -903,6 +903,8 @@ static zend_always_inline void *zend_hash_str_find_ptr(const HashTable *ht, cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BEGIN_EXTERN_C()
|
||||||
|
|
||||||
/* Will lowercase the str; use only if you don't need the lowercased string for
|
/* Will lowercase the str; use only if you don't need the lowercased string for
|
||||||
* anything else. If you have a lowered string, use zend_hash_str_find_ptr. */
|
* anything else. If you have a lowered string, use zend_hash_str_find_ptr. */
|
||||||
ZEND_API void *zend_hash_str_find_ptr_lc(const HashTable *ht, const char *str, size_t len);
|
ZEND_API void *zend_hash_str_find_ptr_lc(const HashTable *ht, const char *str, size_t len);
|
||||||
|
@ -911,6 +913,8 @@ ZEND_API void *zend_hash_str_find_ptr_lc(const HashTable *ht, const char *str, s
|
||||||
* anything else. If you have a lowered string, use zend_hash_find_ptr. */
|
* anything else. If you have a lowered string, use zend_hash_find_ptr. */
|
||||||
ZEND_API void *zend_hash_find_ptr_lc(const HashTable *ht, zend_string *key);
|
ZEND_API void *zend_hash_find_ptr_lc(const HashTable *ht, zend_string *key);
|
||||||
|
|
||||||
|
END_EXTERN_C()
|
||||||
|
|
||||||
static zend_always_inline void *zend_hash_index_find_ptr(const HashTable *ht, zend_ulong h)
|
static zend_always_inline void *zend_hash_index_find_ptr(const HashTable *ht, zend_ulong h)
|
||||||
{
|
{
|
||||||
zval *zv;
|
zval *zv;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue