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
fdc3fb0f
Commit
fdc3fb0f
authored
Apr 29, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved rename2's macros relevant to this module here and added comment
about the file's obsolescence.
parent
acc3eb77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
Include/cgensupport.h
Include/cgensupport.h
+15
-0
Modules/cgensupport.h
Modules/cgensupport.h
+15
-0
No files found.
Include/cgensupport.h
View file @
fdc3fb0f
...
...
@@ -37,6 +37,8 @@ PERFORMANCE OF THIS SOFTWARE.
/* Definitions used by cgen output */
/* XXX This file is obsolete. It is *only* used by glmodule.c. */
typedef
char
*
string
;
#define mknewlongobject(x) PyInt_FromLong(x)
...
...
@@ -44,6 +46,19 @@ typedef char *string;
#define mknewfloatobject(x) PyFloat_FromDouble(x)
#define mknewcharobject(ch) Py_BuildValue("c", ch)
#define getichararg PyArg_GetChar
#define getidoublearray PyArg_GetDoubleArray
#define getifloatarg PyArg_GetFloat
#define getifloatarray PyArg_GetFloatArray
#define getilongarg PyArg_GetLong
#define getilongarray PyArg_GetLongArray
#define getilongarraysize PyArg_GetLongArraySize
#define getiobjectarg PyArg_GetObject
#define getishortarg PyArg_GetShort
#define getishortarray PyArg_GetShortArray
#define getishortarraysize PyArg_GetShortArraySize
#define getistringarg PyArg_GetString
extern
int
PyArg_GetObject
Py_PROTO
((
PyObject
*
args
,
int
nargs
,
int
i
,
PyObject
**
p_a
));
extern
int
PyArg_GetLong
Py_PROTO
((
PyObject
*
args
,
int
nargs
,
...
...
Modules/cgensupport.h
View file @
fdc3fb0f
...
...
@@ -37,6 +37,8 @@ PERFORMANCE OF THIS SOFTWARE.
/* Definitions used by cgen output */
/* XXX This file is obsolete. It is *only* used by glmodule.c. */
typedef
char
*
string
;
#define mknewlongobject(x) PyInt_FromLong(x)
...
...
@@ -44,6 +46,19 @@ typedef char *string;
#define mknewfloatobject(x) PyFloat_FromDouble(x)
#define mknewcharobject(ch) Py_BuildValue("c", ch)
#define getichararg PyArg_GetChar
#define getidoublearray PyArg_GetDoubleArray
#define getifloatarg PyArg_GetFloat
#define getifloatarray PyArg_GetFloatArray
#define getilongarg PyArg_GetLong
#define getilongarray PyArg_GetLongArray
#define getilongarraysize PyArg_GetLongArraySize
#define getiobjectarg PyArg_GetObject
#define getishortarg PyArg_GetShort
#define getishortarray PyArg_GetShortArray
#define getishortarraysize PyArg_GetShortArraySize
#define getistringarg PyArg_GetString
extern
int
PyArg_GetObject
Py_PROTO
((
PyObject
*
args
,
int
nargs
,
int
i
,
PyObject
**
p_a
));
extern
int
PyArg_GetLong
Py_PROTO
((
PyObject
*
args
,
int
nargs
,
...
...
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