@@ -54,12 +54,12 @@ $excludes ||= "$code_base/src/tools/pgindent/exclude_file_patterns"
54
54
# some names we want to treat like typedefs, e.g. "bool" (which is a macro
55
55
# according to <stdbool.h>), and may include some names we don't want
56
56
# treated as typedefs, although various headers that some builds include
57
- # might make them so. For the moment we just hardwire a whitelist of names
58
- # to add and a blacklist of names to remove ; eventually this may need to be
57
+ # might make them so. For the moment we just hardwire a list of names
58
+ # to add and a list of names to exclude ; eventually this may need to be
59
59
# easier to configure. Note that the typedefs need trailing newlines.
60
- my @whitelist = (" bool\n " );
60
+ my @additional = (" bool\n " );
61
61
62
- my %blacklist = map { +" $_ \n " => 1 } qw(
62
+ my %excluded = map { +" $_ \n " => 1 } qw(
63
63
ANY FD_SET U abs allocfunc boolean date digit ilist interval iterator other
64
64
pointer printfunc reference string timestamp type wrap
65
65
) ;
@@ -134,11 +134,11 @@ sub load_typedefs
134
134
}
135
135
}
136
136
137
- # add whitelisted entries
138
- push (@typedefs , @whitelist );
137
+ # add additional entries
138
+ push (@typedefs , @additional );
139
139
140
- # remove blacklisted entries
141
- @typedefs = grep { !$blacklist {$_ } } @typedefs ;
140
+ # remove excluded entries
141
+ @typedefs = grep { !$excluded {$_ } } @typedefs ;
142
142
143
143
# write filtered typedefs
144
144
my $filter_typedefs_fh = new File::Temp(TEMPLATE => " pgtypedefXXXXX" );
0 commit comments