Changeset: a1e41b1c175b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a1e41b1c175b
Modified Files:
monetdb5/mal/mal_type.h
Branch: headless
Log Message:
Remove useless stuff
diffs (40 lines):
diff --git a/monetdb5/mal/mal_type.h b/monetdb5/mal/mal_type.h
--- a/monetdb5/mal/mal_type.h
+++ b/monetdb5/mal/mal_type.h
@@ -23,23 +23,15 @@
/* #define DEBUG_MAL_TYPE 1 */
-/* typedef unsigned short MALtype; assert we have less then 256 types */
+/* typedef unsigned short MALtype; assert we have less then 256 types
+ * The 'col' property is set for column types.
+ * The 'idx' is set for 'any_N' types.
+*/
typedef struct {
unsigned short type:8, col:1, idx:5;
} MALtype;
-/*
- * Within the MAL layer types are encoded in 16-bit integers using
- * bit stuffing to save space in the symbol table.
- * The integer contains the following fields:
- * anyColIndex (bit 13-10), colType (bit 9) and Type(8-0)
-*/
-#define newColType(T) T.col=1
-#define getColType(X) X.type
-#define newTypeIdx(T,I) T.Idx = I
-#define getTypeIdx(T) T.Idx
-/* #define isaColType(X) X.col*/
-/* #define isaTypeVar(X) X.type == TYPE_any*/
+#define CMPMALtype(X,Y) (X.type == Y.type && X.col == Y.col && X.idx == Y.idx)
/*
* The symbol/instruction kinds are introduced here instead of reusing the
defines
@@ -78,7 +70,6 @@
mal_export MALtype getMALtype(str nme, int len, MALtype deftpe);
mal_export MALtype reverseBatType(MALtype v);
mal_export MALtype malAnyBatType(MALtype t1, MALtype t2);
-mal_export int getGDKtype(MALtype tpe);
mal_export int isAmbiguousType(MALtype type);
#endif /* MAL_TYPE_H */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list