Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
da719b2f
Commit
da719b2f
authored
May 13, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep picky compilers happy.
parent
1ac42a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Modules/regexpr.c
Modules/regexpr.c
+3
-4
No files found.
Modules/regexpr.c
View file @
da719b2f
...
@@ -797,7 +797,7 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
...
@@ -797,7 +797,7 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
case
Cexact
:
case
Cexact
:
{
{
ch
=
(
unsigned
char
)
*
p1
++
;
ch
=
(
unsigned
char
)
*
p1
++
;
if
(
map
[
ch
])
if
(
map
[
(
int
)
ch
])
goto
make_normal_jump
;
goto
make_normal_jump
;
break
;
break
;
}
}
...
@@ -873,7 +873,6 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
...
@@ -873,7 +873,6 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
}
}
}
}
make_update_jump:
code
-=
3
;
code
-=
3
;
a
+=
3
;
/* jump to after the Cfailure_jump */
a
+=
3
;
/* jump to after the Cfailure_jump */
code
[
0
]
=
Cupdate_failure_jump
;
code
[
0
]
=
Cupdate_failure_jump
;
...
@@ -1094,12 +1093,12 @@ char *re_compile_pattern(char *regex, int size, regexp_t bufp)
...
@@ -1094,12 +1093,12 @@ char *re_compile_pattern(char *regex, int size, regexp_t bufp)
int
current_level
;
int
current_level
;
int
level
;
int
level
;
int
opcode
;
int
opcode
;
int
pattern_offset
,
alloc
;
int
pattern_offset
=
0
,
alloc
;
int
starts
[
NUM_LEVELS
*
MAX_NESTING
];
int
starts
[
NUM_LEVELS
*
MAX_NESTING
];
int
starts_base
;
int
starts_base
;
int
future_jumps
[
MAX_NESTING
];
int
future_jumps
[
MAX_NESTING
];
int
num_jumps
;
int
num_jumps
;
unsigned
char
ch
;
unsigned
char
ch
=
'\0'
;
char
*
pattern
;
char
*
pattern
;
char
*
translate
;
char
*
translate
;
int
next_register
;
int
next_register
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment