Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
ef423d1e
Commit
ef423d1e
authored
Jun 02, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a constant sentinel value in Plex instead of making it depend on the (32/64 bit) architecture.
Closes #3659.
parent
0f1c1cbd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
Cython/Plex/Machines.pxd
Cython/Plex/Machines.pxd
+2
-0
Cython/Plex/Machines.py
Cython/Plex/Machines.py
+1
-4
Cython/Plex/Regexps.py
Cython/Plex/Regexps.py
+2
-4
Cython/Plex/Transitions.py
Cython/Plex/Transitions.py
+1
-5
No files found.
Cython/Plex/Machines.pxd
View file @
ef423d1e
...
@@ -3,6 +3,8 @@ cimport cython
...
@@ -3,6 +3,8 @@ cimport cython
from
.Actions
cimport
Action
from
.Actions
cimport
Action
from
.Transitions
cimport
TransitionMap
from
.Transitions
cimport
TransitionMap
cdef
long
maxint
@
cython
.
final
@
cython
.
final
cdef
class
Machine
:
cdef
class
Machine
:
...
...
Cython/Plex/Machines.py
View file @
ef423d1e
...
@@ -9,10 +9,7 @@ from __future__ import absolute_import
...
@@ -9,10 +9,7 @@ from __future__ import absolute_import
import
cython
import
cython
from
.Transitions
import
TransitionMap
from
.Transitions
import
TransitionMap
try
:
maxint
=
2
**
31
-
1
# sentinel value
from
sys
import
maxsize
as
maxint
except
ImportError
:
from
sys
import
maxint
if
not
cython
.
compiled
:
if
not
cython
.
compiled
:
try
:
try
:
...
...
Cython/Plex/Regexps.py
View file @
ef423d1e
...
@@ -6,13 +6,11 @@ Regular Expressions
...
@@ -6,13 +6,11 @@ Regular Expressions
from
__future__
import
absolute_import
from
__future__
import
absolute_import
import
types
import
types
try
:
from
sys
import
maxsize
as
maxint
except
ImportError
:
from
sys
import
maxint
from
.
import
Errors
from
.
import
Errors
maxint
=
2
**
31
-
1
# sentinel value
#
#
# Constants
# Constants
#
#
...
...
Cython/Plex/Transitions.py
View file @
ef423d1e
...
@@ -4,12 +4,8 @@ Plex - Transition Maps
...
@@ -4,12 +4,8 @@ Plex - Transition Maps
This version represents state sets directly as dicts for speed.
This version represents state sets directly as dicts for speed.
"""
"""
from
__future__
import
absolute_import
try
:
maxint
=
2
**
31
-
1
# sentinel value
from
sys
import
maxsize
as
maxint
except
ImportError
:
from
sys
import
maxint
class
TransitionMap
(
object
):
class
TransitionMap
(
object
):
...
...
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