Skip to content

Commit c8f809f

Browse files
committed
Remove unnecessary TRUE/FALSE defines in tidy
Instead use standard true/false.
1 parent 9343ff1 commit c8f809f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ext/tidy/tidy.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@
103103
#define TIDY_TAG_CONST(tag) REGISTER_LONG_CONSTANT("TIDY_TAG_" #tag, TidyTag_##tag, CONST_CS | CONST_PERSISTENT)
104104
#define TIDY_NODE_CONST(name, type) REGISTER_LONG_CONSTANT("TIDY_NODETYPE_" #name, TidyNode_##type, CONST_CS | CONST_PERSISTENT)
105105

106-
#ifndef TRUE
107-
#define TRUE 1
108-
#endif
109-
110-
#ifndef FALSE
111-
#define FALSE 0
112-
#endif
113-
114106
#define ADD_PROPERTY_STRING(_table, _key, _string) \
115107
{ \
116108
zval tmp; \
@@ -1118,14 +1110,14 @@ PHP_FUNCTION(tidy_clean_repair)
11181110
/* {{{ Repair a string using an optionally provided configuration file */
11191111
PHP_FUNCTION(tidy_repair_string)
11201112
{
1121-
php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, FALSE);
1113+
php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, false);
11221114
}
11231115
/* }}} */
11241116

11251117
/* {{{ Repair a file using an optionally provided configuration file */
11261118
PHP_FUNCTION(tidy_repair_file)
11271119
{
1128-
php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, TRUE);
1120+
php_tidy_quick_repair(INTERNAL_FUNCTION_PARAM_PASSTHRU, true);
11291121
}
11301122
/* }}} */
11311123

0 commit comments

Comments
 (0)