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
2d9e5a65
Commit
2d9e5a65
authored
Jun 07, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spurious const cast and warnings, niceident regex fix, all tests pass.
parent
e607ac75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-3
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
No files found.
Cython/Compiler/Nodes.py
View file @
2d9e5a65
...
@@ -1466,7 +1466,7 @@ class DefNode(FuncDefNode):
...
@@ -1466,7 +1466,7 @@ class DefNode(FuncDefNode):
reqd_kw_flags
=
[]
reqd_kw_flags
=
[]
has_reqd_kwds
=
False
has_reqd_kwds
=
False
code
.
put
(
code
.
put
(
"static c
onst c
har *%s[] = {"
%
"static char *%s[] = {"
%
Naming
.
kwdlist_cname
)
Naming
.
kwdlist_cname
)
for
arg
in
self
.
args
:
for
arg
in
self
.
args
:
if
arg
.
is_generic
:
if
arg
.
is_generic
:
...
@@ -1618,8 +1618,7 @@ class DefNode(FuncDefNode):
...
@@ -1618,8 +1618,7 @@ class DefNode(FuncDefNode):
code
.
putln
(
'else {'
)
code
.
putln
(
'else {'
)
argformat
=
'"%s"'
%
string
.
join
(
arg_formats
,
""
)
argformat
=
'"%s"'
%
string
.
join
(
arg_formats
,
""
)
pt_arglist
=
[
Naming
.
args_cname
,
Naming
.
kwds_cname
,
argformat
,
pt_arglist
=
[
Naming
.
args_cname
,
Naming
.
kwds_cname
,
argformat
,
Naming
.
kwdlist_cname
]
+
arg_addrs
'(char **)/*temp.hack*/'
+
Naming
.
kwdlist_cname
]
+
arg_addrs
pt_argstring
=
string
.
join
(
pt_arglist
,
", "
)
pt_argstring
=
string
.
join
(
pt_arglist
,
", "
)
code
.
putln
(
code
.
putln
(
'if (unlikely(!PyArg_ParseTupleAndKeywords(%s))) %s'
%
(
'if (unlikely(!PyArg_ParseTupleAndKeywords(%s))) %s'
%
(
...
...
Cython/Compiler/Symtab.py
View file @
2d9e5a65
...
@@ -17,7 +17,7 @@ import ControlFlow
...
@@ -17,7 +17,7 @@ import ControlFlow
import
__builtin__
import
__builtin__
possible_identifier
=
re
.
compile
(
ur"(?![0-9])\
w+$
", re.U).match
possible_identifier
=
re
.
compile
(
ur"(?![0-9])\
w+$
", re.U).match
nice_identifier = re.compile('
[a-zA-Z0-0_]
').match
nice_identifier = re.compile('
^[a-zA-Z0-0_]+$
').match
class Entry:
class Entry:
# A symbol table entry in a Scope or ModuleNamespace.
# A symbol table entry in a Scope or ModuleNamespace.
...
...
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