Skip to content

Commit

Permalink
regen/reentr.pl: White-space, comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Feb 28, 2024
1 parent df145d8 commit ce559cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion reentr.h
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,6 @@ typedef struct {

#endif /* USE_REENTRANT_API */

#endif
#endif /* File hasn't already been #included */

/* ex: set ro ft=c: */
9 changes: 6 additions & 3 deletions regen/reentr.pl
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ sub open_print_header {
define)
EOF
}

# Process the prototypes
for my $p (@p) {
my ($r, $a) = ($p =~ /^(.)_(.+)/);
my $v = join(", ", map { $m{$_} } split '', $a);
Expand Down Expand Up @@ -763,13 +765,14 @@ sub define {
# endif
EOF
}
push @wrap, <<EOF;

push @wrap, <<EOF;
# if defined($func)
# define PERL_REENTR_USING_${FUNC}_R
# endif
EOF

push @wrap, <<EOF; # defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1)
push @wrap, <<EOF; # defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1)
# endif
EOF

Expand Down Expand Up @@ -801,7 +804,7 @@ sub define {
#endif /* USE_REENTRANT_API */
#endif
#endif /* File hasn't already been #included */
EOF

read_only_bottom_close_and_rename($h);
Expand Down

0 comments on commit ce559cb

Please sign in to comment.