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
916888da
Commit
916888da
authored
Jan 05, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whoops, it's late -- generated output now matches what's checked in...
parent
1534104d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
Mac/Modules/app/_Appmodule.c
Mac/Modules/app/_Appmodule.c
+24
-24
Mac/Modules/app/appsupport.py
Mac/Modules/app/appsupport.py
+1
-1
No files found.
Mac/Modules/app/_Appmodule.c
View file @
916888da
...
@@ -33,14 +33,14 @@ static PyObject *App_Error;
...
@@ -33,14 +33,14 @@ static PyObject *App_Error;
PyTypeObject
ThemeDrawingState_Type
;
PyTypeObject
ThemeDrawingState_Type
;
#define ThemeDrawingState_Check(x) ((x)->ob_type == &ThemeDrawingState_Type)
#define ThemeDrawingState
Obj
_Check(x) ((x)->ob_type == &ThemeDrawingState_Type)
typedef
struct
ThemeDrawingStateObject
{
typedef
struct
ThemeDrawingStateObject
{
PyObject_HEAD
PyObject_HEAD
ThemeDrawingState
ob_itself
;
ThemeDrawingState
ob_itself
;
}
ThemeDrawingStateObject
;
}
ThemeDrawingStateObject
;
PyObject
*
ThemeDrawingState_New
(
ThemeDrawingState
itself
)
PyObject
*
ThemeDrawingState
Obj
_New
(
ThemeDrawingState
itself
)
{
{
ThemeDrawingStateObject
*
it
;
ThemeDrawingStateObject
*
it
;
it
=
PyObject_NEW
(
ThemeDrawingStateObject
,
&
ThemeDrawingState_Type
);
it
=
PyObject_NEW
(
ThemeDrawingStateObject
,
&
ThemeDrawingState_Type
);
...
@@ -48,9 +48,9 @@ PyObject *ThemeDrawingState_New(ThemeDrawingState itself)
...
@@ -48,9 +48,9 @@ PyObject *ThemeDrawingState_New(ThemeDrawingState itself)
it
->
ob_itself
=
itself
;
it
->
ob_itself
=
itself
;
return
(
PyObject
*
)
it
;
return
(
PyObject
*
)
it
;
}
}
int
ThemeDrawingState_Convert
(
PyObject
*
v
,
ThemeDrawingState
*
p_itself
)
int
ThemeDrawingState
Obj
_Convert
(
PyObject
*
v
,
ThemeDrawingState
*
p_itself
)
{
{
if
(
!
ThemeDrawingState_Check
(
v
))
if
(
!
ThemeDrawingState
Obj
_Check
(
v
))
{
{
PyErr_SetString
(
PyExc_TypeError
,
"ThemeDrawingState required"
);
PyErr_SetString
(
PyExc_TypeError
,
"ThemeDrawingState required"
);
return
0
;
return
0
;
...
@@ -59,13 +59,13 @@ int ThemeDrawingState_Convert(PyObject *v, ThemeDrawingState *p_itself)
...
@@ -59,13 +59,13 @@ int ThemeDrawingState_Convert(PyObject *v, ThemeDrawingState *p_itself)
return
1
;
return
1
;
}
}
static
void
ThemeDrawingState_dealloc
(
ThemeDrawingStateObject
*
self
)
static
void
ThemeDrawingState
Obj
_dealloc
(
ThemeDrawingStateObject
*
self
)
{
{
/* Cleanup of self->ob_itself goes here */
/* Cleanup of self->ob_itself goes here */
PyMem_DEL
(
self
);
PyMem_DEL
(
self
);
}
}
static
PyObject
*
ThemeDrawingState_SetThemeDrawingState
(
ThemeDrawingStateObject
*
_self
,
PyObject
*
_args
)
static
PyObject
*
ThemeDrawingState
Obj
_SetThemeDrawingState
(
ThemeDrawingStateObject
*
_self
,
PyObject
*
_args
)
{
{
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
OSStatus
_rv
;
OSStatus
_rv
;
...
@@ -80,7 +80,7 @@ static PyObject *ThemeDrawingState_SetThemeDrawingState(ThemeDrawingStateObject
...
@@ -80,7 +80,7 @@ static PyObject *ThemeDrawingState_SetThemeDrawingState(ThemeDrawingStateObject
return
_res
;
return
_res
;
}
}
static
PyObject
*
ThemeDrawingState_DisposeThemeDrawingState
(
ThemeDrawingStateObject
*
_self
,
PyObject
*
_args
)
static
PyObject
*
ThemeDrawingState
Obj
_DisposeThemeDrawingState
(
ThemeDrawingStateObject
*
_self
,
PyObject
*
_args
)
{
{
PyObject
*
_res
=
NULL
;
PyObject
*
_res
=
NULL
;
OSStatus
_rv
;
OSStatus
_rv
;
...
@@ -92,28 +92,28 @@ static PyObject *ThemeDrawingState_DisposeThemeDrawingState(ThemeDrawingStateObj
...
@@ -92,28 +92,28 @@ static PyObject *ThemeDrawingState_DisposeThemeDrawingState(ThemeDrawingStateObj
return
_res
;
return
_res
;
}
}
static
PyMethodDef
ThemeDrawingState_methods
[]
=
{
static
PyMethodDef
ThemeDrawingState
Obj
_methods
[]
=
{
{
"SetThemeDrawingState"
,
(
PyCFunction
)
ThemeDrawingState_SetThemeDrawingState
,
1
,
{
"SetThemeDrawingState"
,
(
PyCFunction
)
ThemeDrawingState
Obj
_SetThemeDrawingState
,
1
,
"(Boolean inDisposeNow) -> (OSStatus _rv)"
},
"(Boolean inDisposeNow) -> (OSStatus _rv)"
},
{
"DisposeThemeDrawingState"
,
(
PyCFunction
)
ThemeDrawingState_DisposeThemeDrawingState
,
1
,
{
"DisposeThemeDrawingState"
,
(
PyCFunction
)
ThemeDrawingState
Obj
_DisposeThemeDrawingState
,
1
,
"() -> (OSStatus _rv)"
},
"() -> (OSStatus _rv)"
},
{
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
0
}
};
};
PyMethodChain
ThemeDrawingState
_chain
=
{
ThemeDrawingState
_methods
,
NULL
};
PyMethodChain
ThemeDrawingState
Obj_chain
=
{
ThemeDrawingStateObj
_methods
,
NULL
};
static
PyObject
*
ThemeDrawingState_getattr
(
ThemeDrawingStateObject
*
self
,
char
*
name
)
static
PyObject
*
ThemeDrawingState
Obj
_getattr
(
ThemeDrawingStateObject
*
self
,
char
*
name
)
{
{
return
Py_FindMethodInChain
(
&
ThemeDrawingState_chain
,
(
PyObject
*
)
self
,
name
);
return
Py_FindMethodInChain
(
&
ThemeDrawingState
Obj
_chain
,
(
PyObject
*
)
self
,
name
);
}
}
#define ThemeDrawingState_setattr NULL
#define ThemeDrawingState
Obj
_setattr NULL
#define ThemeDrawingState_compare NULL
#define ThemeDrawingState
Obj
_compare NULL
#define ThemeDrawingState_repr NULL
#define ThemeDrawingState
Obj
_repr NULL
#define ThemeDrawingState_hash NULL
#define ThemeDrawingState
Obj
_hash NULL
PyTypeObject
ThemeDrawingState_Type
=
{
PyTypeObject
ThemeDrawingState_Type
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
...
@@ -122,16 +122,16 @@ PyTypeObject ThemeDrawingState_Type = {
...
@@ -122,16 +122,16 @@ PyTypeObject ThemeDrawingState_Type = {
sizeof
(
ThemeDrawingStateObject
),
/*tp_basicsize*/
sizeof
(
ThemeDrawingStateObject
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
0
,
/*tp_itemsize*/
/* methods */
/* methods */
(
destructor
)
ThemeDrawingState_dealloc
,
/*tp_dealloc*/
(
destructor
)
ThemeDrawingState
Obj
_dealloc
,
/*tp_dealloc*/
0
,
/*tp_print*/
0
,
/*tp_print*/
(
getattrfunc
)
ThemeDrawingState_getattr
,
/*tp_getattr*/
(
getattrfunc
)
ThemeDrawingState
Obj
_getattr
,
/*tp_getattr*/
(
setattrfunc
)
ThemeDrawingState_setattr
,
/*tp_setattr*/
(
setattrfunc
)
ThemeDrawingState
Obj
_setattr
,
/*tp_setattr*/
(
cmpfunc
)
ThemeDrawingState_compare
,
/*tp_compare*/
(
cmpfunc
)
ThemeDrawingState
Obj
_compare
,
/*tp_compare*/
(
reprfunc
)
ThemeDrawingState_repr
,
/*tp_repr*/
(
reprfunc
)
ThemeDrawingState
Obj
_repr
,
/*tp_repr*/
(
PyNumberMethods
*
)
0
,
/* tp_as_number */
(
PyNumberMethods
*
)
0
,
/* tp_as_number */
(
PySequenceMethods
*
)
0
,
/* tp_as_sequence */
(
PySequenceMethods
*
)
0
,
/* tp_as_sequence */
(
PyMappingMethods
*
)
0
,
/* tp_as_mapping */
(
PyMappingMethods
*
)
0
,
/* tp_as_mapping */
(
hashfunc
)
ThemeDrawingState_hash
,
/*tp_hash*/
(
hashfunc
)
ThemeDrawingState
Obj
_hash
,
/*tp_hash*/
};
};
/* --------------- End object type ThemeDrawingState ---------------- */
/* --------------- End object type ThemeDrawingState ---------------- */
...
@@ -1151,7 +1151,7 @@ static PyObject *App_GetThemeDrawingState(PyObject *_self, PyObject *_args)
...
@@ -1151,7 +1151,7 @@ static PyObject *App_GetThemeDrawingState(PyObject *_self, PyObject *_args)
_err
=
GetThemeDrawingState
(
&
outState
);
_err
=
GetThemeDrawingState
(
&
outState
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
_res
=
Py_BuildValue
(
"O&"
,
ThemeDrawingState_New
,
outState
);
ThemeDrawingState
Obj
_New
,
outState
);
return
_res
;
return
_res
;
}
}
...
...
Mac/Modules/app/appsupport.py
View file @
916888da
...
@@ -14,7 +14,7 @@ KIND = '' # Usually 'Ptr' or 'Handle'
...
@@ -14,7 +14,7 @@ KIND = '' # Usually 'Ptr' or 'Handle'
# The following is *usually* unchanged but may still require tuning
# The following is *usually* unchanged but may still require tuning
MODPREFIX
=
'App'
# The prefix for module-wide routines
MODPREFIX
=
'App'
# The prefix for module-wide routines
OBJECTTYPE
=
OBJECTNAME
+
KIND
# The C type used to represent them
OBJECTTYPE
=
OBJECTNAME
+
KIND
# The C type used to represent them
OBJECTPREFIX
=
MODPREFIX
+
'Obj'
# The prefix for object methods
OBJECTPREFIX
=
OBJECTNAME
+
'Obj'
# The prefix for object methods
INPUTFILE
=
string
.
lower
(
MODPREFIX
)
+
'gen.py'
# The file generated by the scanner
INPUTFILE
=
string
.
lower
(
MODPREFIX
)
+
'gen.py'
# The file generated by the scanner
OUTPUTFILE
=
MODNAME
+
"module.c"
# The file generated by this program
OUTPUTFILE
=
MODNAME
+
"module.c"
# The file generated by this program
...
...
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