summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_accelerator_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/zend_accelerator_hash.h')
-rw-r--r--ext/opcache/zend_accelerator_hash.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/ext/opcache/zend_accelerator_hash.h b/ext/opcache/zend_accelerator_hash.h
index dc18ca54e1..b2feba5ed2 100644
--- a/ext/opcache/zend_accelerator_hash.h
+++ b/ext/opcache/zend_accelerator_hash.h
@@ -50,7 +50,7 @@ struct _zend_accel_hash_entry {
zend_accel_hash_entry *next;
void *data;
uint32_t key_length;
- zend_bool indirect;
+ bool indirect;
};
typedef struct _zend_accel_hash {
@@ -68,7 +68,7 @@ zend_accel_hash_entry* zend_accel_hash_update(
zend_accel_hash *accel_hash,
const char *key,
uint32_t key_length,
- zend_bool indirect,
+ bool indirect,
void *data);
void* zend_accel_hash_find(
@@ -79,22 +79,12 @@ zend_accel_hash_entry* zend_accel_hash_find_entry(
zend_accel_hash *accel_hash,
zend_string *key);
-void* zend_accel_hash_str_find(
- zend_accel_hash *accel_hash,
- const char *key,
- uint32_t key_length);
-
-zend_accel_hash_entry* zend_accel_hash_str_find_entry(
- zend_accel_hash *accel_hash,
- const char *key,
- uint32_t key_length);
-
int zend_accel_hash_unlink(
zend_accel_hash *accel_hash,
const char *key,
uint32_t key_length);
-static inline zend_bool zend_accel_hash_is_full(zend_accel_hash *accel_hash)
+static inline bool zend_accel_hash_is_full(zend_accel_hash *accel_hash)
{
if (accel_hash->num_entries == accel_hash->max_num_entries) {
return 1;