Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r280:5be54701cb63
Date: 2013-06-25 16:52 +0200
http://bitbucket.org/pypy/stmgc/changeset/5be54701cb63/

Log:    Fix Du_Types[]

diff --git a/duhton/duhton.h b/duhton/duhton.h
--- a/duhton/duhton.h
+++ b/duhton/duhton.h
@@ -38,6 +38,7 @@
     len_fn dt_length;
 } DuType;
 
+/* keep this list in sync with object.c's Du_Types[] */
 #define DUTYPE_INVALID       0
 #define DUTYPE_NONE          1
 #define DUTYPE_INT           2
@@ -57,6 +58,7 @@
 extern DuType DuList_Type;
 extern DuType DuTuple_Type;
 extern DuType DuFrame_Type;
+extern DuType DuFrameNode_Type;
 extern DuType DuContainer_Type;
 
 extern DuType *Du_Types[_DUTYPE_TOTAL];
diff --git a/duhton/object.c b/duhton/object.c
--- a/duhton/object.c
+++ b/duhton/object.c
@@ -3,14 +3,16 @@
 
 
 DuType *Du_Types[_DUTYPE_TOTAL] = {
-    NULL,
-    &DuNone_Type,
-    &DuInt_Type,
-    &DuSymbol_Type,
-    &DuCons_Type,
-    &DuList_Type,
-    &DuFrame_Type,
-    &DuContainer_Type,
+    NULL,                  // DUTYPE_INVALID       0
+    &DuNone_Type,          // DUTYPE_NONE          1
+    &DuInt_Type,           // DUTYPE_INT           2
+    &DuSymbol_Type,        // DUTYPE_SYMBOL        3
+    &DuCons_Type,          // DUTYPE_CONS          4
+    &DuList_Type,          // DUTYPE_LIST          5
+    &DuTuple_Type,         // DUTYPE_TUPLE         6
+    &DuFrame_Type,         // DUTYPE_FRAME         7
+    &DuFrameNode_Type,     // DUTYPE_FRAMENODE     8
+    &DuContainer_Type,     // DUTYPE_CONTAINER     9
 };
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to