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
acbaefd7
Commit
acbaefd7
authored
Aug 04, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to something that works on my system, and regenerated module.
parent
7ea8143f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
Mac/Modules/ibcarbon/IBCarbonscan.py
Mac/Modules/ibcarbon/IBCarbonscan.py
+6
-1
Mac/Modules/ibcarbon/_IBCarbon.c
Mac/Modules/ibcarbon/_IBCarbon.c
+1
-11
No files found.
Mac/Modules/ibcarbon/IBCarbonscan.py
View file @
acbaefd7
...
...
@@ -5,7 +5,7 @@ import os
import
string
import
MacOS
BGENDIR
=
'/Users/
dp/python/dist/src
/Tools/bgen/bgen'
BGENDIR
=
'/Users/
jack/src/python
/Tools/bgen/bgen'
sys
.
path
.
append
(
BGENDIR
)
print
sys
.
path
,
sys
.
prefix
from
bgenlocations
import
TOOLBOXDIR
...
...
@@ -25,6 +25,7 @@ def main():
print
"done"
class
IBCarbon_Scanner
(
Scanner_OSX
):
def
destination
(
self
,
type
,
name
,
arglist
):
classname
=
"IBCarbonFunction"
listname
=
"functions"
...
...
@@ -40,6 +41,10 @@ class IBCarbon_Scanner(Scanner_OSX):
"DisposeNibReference"
,
# taken care of by destructor
"CreateNibReferenceWithCFBundle"
,
## need to wrap CFBundle.h properly first
]
def
makerepairinstructions
(
self
):
return
[]
if
__name__
==
"__main__"
:
main
()
Mac/Modules/ibcarbon/_IBCarbon.c
View file @
acbaefd7
...
...
@@ -55,7 +55,7 @@ int IBNibRefObj_Convert(PyObject *v, IBNibRef *p_itself)
static
void
IBNibRefObj_dealloc
(
IBNibRefObject
*
self
)
{
DisposeNibReference
(
self
->
ob_itself
);
Py
Mem_DEL
(
self
);
Py
Object_Del
(
self
);
}
static
PyObject
*
IBNibRefObj_CreateWindowFromNib
(
IBNibRefObject
*
_self
,
PyObject
*
_args
)
...
...
@@ -67,11 +67,9 @@ static PyObject *IBNibRefObj_CreateWindowFromNib(IBNibRefObject *_self, PyObject
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CFStringRefObj_Convert
,
&
inName
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
_err
=
CreateWindowFromNib
(
_self
->
ob_itself
,
inName
,
&
outWindow
);
Py_END_ALLOW_THREADS
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
WinObj_New
,
outWindow
);
...
...
@@ -87,11 +85,9 @@ static PyObject *IBNibRefObj_CreateMenuFromNib(IBNibRefObject *_self, PyObject *
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CFStringRefObj_Convert
,
&
inName
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
_err
=
CreateMenuFromNib
(
_self
->
ob_itself
,
inName
,
&
outMenuRef
);
Py_END_ALLOW_THREADS
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
MenuObj_New
,
outMenuRef
);
...
...
@@ -107,11 +103,9 @@ static PyObject *IBNibRefObj_CreateMenuBarFromNib(IBNibRefObject *_self, PyObjec
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CFStringRefObj_Convert
,
&
inName
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
_err
=
CreateMenuBarFromNib
(
_self
->
ob_itself
,
inName
,
&
outMenuBar
);
Py_END_ALLOW_THREADS
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
ResObj_New
,
outMenuBar
);
...
...
@@ -126,10 +120,8 @@ static PyObject *IBNibRefObj_SetMenuBarFromNib(IBNibRefObject *_self, PyObject *
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CFStringRefObj_Convert
,
&
inName
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
_err
=
SetMenuBarFromNib
(
_self
->
ob_itself
,
inName
);
Py_END_ALLOW_THREADS
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
...
...
@@ -194,10 +186,8 @@ static PyObject *IBCarbon_CreateNibReference(PyObject *_self, PyObject *_args)
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
CFStringRefObj_Convert
,
&
inNibName
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
_err
=
CreateNibReference
(
inNibName
,
&
outNibRef
);
Py_END_ALLOW_THREADS
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
IBNibRefObj_New
,
outNibRef
);
...
...
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