Changeset: 973f9c5e5306 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=973f9c5e5306 Modified Files: gdk/gdk.h Branch: viewless Log Message:
Define a viewless macro that checks if a bat is a view or not diffs (11 lines): diff --git a/gdk/gdk.h b/gdk/gdk.h --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -2646,6 +2646,7 @@ gdk_export void ALIGNsetT(BAT *b1, BAT * ((x)->theap.parentid || \ ((x)->tvheap && (x)->tvheap->parentid != (x)->batCacheid))) +#define viewless(x) (!VIEWtparent(x) && !VIEWvtparent(x)) #define VIEWtparent(x) ((x)->theap.parentid) #define VIEWvtparent(x) ((x)->tvheap == NULL || (x)->tvheap->parentid == (x)->batCacheid ? 0 : (x)->tvheap->parentid) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list