Skip to content

Commit 8251570

Browse files
committed
embed.fnc: Remove no longer used G flag
The purpose of this flag has been removed in the past few commits
1 parent 1758995 commit 8251570

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

embed.fnc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,6 @@
452452
: flag even on a format function is if the format would generate error:
453453
: format string argument is not a string type
454454
:
455-
: 'G' Suppress empty PERL_ARGS_ASSERT_foo macro. Normally such a macro is
456-
: generated for all entries for functions 'foo' in this file. The macro
457-
: is empty unless regen/embed.pl deems that there should be assert()
458-
: calls to verify the sanity of some or all of foo's arguments.
459-
:
460-
: proto.h: An empty PERL_ARGS_ASSERT macro is not defined
461-
:
462455
: 'h' Hide any documentation that would normally go into perlapi or
463456
: perlintern. This is typically used when the documentation is actually
464457
: in another pod. If you don't use the 'h', that documentation is

regen/embed.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ sub generate_proto_h {
123123

124124
my ($flags, $retval, $plain_func, $args, $assertions ) =
125125
@{$embed}{qw(flags return_type name args assertions)};
126-
if ($flags =~ / ( [^ AabCDdEefFGhIiMmNnOoPpRrSsTUuvWXx;] ) /xx) {
126+
if ($flags =~ / ( [^ AabCDdEefFhIiMmNnOoPpRrSsTUuvWXx;] ) /xx) {
127127
die_at_end "flag $1 is not legal (for function $plain_func)";
128128
}
129129

130130
my @nonnull;
131-
my $args_assert_line = ( $flags !~ /[Gm]/ );
131+
my $args_assert_line = ( $flags !~ /m/ );
132132
my $has_depth = ( $flags =~ /W/ );
133133
my $has_context = ( $flags !~ /T/ );
134134
my $never_returns = ( $flags =~ /r/ );

0 commit comments

Comments
 (0)