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
1ca65c07
Commit
1ca65c07
authored
Jan 02, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rectified copy/paste oversight in comment
parent
ca3cff30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Mac/Modules/menu/_Menumodule.c
Mac/Modules/menu/_Menumodule.c
+2
-1
Mac/Modules/menu/menusupport.py
Mac/Modules/menu/menusupport.py
+2
-1
No files found.
Mac/Modules/menu/_Menumodule.c
View file @
1ca65c07
...
...
@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
/* Alternative version of
ResObj_New, which returns None for null
argument */
/* Alternative version of
MenuObj_New, which returns None for NULL
argument */
PyObject
*
OptMenuObj_New
(
MenuRef
itself
)
{
if
(
itself
==
NULL
)
{
...
...
@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return
MenuObj_New
(
itself
);
}
/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int
OptMenuObj_Convert
(
PyObject
*
v
,
MenuRef
*
p_itself
)
{
PyObject
*
tmp
;
...
...
Mac/Modules/menu/menusupport.py
View file @
1ca65c07
...
...
@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
/* Alternative version of
ResObj_New, which returns None for null
argument */
/* Alternative version of
MenuObj_New, which returns None for NULL
argument */
PyObject *OptMenuObj_New(MenuRef itself)
{
if (itself == NULL) {
...
...
@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(itself);
}
/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{
PyObject *tmp;
...
...
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