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
b2a2f5d6
Commit
b2a2f5d6
authored
Mar 14, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix utility code dependency for builtin types
parent
b51a7402
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-0
No files found.
Cython/Compiler/Symtab.py
View file @
b2a2f5d6
...
@@ -689,6 +689,7 @@ class BuiltinScope(Scope):
...
@@ -689,6 +689,7 @@ class BuiltinScope(Scope):
var_entry = Entry(python_equiv, python_equiv, py_object_type)
var_entry = Entry(python_equiv, python_equiv, py_object_type)
var_entry.is_variable = 1
var_entry.is_variable = 1
var_entry.is_builtin = 1
var_entry.is_builtin = 1
var_entry.utility_code = utility_code
entry.as_variable = var_entry
entry.as_variable = var_entry
return entry
return entry
...
@@ -698,6 +699,7 @@ class BuiltinScope(Scope):
...
@@ -698,6 +699,7 @@ class BuiltinScope(Scope):
type.set_scope(CClassScope(name, outer_scope=None, visibility='extern'))
type.set_scope(CClassScope(name, outer_scope=None, visibility='extern'))
self.type_names[name] = 1
self.type_names[name] = 1
entry = self.declare_type(name, type, None, visibility='extern')
entry = self.declare_type(name, type, None, visibility='extern')
entry.utility_code = utility_code
var_entry = Entry(name = entry.name,
var_entry = Entry(name = entry.name,
type = self.lookup('type').type, # make sure "
type
" is the first type declared...
type = self.lookup('type').type, # make sure "
type
" is the first type declared...
...
...
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