|
51 | 51 |
|
52 | 52 | if ($flags =~ /[ps]/) { |
53 | 53 |
|
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"; |
58 | 58 | } |
59 | 59 |
|
60 | 60 | return "S_$func" if $flags =~ /[SIi]/; |
@@ -144,14 +144,14 @@ sub generate_proto_h { |
144 | 144 |
|
145 | 145 | die_at_end "$plain_func: S and p flags are mutually exclusive" |
146 | 146 | 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 | + } |
155 | 155 |
|
156 | 156 | my ($static_flag, @extra_static_flags)= $flags =~/([SsIi])/g; |
157 | 157 |
|
@@ -244,7 +244,7 @@ sub generate_proto_h { |
244 | 244 |
|
245 | 245 | $arg = "const char * const $name"; |
246 | 246 | die_at_end 'm flag required for "literal" argument' |
247 | | - unless $has_mflag; |
| 247 | + unless $has_mflag; |
248 | 248 | } |
249 | 249 | elsif ( $args_assert_line |
250 | 250 | && $arg =~ /\*/ |
@@ -535,7 +535,7 @@ sub embed_h { |
535 | 535 | $use_va_list ? ("__VA_ARGS__") : ()); |
536 | 536 | $ret = "#${ind}define $func($paramlist) "; |
537 | 537 | add_indent($ret,full_name($func, $flags) . "(aTHX"); |
538 | | - if ($replacelist) { |
| 538 | + if ($replacelist) { |
539 | 539 | $ret .= ($flags =~ /m/) ? "," : "_ "; |
540 | 540 | $ret .= $replacelist; |
541 | 541 | } |
@@ -720,4 +720,4 @@ sub update_headers { |
720 | 720 |
|
721 | 721 | update_headers() unless caller; |
722 | 722 |
|
723 | | -# ex: set ts=8 sts=4 sw=4 noet: |
| 723 | +# ex: set ts=8 sts=4 sw=4 et: |
0 commit comments