summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-12 11:45:45 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-12 11:45:45 (GMT)
commitcaa63808861d4e92d4dc1005fc01de0f2e4a8fd0 (patch)
tree3771531169ab510aca9b69cdc4d9de2b5c8810c4 /Include/compile.h
parent94390ec2a6ea5acbea9dead528ce067c396a0301 (diff)
downloadcpython-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 'Include/compile.h')
-rw-r--r--Include/compile.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/compile.h b/Include/compile.h
index d2b6ed5..4513d28 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -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
}