Changeset: d96a77739818 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d96a77739818 Added Files: sql/backends/monet5/UDF/capi/cheader.h Branch: jitudf Log Message:
Missing file. diffs (46 lines): diff --git a/sql/backends/monet5/UDF/capi/cheader.h b/sql/backends/monet5/UDF/capi/cheader.h new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/UDF/capi/cheader.h @@ -0,0 +1,41 @@ + +typedef void* (*malloc_function_ptr)(size_t); + +typedef struct { + unsigned char day; + unsigned char month; + int year; +} cudf_data_date; + +typedef struct { + unsigned int ms; + unsigned char seconds; + unsigned char minutes; + unsigned char hours; +} cudf_data_time; + +typedef struct { + cudf_data_date date; + cudf_data_time time; +} cudf_data_timestamp; + +#define DEFAULT_STRUCT_DEFINITION(type, typename) \ +struct cudf_data_struct_##typename { \ + type* data; \ + size_t count; \ + type null_value; \ + int (*is_null)(type value); \ + void (*initialize)(void* self, size_t count); \ +} + +DEFAULT_STRUCT_DEFINITION(signed char, bte); +DEFAULT_STRUCT_DEFINITION(short, sht); +DEFAULT_STRUCT_DEFINITION(int, int); +DEFAULT_STRUCT_DEFINITION(long long, lng); +DEFAULT_STRUCT_DEFINITION(float, flt); +DEFAULT_STRUCT_DEFINITION(double, dbl); +DEFAULT_STRUCT_DEFINITION(char*, str); +DEFAULT_STRUCT_DEFINITION(cudf_data_date, date); +DEFAULT_STRUCT_DEFINITION(cudf_data_time, time); +DEFAULT_STRUCT_DEFINITION(cudf_data_timestamp, timestamp); + _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list