-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-46920: Remove code made dead long ago with #if 0 #31681
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a0693cf
Remove code made dead long ago with #if 0
arhadthedev b4f6f13
Restore an original copy of libmpdec
arhadthedev f9b4ef0
Restore an original copy of libffi
arhadthedev e6c3092
Restore dump_* for bytecode debugging
arhadthedev 9927513
Remove code commented out 14-16 years ago
arhadthedev 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
Next
Next commit
Remove code made dead long ago with #if 0
- Loading branch information
commit a0693cfe502bdc792539a1f1cf0eee63fdf53c9e
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
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
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 |
---|---|---|
|
@@ -7869,42 +7869,6 @@ makecode(struct compiler *c, struct assembler *a, PyObject *constslist, | |
return co; | ||
} | ||
|
||
|
||
/* For debugging purposes only */ | ||
#if 0 | ||
static void | ||
dump_instr(struct instr *i) | ||
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. These have been useful occasionally, so I would rather not remove them. 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. Restored. |
||
{ | ||
const char *jrel = (is_relative_jump(i)) ? "jrel " : ""; | ||
const char *jabs = (is_jump(i) && !is_relative_jump(i))? "jabs " : ""; | ||
|
||
char arg[128]; | ||
|
||
*arg = '\0'; | ||
if (HAS_ARG(i->i_opcode)) { | ||
sprintf(arg, "arg: %d ", i->i_oparg); | ||
} | ||
fprintf(stderr, "line: %d, opcode: %d %s%s%s\n", | ||
i->i_lineno, i->i_opcode, arg, jabs, jrel); | ||
} | ||
|
||
static void | ||
dump_basicblock(const basicblock *b) | ||
{ | ||
const char *b_return = b->b_return ? "return " : ""; | ||
fprintf(stderr, "used: %d, depth: %d, offset: %d %s\n", | ||
b->b_iused, b->b_startdepth, b->b_offset, b_return); | ||
if (b->b_instr) { | ||
int i; | ||
for (i = 0; i < b->b_iused; i++) { | ||
fprintf(stderr, " [%02d] ", i); | ||
dump_instr(b->b_instr + i); | ||
} | ||
} | ||
} | ||
#endif | ||
|
||
|
||
static int | ||
normalize_basic_block(basicblock *bb); | ||
|
||
|
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.
Uh oh!
There was an error while loading. Please reload this page.