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 /sapi/phpdbg/phpdbg_out.c | |
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 'sapi/phpdbg/phpdbg_out.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_out.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_out.c b/sapi/phpdbg/phpdbg_out.c index 30dadfc11c..581ec0ca4e 100644 --- a/sapi/phpdbg/phpdbg_out.c +++ b/sapi/phpdbg/phpdbg_out.c @@ -122,7 +122,7 @@ typedef struct buf_area buffy; /* * Do format conversion placing the output in buffer */ -static int format_converter(register buffy *odp, const char *fmt, zend_bool escape_xml, va_list ap) { +static int format_converter(register buffy *odp, const char *fmt, bool escape_xml, va_list ap) { char *sp; char *bep; int cc = 0; @@ -130,7 +130,7 @@ static int format_converter(register buffy *odp, const char *fmt, zend_bool esca char *s = NULL, *free_s = NULL; size_t s_len; - zend_bool free_zcopy; + bool free_zcopy; zval *zvp, zcopy; int min_width = 0; @@ -803,7 +803,7 @@ skip_output: return (cc); } -static void strx_printv(int *ccp, char *buf, size_t len, const char *format, zend_bool escape_xml, va_list ap) { +static void strx_printv(int *ccp, char *buf, size_t len, const char *format, bool escape_xml, va_list ap) { buffy od; int cc; @@ -832,14 +832,14 @@ static void strx_printv(int *ccp, char *buf, size_t len, const char *format, zen } } -static int phpdbg_xml_vsnprintf(char *buf, size_t len, const char *format, zend_bool escape_xml, va_list ap) { +static int phpdbg_xml_vsnprintf(char *buf, size_t len, const char *format, bool escape_xml, va_list ap) { int cc; strx_printv(&cc, buf, len, format, escape_xml, ap); return (cc); } -PHPDBG_API int phpdbg_xml_vasprintf(char **buf, const char *format, zend_bool escape_xml, va_list ap) { +PHPDBG_API int phpdbg_xml_vasprintf(char **buf, const char *format, bool escape_xml, va_list ap) { va_list ap2; int cc; @@ -1137,7 +1137,7 @@ PHPDBG_API void phpdbg_free_err_buf(void) { } } -PHPDBG_API void phpdbg_activate_err_buf(zend_bool active) { +PHPDBG_API void phpdbg_activate_err_buf(bool active) { PHPDBG_G(err_buf).active = active; } |