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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
c050817d
Commit
c050817d
authored
Oct 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes after last commit
parent
9e0f30c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+6
-6
No files found.
Cython/Compiler/PyrexTypes.py
View file @
c050817d
...
...
@@ -2,6 +2,7 @@
# Pyrex - Types
#
from
Cython.Utils
import
UtilityCode
import
StringEncoding
import
Naming
import
copy
...
...
@@ -982,7 +983,7 @@ class CStructOrUnionType(CType):
entry
=
env
.
lookup
(
self
.
name
)
if
entry
.
visibility
!=
'extern'
:
proto
=
self
.
declaration_code
(
''
)
+
';
\
n
'
+
proto
self
.
_convert_code
=
proto
,
code
.
buffer
.
getvalue
(
)
self
.
_convert_code
=
UtilityCode
(
proto
=
proto
,
impl
=
code
.
buffer
.
getvalue
()
)
env
.
use_utility_code
(
self
.
_convert_code
)
return
True
...
...
Cython/Compiler/Symtab.py
View file @
c050817d
...
...
@@ -766,7 +766,7 @@ class ModuleScope(Scope):
# doc string Module doc string
# doc_cname string C name of module doc string
# const_counter integer Counter for naming constants (PS: MOVED TO GLOBAL)
# utility_code_list [(
(string, string)
, string)] Queuing utility codes for forwarding to Code.py
# utility_code_list [(
UtilityCode
, string)] Queuing utility codes for forwarding to Code.py
# default_entries [Entry] Function argument default entries
# python_include_files [string] Standard Python headers to be included
# include_files [string] Other C headers to be included
...
...
@@ -1512,11 +1512,12 @@ class PropertyScope(Scope):
# Should this go elsewhere (and then get imported)?
#------------------------------------------------------------------------------------
classmethod_utility_code
=
[
"""
classmethod_utility_code
=
Utils
.
UtilityCode
(
proto
=
"""
#include "descrobject.h"
static PyObject* __Pyx_Method_ClassMethod(PyObject *method); /*proto*/
"""
,
"""
"""
,
impl
=
"""
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
/* It appears that PyMethodDescr_Type is not anywhere exposed in the Python/C API */
/* if (!PyObject_TypeCheck(method, &PyMethodDescr_Type)) { */
...
...
@@ -1533,5 +1534,4 @@ static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
PyErr_Format(PyExc_TypeError, "Class-level classmethod() can only be called on a method_descriptor or instance method.");
return NULL;
}
"""
]
"""
)
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