We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta87ae38 commitcad1e02Copy full SHA for cad1e02
src/tools/pgindent/pgindent
@@ -22,10 +22,11 @@ my $indent_opts =
22
# indent-dependant settings
23
my$extra_opts ="";
24
25
-my ($typedefs_file,$code_base,$excludes,$indent,$build);
+my ($typedefs_file,$typedef_str,$code_base,$excludes,$indent,$build);
26
27
my%options = (
28
"typedefs=s"=> \$typedefs_file,
29
+"list-of-typedefs=s"=> \$typedef_str,
30
"code-base=s"=> \$code_base,
31
"excludes=s"=> \$excludes,
32
"indent=s"=> \$indent,
@@ -125,6 +126,13 @@ sub load_typedefs
125
126
||die"cannot open typedefs file\"$typedefs_file\":$!\n";
127
my@typedefs = <$typedefs_fh>;
128
close($typedefs_fh);
129
+if (defined($typedef_str))
130
+{
131
+foreachmy$typedef (split(m/[,\t\n]+/,$typedef_str))
132
133
+push(@typedefs,$typedef ."\n");
134
+}
135
136
137
# remove certain entries
138
@typedefs =