Skip to content

Commit 578c806

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 9d1dc52 commit 578c806

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
@@ -453,13 +453,6 @@
453453
: flag even on a format function is if the format would generate error:
454454
: format string argument is not a string type
455455
:
456-
: 'G' Suppress empty PERL_ARGS_ASSERT_foo macro. Normally such a macro is
457-
: generated for all entries for functions 'foo' in this file. The macro
458-
: is empty unless regen/embed.pl deems that there should be assert()
459-
: calls to verify the sanity of some or all of foo's arguments.
460-
:
461-
: proto.h: An empty PERL_ARGS_ASSERT macro is not defined
462-
:
463456
: 'h' Hide any documentation that would normally go into perlapi or
464457
: perlintern. This is typically used when the documentation is actually
465458
: 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)