-
Notifications
You must be signed in to change notification settings - Fork 595
Add __attribute__nonnull__() for non-DEBUGGING builds #23641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
khwilliamson
wants to merge
14
commits into
Perl:blead
Choose a base branch
from
khwilliamson:attribute_nonnull
base: blead
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
26c3640
regen/HeaderParser: Fix conflated 0,empty
khwilliamson d068657
regen/embed.pl: Remove duplicate push
khwilliamson 60fe955
regen/embed.pl: Move 'my' declaration
khwilliamson 8fdea23
regen/embed.pl: Avoid trailing blank
khwilliamson e3c6b29
regen/embed.pl: Indent here-doc for clarity
khwilliamson 8de2fd0
dump.c: Collapse duplicate macro calls
khwilliamson 17fb8b3
op.c: Collapse duplicate macro calls
khwilliamson 1cda32e
op.h: Remove some code duplication
khwilliamson 7fb7120
op.h: Use PERL_UNIQUE_NAME to make code more readable
khwilliamson d2b9472
pp_ctl.c: Use macro for when param known non-NULL
khwilliamson 1cf587c
cflags.SH: Turn off attribute_nonnull warnings
khwilliamson 199d640
perl.h: Add some missing pTHX_n (n is a number)
khwilliamson 9b11f41
proto.h: Use __attribute__nonnull__ if available
khwilliamson b484be9
Add __attribute_nonnull__ to aTHX parameter
khwilliamson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,7 +172,7 @@ PP(pp_regcomp) | |
} | ||
|
||
/* handle the empty pattern */ | ||
if (!RX_PRELEN(PM_GETRE(pm)) && PL_curpm) { | ||
if (!RX_PRELEN(PM_GETRE_raw(pm)) && PL_curpm) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Couldn't this just be
which saves someone checking the code from having to trace that? |
||
if (PL_curpm == PL_reg_curpm) { | ||
if (PL_curpm_under && PL_curpm_under == PL_reg_curpm) { | ||
croak("Infinite recursion via empty pattern"); | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replaces any instance of
r1_
globally, which seems heavily name polluting.