Changeset: 44f2d6bec5c2 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/44f2d6bec5c2 Modified Files: gdk/gdk.h monetdb_config.h.in Branch: default Log Message:
Comments. diffs (31 lines): diff --git a/gdk/gdk.h b/gdk/gdk.h --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -269,6 +269,14 @@ gdk_export size_t blobsize(size_t nitems * integers */ #endif +/* The types `oid`, `BUN` and `var_t` are all defined as `size_t`, but + * they serve different purposes. `oid` is the *logical* row number of + * a BAT; `BUN` is the *physical* row number of a BAT and is therefore + * also used for the total number of rows and the potential capacity of + * a BAT; `var_t` is an *offset* into the var-size heap (vheap). The + * difference between the *logical* and *physical* row number is the + * value of the head sequence base (`hseqbase`) of the BAT. */ + typedef oid var_t; /* type used for heap index of var-sized BAT */ #define SIZEOF_VAR_T SIZEOF_OID #define VARFMT OIDFMT diff --git a/monetdb_config.h.in b/monetdb_config.h.in --- a/monetdb_config.h.in +++ b/monetdb_config.h.in @@ -19,7 +19,8 @@ #error Versions below Visual Studio 2015 are no longer supported #endif -/* Prevent pollution through excessive inclusion of include files by Windows.h. */ +/* Prevent pollution through excessive inclusion of include files by + * Windows.h. */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 #endif _______________________________________________ checkin-list mailing list -- [email protected] To unsubscribe send an email to [email protected]
