]> granicus.if.org Git - php/commitdiff
Remove unnecessary TRUE/FALSE defines in tidy
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 25 Jan 2021 14:51:20 +0000 (15:51 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 25 Jan 2021 14:54:15 +0000 (15:54 +0100)
Instead use standard true/false.

ext/tidy/tidy.c

index 40c55c4add4d09a802429f72c2742ac86da384e1..ad2059c4e020fb9168f8d349c5c406c00f3ed505 100644 (file)
 #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);
 }
 /* }}} */