diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-15 12:30:54 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-15 12:33:06 +0100 |
commit | 3e01f5afb1b52fe26a956190296de0192eedeec1 (patch) | |
tree | 77531ec93e3f3cef9891c77b5ca553eb8487f121 /ext/ffi/php_ffi.h | |
parent | e2c8ab7c33ac5328485c43db5080c5bf4911ce38 (diff) | |
download | php-git-3e01f5afb1b52fe26a956190296de0192eedeec1.tar.gz |
Replace zend_bool uses with bool
We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.
Of course, zend_bool is retained as an alias.
Diffstat (limited to 'ext/ffi/php_ffi.h')
-rw-r--r-- | ext/ffi/php_ffi.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/ffi/php_ffi.h b/ext/ffi/php_ffi.h index 3a10b45478..4b395dc83d 100644 --- a/ext/ffi/php_ffi.h +++ b/ext/ffi/php_ffi.h @@ -30,7 +30,7 @@ typedef struct _zend_ffi_type zend_ffi_type; ZEND_BEGIN_MODULE_GLOBALS(ffi) zend_ffi_api_restriction restriction; - zend_bool is_cli; + bool is_cli; /* predefined ffi_types */ HashTable types; @@ -54,9 +54,9 @@ ZEND_BEGIN_MODULE_GLOBALS(ffi) int line; HashTable *symbols; HashTable *tags; - zend_bool allow_vla; - zend_bool attribute_parsing; - zend_bool persistent; + bool allow_vla; + bool attribute_parsing; + bool persistent; uint32_t default_type_attr; ZEND_END_MODULE_GLOBALS(ffi) @@ -214,7 +214,7 @@ void ZEND_NORETURN zend_ffi_parser_error(const char *msg, ...); int zend_ffi_is_typedef_name(const char *name, size_t name_len); void zend_ffi_resolve_typedef(const char *name, size_t name_len, zend_ffi_dcl *dcl); void zend_ffi_resolve_const(const char *name, size_t name_len, zend_ffi_val *val); -void zend_ffi_declare_tag(const char *name, size_t name_len, zend_ffi_dcl *dcl, zend_bool incomplete); +void zend_ffi_declare_tag(const char *name, size_t name_len, zend_ffi_dcl *dcl, bool incomplete); void zend_ffi_make_enum_type(zend_ffi_dcl *dcl); void zend_ffi_add_enum_val(zend_ffi_dcl *enum_dcl, const char *name, size_t name_len, zend_ffi_val *val, int64_t *min, int64_t *max, int64_t *last); void zend_ffi_make_struct_type(zend_ffi_dcl *dcl); |