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
9c2b5140
Commit
9c2b5140
authored
Nov 05, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly builds the C module now.
parent
bd008844
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1600 additions
and
5 deletions
+1600
-5
Mac/Modules/carbonevt/CarbonEvtsupport.py
Mac/Modules/carbonevt/CarbonEvtsupport.py
+4
-5
Mac/Modules/carbonevt/_CarbonEvt.c
Mac/Modules/carbonevt/_CarbonEvt.c
+1596
-0
No files found.
Mac/Modules/carbonevt/CarbonEvtsupport.py
View file @
9c2b5140
...
...
@@ -2,7 +2,7 @@
from
macsupport
import
*
from
CarbonEv
ents
scan
import
RefObjectTypes
from
CarbonEv
t
scan
import
RefObjectTypes
# where should this go? macsupport.py?
CFStringRef
=
OpaqueByValueType
(
'CFStringRef'
)
...
...
@@ -172,8 +172,7 @@ execfile('CarbonEventsgen.py')
for
f
in
functions
:
module
.
add
(
f
)
# add all the functions carboneventsgen put in the list
for
typ
in
RefObjectTypes
:
## go thru all ObjectTypes as defined in CarbonEventsscan.py
methods
=
eval
(
typ
+
'methods'
)
## get a reference to the method list
from
the
main
namespace
methods
=
eval
(
typ
+
'methods'
)
## get a reference to the method list from the main namespace
obj
=
eval
(
typ
+
'object'
)
## get a reference to the object
for
m
in
methods
:
obj
.
add
(
m
)
## add each method in the list to the object
...
...
@@ -227,5 +226,5 @@ module.add(f)
SetOutputFileName
(
'_CarbonEvt.c'
)
module
.
generate
()
import
os
os
.
system
(
"python setup.py build"
)
##
import os
##
os.system("python setup.py build")
Mac/Modules/carbonevt/_CarbonEvt.c
0 → 100644
View file @
9c2b5140
This diff is collapsed.
Click to expand it.
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