diff options
author | Guido van Rossum <guido@python.org> | 1995-01-12 11:45:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-12 11:45:45 (GMT) |
commit | caa63808861d4e92d4dc1005fc01de0f2e4a8fd0 (patch) | |
tree | 3771531169ab510aca9b69cdc4d9de2b5c8810c4 /Modules | |
parent | 94390ec2a6ea5acbea9dead528ce067c396a0301 (diff) | |
download | cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.zip cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.tar.gz cpython-caa63808861d4e92d4dc1005fc01de0f2e4a8fd0.tar.bz2 |
The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names. Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cgensupport.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Modules/cgensupport.h b/Modules/cgensupport.h index fe02da2..bb7cbbc 100644 --- a/Modules/cgensupport.h +++ b/Modules/cgensupport.h @@ -32,16 +32,16 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. typedef char *string; -#define mknewlongobject(x) newintobject(x) -#define mknewshortobject(x) newintobject((long)x) -#define mknewfloatobject(x) newfloatobject(x) -#define mknewcharobject(ch) mkvalue("c", ch) - -extern int getiobjectarg PROTO((object *args, int nargs, int i, object **p_a)); -extern int getilongarg PROTO((object *args, int nargs, int i, long *p_a)); -extern int getishortarg PROTO((object *args, int nargs, int i, short *p_a)); -extern int getifloatarg PROTO((object *args, int nargs, int i, float *p_a)); -extern int getistringarg PROTO((object *args, int nargs, int i, string *p_a)); +#define mknewlongobject(x) PyInt_FromLong(x) +#define mknewshortobject(x) PyInt_FromLong((long)x) +#define mknewfloatobject(x) PyFloat_FromDouble(x) +#define mknewcharobject(ch) Py_BuildValue("c", ch) + +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, int i, long *p_a)); +extern int PyArg_GetShort Py_PROTO((PyObject *args, int nargs, int i, short *p_a)); +extern int PyArg_GetFloat Py_PROTO((PyObject *args, int nargs, int i, float *p_a)); +extern int PyArg_GetString Py_PROTO((PyObject *args, int nargs, int i, string *p_a)); #ifdef __cplusplus } |