summaryrefslogtreecommitdiffstats
path: root/Tools/modulator/Templates/object_head
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-05-16 13:47:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-05-16 13:47:03 (GMT)
commitebed75116fcd1ebc4737c4ba77b9b74c8b032742 (patch)
treeee10da97ba30b2d0740ce01eef71aa8d74c1b19e /Tools/modulator/Templates/object_head
parent52e02998ef9d0c5643cf037f2db3cc5cf7c8c451 (diff)
downloadcpython-ebed75116fcd1ebc4737c4ba77b9b74c8b032742.zip
cpython-ebed75116fcd1ebc4737c4ba77b9b74c8b032742.tar.gz
cpython-ebed75116fcd1ebc4737c4ba77b9b74c8b032742.tar.bz2
Templates converted to new naming conventions (thanks to Chak Tan)
Diffstat (limited to 'Tools/modulator/Templates/object_head')
-rw-r--r--Tools/modulator/Templates/object_head7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/modulator/Templates/object_head b/Tools/modulator/Templates/object_head
index bf69a51..9e6fa5e 100644
--- a/Tools/modulator/Templates/object_head
+++ b/Tools/modulator/Templates/object_head
@@ -1,12 +1,13 @@
+
/* Declarations for objects of type $name$ */
typedef struct {
- OB_HEAD
+ PyObject_HEAD
/* XXXX Add your own stuff here */
} $abbrev$object;
-staticforward typeobject $Abbrev$type;
+staticforward PyTypeObject $Abbrev$type;
+
-#define is_$abbrev$object(v) ((v)->ob_type == &$Abbrev$type)
/* ---------------------------------------------------------------- */