1 | // This file was generated automatically through bootstrap.py. |
2 | // Do not edit this file directly. |
3 | const char* = |
4 | "/*\n" |
5 | " * This Source Code Form is subject to the terms of the Mozilla Public\n" |
6 | " * License, v. 2.0. If a copy of the MPL was not distributed with this\n" |
7 | " * file, You can obtain one at http://mozilla.org/MPL/2.0/.\n" |
8 | " *\n" |
9 | " * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.\n" |
10 | " */\n" |
11 | "#include <stdint.h>\n" |
12 | "typedef void *(*malloc_function_ptr)(size_t);\n" |
13 | "typedef void (*free_function_ptr)(void*);\n" |
14 | "typedef struct {\n" |
15 | " unsigned char day;\n" |
16 | " unsigned char month;\n" |
17 | " int year;\n" |
18 | "} cudf_data_date;\n" |
19 | "typedef struct {\n" |
20 | " unsigned int ms;\n" |
21 | " unsigned char seconds;\n" |
22 | " unsigned char minutes;\n" |
23 | " unsigned char hours;\n" |
24 | "} cudf_data_time;\n" |
25 | "typedef struct {\n" |
26 | " cudf_data_date date;\n" |
27 | " cudf_data_time time;\n" |
28 | "} cudf_data_timestamp;\n" |
29 | "typedef struct {\n" |
30 | " size_t size;\n" |
31 | " void* data;\n" |
32 | "} cudf_data_blob;\n" |
33 | "#define DEFAULT_STRUCT_DEFINITION(type, typename) \\\n" |
34 | " struct cudf_data_struct_##typename \\\n" |
35 | " { \\\n" |
36 | " type *data; \\\n" |
37 | " size_t count; \\\n" |
38 | " type null_value; \\\n" |
39 | " double scale; \\\n" |
40 | " int (*is_null)(type value); \\\n" |
41 | " void (*initialize)(void *self, size_t count); \\\n" |
42 | " void *bat; \\\n" |
43 | " }\n" |
44 | "DEFAULT_STRUCT_DEFINITION(int8_t, bit);\n" |
45 | "DEFAULT_STRUCT_DEFINITION(int8_t, bte);\n" |
46 | "DEFAULT_STRUCT_DEFINITION(int16_t, sht);\n" |
47 | "DEFAULT_STRUCT_DEFINITION(int, int);\n" |
48 | "DEFAULT_STRUCT_DEFINITION(int64_t, lng);\n" |
49 | "DEFAULT_STRUCT_DEFINITION(float, flt);\n" |
50 | "DEFAULT_STRUCT_DEFINITION(double, dbl);\n" |
51 | "DEFAULT_STRUCT_DEFINITION(char*, str);\n" |
52 | "DEFAULT_STRUCT_DEFINITION(cudf_data_date, date);\n" |
53 | "DEFAULT_STRUCT_DEFINITION(cudf_data_time, time);\n" |
54 | "DEFAULT_STRUCT_DEFINITION(cudf_data_timestamp, timestamp);\n" |
55 | "DEFAULT_STRUCT_DEFINITION(cudf_data_blob, blob);\n" |
56 | "DEFAULT_STRUCT_DEFINITION(size_t, oid);\n" |
57 | ; |
58 | |