diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-09 00:20:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-09 00:20:36 (GMT) |
commit | ea9cb5aebf38741871ad4f28971dcd23ddd77ad2 (patch) | |
tree | 0e891c50f3406cf846cfdad4757464dd087e6592 /Include/cobject.h | |
parent | 5eb6d4e3bf094c33ae66432eeae3668e220dd28d (diff) | |
download | cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.zip cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.gz cpython-ea9cb5aebf38741871ad4f28971dcd23ddd77ad2.tar.bz2 |
ANSI-fication and Py_PROTO extermination.
Diffstat (limited to 'Include/cobject.h')
-rw-r--r-- | Include/cobject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/cobject.h b/Include/cobject.h index 49c5450..15850d9 100644 --- a/Include/cobject.h +++ b/Include/cobject.h @@ -1,9 +1,3 @@ -#ifndef Py_COBJECT_H -#define Py_COBJECT_H -#ifdef __cplusplus -extern "C" { -#endif - /*********************************************************** Copyright (c) 2000, BeOpen.com. Copyright (c) 1995-2000, Corporation for National Research Initiatives. @@ -23,6 +17,12 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#ifndef Py_COBJECT_H +#define Py_COBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + extern DL_IMPORT(PyTypeObject) PyCObject_Type; #define PyCObject_Check(op) ((op)->ob_type == &PyCObject_Type) @@ -34,7 +34,7 @@ extern DL_IMPORT(PyTypeObject) PyCObject_Type; */ extern DL_IMPORT(PyObject *) -PyCObject_FromVoidPtr Py_PROTO((void *cobj, void (*destruct)(void*))); +PyCObject_FromVoidPtr(void *cobj, void (*destruct)(void*)); /* Create a PyCObject from a pointer to a C object, a description object, @@ -43,20 +43,20 @@ PyCObject_FromVoidPtr Py_PROTO((void *cobj, void (*destruct)(void*))); the PyCObject is destroyed. */ extern DL_IMPORT(PyObject *) -PyCObject_FromVoidPtrAndDesc Py_PROTO((void *cobj, void *desc, - void (*destruct)(void*,void*))); +PyCObject_FromVoidPtrAndDesc(void *cobj, void *desc, + void (*destruct)(void*,void*)); /* Retrieve a pointer to a C object from a PyCObject. */ extern DL_IMPORT(void *) -PyCObject_AsVoidPtr Py_PROTO((PyObject *)); +PyCObject_AsVoidPtr(PyObject *); /* Retrieve a pointer to a description object from a PyCObject. */ extern DL_IMPORT(void *) -PyCObject_GetDesc Py_PROTO((PyObject *)); +PyCObject_GetDesc(PyObject *); /* Import a pointer to a C object from a module using a PyCObject. */ extern DL_IMPORT(void *) -PyCObject_Import Py_PROTO((char *module_name, char *cobject_name)); +PyCObject_Import(char *module_name, char *cobject_name); #ifdef __cplusplus } |