Changeset: 9534324d7e0a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9534324d7e0a
Modified Files:
clients/Tests/exports.stable.out
sql/backends/monet5/UDF/capi/cheader.h
Branch: jitudf
Log Message:
Use int8_t for bit/bte and approve exports.
diffs (48 lines):
diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -527,6 +527,7 @@ char *mapi_get_host(Mapi mid);
char *mapi_get_lang(Mapi mid);
int64_t mapi_get_last_id(MapiHdl hdl);
int mapi_get_len(MapiHdl hdl, int fnr);
+int64_t mapi_get_maloptimizertime(MapiHdl hdl);
char *mapi_get_mapi_version(Mapi mid);
char *mapi_get_monet_version(Mapi mid);
char *mapi_get_motd(Mapi mid);
diff --git a/sql/backends/monet5/UDF/capi/cheader.h
b/sql/backends/monet5/UDF/capi/cheader.h
--- a/sql/backends/monet5/UDF/capi/cheader.h
+++ b/sql/backends/monet5/UDF/capi/cheader.h
@@ -38,16 +38,25 @@ typedef struct {
void *bat;
\
}
-DEFAULT_STRUCT_DEFINITION(signed char, bit);
-DEFAULT_STRUCT_DEFINITION(signed char, bte);
-DEFAULT_STRUCT_DEFINITION(short, sht);
+typedef int8_t bit;
+typedef int8_t bte;
+typedef int16_t sht;
+typedef int64_t lng;
+typedef size_t oid;
+typedef float flt;
+typedef double dbl;
+typedef char *str;
+
+DEFAULT_STRUCT_DEFINITION(bit, bit);
+DEFAULT_STRUCT_DEFINITION(bte, bte);
+DEFAULT_STRUCT_DEFINITION(sht, sht);
DEFAULT_STRUCT_DEFINITION(int, int);
-DEFAULT_STRUCT_DEFINITION(int64_t, lng);
-DEFAULT_STRUCT_DEFINITION(float, flt);
-DEFAULT_STRUCT_DEFINITION(double, dbl);
-DEFAULT_STRUCT_DEFINITION(char *, str);
+DEFAULT_STRUCT_DEFINITION(lng, lng);
+DEFAULT_STRUCT_DEFINITION(flt, flt);
+DEFAULT_STRUCT_DEFINITION(dbl, dbl);
+DEFAULT_STRUCT_DEFINITION(str, str);
DEFAULT_STRUCT_DEFINITION(cudf_data_date, date);
DEFAULT_STRUCT_DEFINITION(cudf_data_time, time);
DEFAULT_STRUCT_DEFINITION(cudf_data_timestamp, timestamp);
DEFAULT_STRUCT_DEFINITION(cudf_data_blob, blob);
-DEFAULT_STRUCT_DEFINITION(size_t, oid);
+DEFAULT_STRUCT_DEFINITION(oid, oid);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list