mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -9,9 +9,9 @@
|
|||
/* Return the DFA for the given type */
|
||||
|
||||
dfa *
|
||||
PyGrammar_FindDFA(grammar *g, register int type)
|
||||
PyGrammar_FindDFA(grammar *g, int type)
|
||||
{
|
||||
register dfa *d;
|
||||
dfa *d;
|
||||
#if 1
|
||||
/* Massive speed-up */
|
||||
d = &g->g_dfa[type - NT_OFFSET];
|
||||
|
@ -19,7 +19,7 @@ PyGrammar_FindDFA(grammar *g, register int type)
|
|||
return d;
|
||||
#else
|
||||
/* Old, slow version */
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
for (i = g->g_ndfas, d = g->g_dfa; --i >= 0; d++) {
|
||||
if (d->d_type == type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue