mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #18722: Remove uses of the "register" keyword in C code.
This commit is contained in:
parent
9eaa3e6732
commit
9ed5f27266
38 changed files with 288 additions and 286 deletions
|
|
@ -874,7 +874,7 @@ PyTokenizer_Free(struct tok_state *tok)
|
|||
/* Get next char, updating state; error code goes into tok->done */
|
||||
|
||||
static int
|
||||
tok_nextc(register struct tok_state *tok)
|
||||
tok_nextc(struct tok_state *tok)
|
||||
{
|
||||
for (;;) {
|
||||
if (tok->cur != tok->inp) {
|
||||
|
|
@ -1071,7 +1071,7 @@ tok_nextc(register struct tok_state *tok)
|
|||
/* Back-up one character */
|
||||
|
||||
static void
|
||||
tok_backup(register struct tok_state *tok, register int c)
|
||||
tok_backup(struct tok_state *tok, int c)
|
||||
{
|
||||
if (c != EOF) {
|
||||
if (--tok->cur < tok->buf)
|
||||
|
|
@ -1301,9 +1301,9 @@ verify_identifier(struct tok_state *tok)
|
|||
/* Get next token, after space stripping etc. */
|
||||
|
||||
static int
|
||||
tok_get(register struct tok_state *tok, char **p_start, char **p_end)
|
||||
tok_get(struct tok_state *tok, char **p_start, char **p_end)
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
int blankline, nonascii;
|
||||
|
||||
*p_start = *p_end = NULL;
|
||||
|
|
@ -1313,8 +1313,8 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
|
|||
|
||||
/* Get indentation level */
|
||||
if (tok->atbol) {
|
||||
register int col = 0;
|
||||
register int altcol = 0;
|
||||
int col = 0;
|
||||
int altcol = 0;
|
||||
tok->atbol = 0;
|
||||
for (;;) {
|
||||
c = tok_nextc(tok);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue