[MLton-commit] r6405
Matthew Fluet
fluet at mlton.org
Thu Feb 14 11:49:04 PST 2008
Add comment and fix tag indices.
----------------------------------------------------------------------
U mlton/trunk/runtime/gc/object.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/gc/object.h
===================================================================
--- mlton/trunk/runtime/gc/object.h 2008-02-14 18:13:42 UTC (rev 6404)
+++ mlton/trunk/runtime/gc/object.h 2008-02-14 19:49:03 UTC (rev 6405)
@@ -13,10 +13,12 @@
* array, normal (fixed size), stack, and weak.
*/
typedef enum {
- ARRAY_TAG,
- NORMAL_TAG,
- STACK_TAG,
- WEAK_TAG,
+ /* The tag indices here must agree with those in declareObjectTypes()
+ * in codegen/c-codegen/c-codegen.fun. */
+ ARRAY_TAG = 0,
+ NORMAL_TAG = 1,
+ STACK_TAG = 2,
+ WEAK_TAG = 3,
} GC_objectTypeTag;
#endif /* (defined (MLTON_GC_INTERNAL_TYPES)) */
More information about the MLton-commit
mailing list