summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-25 15:51:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-25 15:54:15 +0100
commitc8f809fcffc179614c10c149826b34a677a18689 (patch)
treec7e215d5988ead7f7eb4e878f8a78b8db286f737 /ext/tidy
parent9343ff1ceb64fd1beb8117e4601463fa9f2f1eff (diff)
downloadphp-git-c8f809fcffc179614c10c149826b34a677a18689.tar.gz
Remove unnecessary TRUE/FALSE defines in tidy
Instead use standard true/false.
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tidy.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index 40c55c4add..ad2059c4e0 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -103,14 +103,6 @@
#define TIDY_TAG_CONST(tag) REGISTER_LONG_CONSTANT("TIDY_TAG_" #tag, TidyTag_##tag, CONST_CS | CONST_PERSISTENT)
#define TIDY_NODE_CONST(name, type) REGISTER_LONG_CONSTANT("TIDY_NODETYPE_" #name, TidyNode_##type, CONST_CS | CONST_PERSISTENT)
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-
#define ADD_PROPERTY_STRING(_table, _key, _string) \
{ \
zval tmp; \
@@ -1118,14 +1110,14 @@ PHP_FUNCTION(tidy_clean_repair)
/* {{{ Repair a string using an optionally provided configuration file */
PHP_FUNCTION(tidy_repair_string)
{
- php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, FALSE);
+ php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, false);
}
/* }}} */
/* {{{ Repair a file using an optionally provided configuration file */
PHP_FUNCTION(tidy_repair_file)
{
- php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, TRUE);
+ php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, true);
}
/* }}} */