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".
This commit is contained in:
Guido van Rossum 1995-01-12 11:45:45 +00:00
parent 94390ec2a6
commit caa6380886
48 changed files with 982 additions and 579 deletions

View file

@ -39,24 +39,24 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- the name of the object for which it was compiled. */
typedef struct {
OB_HEAD
stringobject *co_code; /* instruction opcodes */
object *co_consts; /* list of immutable constant objects */
object *co_names; /* list of stringobjects */
object *co_filename; /* string */
object *co_name; /* string */
} codeobject;
PyObject_HEAD
PyStringObject *co_code; /* instruction opcodes */
PyObject *co_consts; /* list of immutable constant objects */
PyObject *co_names; /* list of stringobjects */
PyObject *co_filename; /* string */
PyObject *co_name; /* string */
} PyCodeObject;
extern DL_IMPORT typeobject Codetype;
extern DL_IMPORT PyTypeObject PyCode_Type;
#define is_codeobject(op) ((op)->ob_type == &Codetype)
#define PyCode_Check(op) ((op)->ob_type == &PyCode_Type)
/* Public interface */
struct _node; /* Declare the existence of this type */
codeobject *compile PROTO((struct _node *, char *));
codeobject *newcodeobject
PROTO((object *, object *, object *, object *, object *));
PyCodeObject *PyNode_Compile Py_PROTO((struct _node *, char *));
PyCodeObject *PyCode_New
Py_PROTO((PyObject *, PyObject *, PyObject *, PyObject *, PyObject *));
#ifdef __cplusplus
}