* included in the distribution.
*
* $RCSfile: storage.c,v $
- * $Revision: 1.22 $
- * $Date: 1999/12/06 16:25:25 $
+ * $Revision: 1.23 $
+ * $Date: 1999/12/06 16:47:07 $
* ------------------------------------------------------------------------*/
#include "prelude.h"
register Cell fstc = fst(c);
return isTag(fstc) ? fstc : AP;
}
- if (c<TUPMIN) return c;
+ if (c<OFFMIN) return c;
+#if TREX
+ if (isExt(c)) return EXT;
+#endif
if (c>=INTMIN) return INTCELL;
if (c>=NAMEMIN){if (c>=CLASSMIN) {if (c>=CHARMIN) return CHARCELL;
* included in the distribution.
*
* $RCSfile: storage.h,v $
- * $Revision: 1.17 $
- * $Date: 1999/12/06 16:25:27 $
+ * $Revision: 1.18 $
+ * $Date: 1999/12/06 16:47:09 $
* ------------------------------------------------------------------------*/
/* --------------------------------------------------------------------------
* ------------------------------------------------------------------------*/
#define SPECMIN 101
-#define isSpec(c) (SPECMIN<=(c) && (c)<TUPMIN)/* Special cell values */
+
+#if TREX
+#define isSpec(c) (SPECMIN<=(c) && (c)<EXTMIN)/* Special cell values */
+#else
+#define isSpec(c) (SPECMIN<=(c) && (c)<OFFMIN)
+#endif
#define NONE 101 /* Dummy stub */
#define STAR 102 /* Representing the kind of types */
* Tuple data/type constructors:
* ------------------------------------------------------------------------*/
-#define TUPMIN 201
-
-#if 0
-#error xyzzy
-#if TREX
-#define isTuple(c) (TUPMIN<=(c) && (c)<EXTMIN)
-#else
-#define isTuple(c) (TUPMIN<=(c) && (c)<OFFMIN)
-#endif
-#define mkTuple(n) (TUPMIN+(n))
-#define tupleOf(n) ((Int)((n)-TUPMIN))
-#endif
-
extern Text ghcTupleText Args((Tycon));
#if TREX
-#define EXTMIN (TUPMIN+NUM_TUPLES)
+#define EXTMIN 201
#define isExt(c) (EXTMIN<=(c) && (c)<OFFMIN)
#define extText(e) tabExt[(e)-EXTMIN]
#define extField(c) arg(fun(c))
#if TREX
#define OFFMIN (EXTMIN+NUM_EXT)
#else
-#define OFFMIN (TUPMIN+NUM_TUPLES)
+#define OFFMIN 201
#endif
#define isOffset(c) (OFFMIN<=(c) && (c)<MODMIN)
#define offsetOf(c) ((c)-OFFMIN)