Skip to content

Commit 4d463e3

Browse files
committed
regen/embed.pl: Expand tabs to blanks
This makes it easier to edit, and conforms to our tab policy
1 parent 9ef5300 commit 4d463e3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

regen/embed.pl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ ($$)
5151

5252
if ($flags =~ /[ps]/) {
5353

54-
# An all uppercase macro name gets an uppercase prefix.
55-
return ($flags =~ /m/ && $flags =~ /p/ && $func !~ /[[:lower:]]/)
56-
? "PERL_$func"
57-
: "Perl_$func";
54+
# An all uppercase macro name gets an uppercase prefix.
55+
return ($flags =~ /m/ && $flags =~ /p/ && $func !~ /[[:lower:]]/)
56+
? "PERL_$func"
57+
: "Perl_$func";
5858
}
5959

6060
return "S_$func" if $flags =~ /[SIi]/;
@@ -144,14 +144,14 @@ sub generate_proto_h {
144144

145145
die_at_end "$plain_func: S and p flags are mutually exclusive"
146146
if $flags =~ /S/ && $flags =~ /p/;
147-
if ($has_mflag) {
148-
if ($flags =~ /S/) {
149-
die_at_end "$plain_func: m and S flags are mutually exclusive";
150-
}
151-
}
152-
else {
153-
die_at_end "$plain_func: u flag only usable with m" if $flags =~ /u/;
154-
}
147+
if ($has_mflag) {
148+
if ($flags =~ /S/) {
149+
die_at_end "$plain_func: m and S flags are mutually exclusive";
150+
}
151+
}
152+
else {
153+
die_at_end "$plain_func: u flag only usable with m" if $flags =~ /u/;
154+
}
155155

156156
my ($static_flag, @extra_static_flags)= $flags =~/([SsIi])/g;
157157

@@ -244,7 +244,7 @@ sub generate_proto_h {
244244

245245
$arg = "const char * const $name";
246246
die_at_end 'm flag required for "literal" argument'
247-
unless $has_mflag;
247+
unless $has_mflag;
248248
}
249249
elsif ( $args_assert_line
250250
&& $arg =~ /\*/
@@ -535,7 +535,7 @@ sub embed_h {
535535
$use_va_list ? ("__VA_ARGS__") : ());
536536
$ret = "#${ind}define $func($paramlist) ";
537537
add_indent($ret,full_name($func, $flags) . "(aTHX");
538-
if ($replacelist) {
538+
if ($replacelist) {
539539
$ret .= ($flags =~ /m/) ? "," : "_ ";
540540
$ret .= $replacelist;
541541
}
@@ -720,4 +720,4 @@ sub update_headers {
720720

721721
update_headers() unless caller;
722722

723-
# ex: set ts=8 sts=4 sw=4 noet:
723+
# ex: set ts=8 sts=4 sw=4 et:

0 commit comments

Comments
 (0)