mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
standard: Use true / false instead of 1 / 0 for bool parameters (2)
Changes done with Coccinelle:
@r1@
identifier F;
identifier p;
typedef bool;
type T;
parameter list [n1] PL1;
parameter list [n2] PL2;
@@
T F(PL1, bool p, PL2);
@r2@
identifier r1.F;
expression list [r1.n1] EL1;
expression list [r1.n2] EL2;
@@
F(EL1,
(
- 1
+ true
|
- 0
+ false
)
, EL2)
This commit is contained in:
committed by
Tim Düsterhus
parent
c32db7e8e9
commit
ed4537df9f
@@ -29,9 +29,9 @@ PHP_MINIT_FUNCTION(string_intrin);
|
||||
#endif
|
||||
|
||||
#define strnatcmp(a, b) \
|
||||
strnatcmp_ex(a, strlen(a), b, strlen(b), 0)
|
||||
strnatcmp_ex(a, strlen(a), b, strlen(b), false)
|
||||
#define strnatcasecmp(a, b) \
|
||||
strnatcmp_ex(a, strlen(a), b, strlen(b), 1)
|
||||
strnatcmp_ex(a, strlen(a), b, strlen(b), true)
|
||||
PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len, bool is_case_insensitive);
|
||||
PHPAPI struct lconv *localeconv_r(struct lconv *out);
|
||||
PHPAPI char *php_strtr(char *str, size_t len, const char *str_from, const char *str_to, size_t trlen);
|
||||
|
||||
Reference in New Issue
Block a user