| 1 | /* |
| 2 | Copyright (C) 2016 Brazil |
| 3 | Copyright (C) 2022-2024 Sutou Kouhei <[email protected]> |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #ifdef GRN_EMBEDDED |
| 21 | # define GRN_PLUGIN_FUNCTION_TAG functions_number |
| 22 | #endif |
| 23 | |
| 24 | #include <groonga/plugin.h>cxx . . $ `<file>/include/groonga/plugin.h`/ |
| 25 | |
| 26 | #include <groonga/bulk.hpp>cxx . . $ `<file>/include/groonga/bulk.hpp`/ |
| 27 | |
| 28 | #include <cmath> |
| 29 | |
| 30 | namespacecxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/ { |
| 31 | template <typename TYPE> |
| 32 | stdcxx . . $ std/::enable_if_t<stdcxx . . $ std/::is_integral_v<TYPE> && stdcxx . . $ std/::is_signed_v<TYPE>, TYPE> |
| 33 | classify_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify_raw(71bc1017e6680abc).(grn_ctx *ctx, TYPE number, TYPE interval) |
| 34 | { |
| 35 | return number < 0 ? (((number + 1) / interval) - 1) : ((number / interval)); |
| 36 | } |
| 37 | |
| 38 | template <typename TYPE> |
| 39 | stdcxx . . $ std/::enable_if_t<stdcxx . . $ std/::is_integral_v<TYPE> && !stdcxx . . $ std/::is_signed_v<TYPE>, TYPE> |
| 40 | classify_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify_raw(1e90c72115a588f8).(grn_ctx *ctx, TYPE number, TYPE interval) |
| 41 | { |
| 42 | return number / interval; |
| 43 | } |
| 44 | |
| 45 | template <typename TYPE> |
| 46 | stdcxx . . $ std/::enable_if_t<stdcxx . . $ std/::is_floating_point_v<TYPE>, TYPE> |
| 47 | classify_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify_raw(2b429ce9b5b33f04).(grn_ctx *ctx, TYPE number, TYPE interval) |
| 48 | { |
| 49 | return stdcxx . . $ std/::floor(number / interval); |
| 50 | } |
| 51 | |
| 52 | template <typename TYPE> |
| 53 | void |
| 54 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).(grn_ctx *ctx, |
| 55 | grn_obj *number, |
| 56 | grn_obj *interval, |
| 57 | grn_obj *classed_number) |
| 58 | { |
| 59 | auto number_raw = grncxx . . $ grn/::bulkcxx . . $ grn/bulk/::getcxx . . $ grn/bulk/get(fc0e5dd5d2409f65).<TYPE>(ctx, number, 0); |
| 60 | auto interval_raw = grncxx . . $ grn/::bulkcxx . . $ grn/bulk/::getcxx . . $ grn/bulk/get(fc0e5dd5d2409f65).<TYPE>(ctx, interval, 0); |
| 61 | auto class_raw = classify_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify_raw(2b429ce9b5b33f04).<TYPE>(ctx, number_raw, interval_raw); |
| 62 | auto classed_number_raw = class_raw * interval_raw; |
| 63 | grncxx . . $ grn/::bulkcxx . . $ grn/bulk/::setcxx . . $ grn/bulk/set(ca8f724eff6ab81).<TYPE>(ctx, classed_number, classed_number_raw); |
| 64 | } |
| 65 | |
| 66 | grn_obj * |
| 67 | func_number_classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/func_number_classify(fd082858389c8bb0).(grn_ctx *ctx, |
| 68 | int n_args, |
| 69 | grn_obj **args, |
| 70 | grn_user_data *user_data) |
| 71 | { |
| 72 | #define FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`! "number_classify" |
| 73 | |
| 74 | grn_obj *number; |
| 75 | grn_obj *interval; |
| 76 | grn_obj casted_interval; |
| 77 | grn_obj *classed_number; |
| 78 | |
| 79 | if (n_args != 2) { |
| 80 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!(ctx, |
| 81 | GRN_INVALID_ARGUMENT, |
| 82 | "%s(): wrong number of arguments (%d for 2)", |
| 83 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`!, |
| 84 | n_args); |
| 85 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!; |
| 86 | } |
| 87 | |
| 88 | number = args[0]; |
| 89 | if (!grn_obj_is_number_family_bulk(ctx, number)) { |
| 90 | grn_obj inspected; |
| 91 | |
| 92 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 93 | grn_inspect(ctx, &inspected, number); |
| 94 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!(ctx, |
| 95 | GRN_INVALID_ARGUMENT, |
| 96 | "%s(): the first argument must be a number: %.*s", |
| 97 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`!, |
| 98 | static_cast<int>(GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected)), |
| 99 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 100 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 101 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!; |
| 102 | } |
| 103 | |
| 104 | interval = args[1]; |
| 105 | if (!grn_obj_is_number_family_bulk(ctx, interval)) { |
| 106 | grn_obj inspected; |
| 107 | |
| 108 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 109 | grn_inspect(ctx, &inspected, interval); |
| 110 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!(ctx, |
| 111 | GRN_INVALID_ARGUMENT, |
| 112 | "%s(): the second argument must be a number: %.*s", |
| 113 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`!, |
| 114 | static_cast<int>(GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected)), |
| 115 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 116 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 117 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!; |
| 118 | } |
| 119 | |
| 120 | classed_number = |
| 121 | grn_plugin_proc_alloc(ctx, user_data, number->headercxx . . $ _grn_obj#header..domain, 0); |
| 122 | if (!classed_number) { |
| 123 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!; |
| 124 | } |
| 125 | |
| 126 | GRN_VALUE_FIX_SIZE_INITcxx . . $ `include/groonga/groonga.h:2738:9`!(&casted_interval, 0, number->header.domain); |
| 127 | grn_obj_cast(ctx, interval, &casted_interval, false); |
| 128 | |
| 129 | switch (number->headercxx . . $ _grn_obj#header..domain) { |
| 130 | case GRN_DB_INT8: |
| 131 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<int8_tcxx . . $ int8_t#>(ctx, number, &casted_interval, classed_number); |
| 132 | break; |
| 133 | case GRN_DB_UINT8: |
| 134 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<uint8_tcxx . . $ uint8_t#>(ctx, number, &casted_interval, classed_number); |
| 135 | break; |
| 136 | case GRN_DB_INT16: |
| 137 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<int16_tcxx . . $ int16_t#>(ctx, number, &casted_interval, classed_number); |
| 138 | break; |
| 139 | case GRN_DB_UINT16: |
| 140 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<uint16_tcxx . . $ uint16_t#>(ctx, number, &casted_interval, classed_number); |
| 141 | break; |
| 142 | case GRN_DB_INT32: |
| 143 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<int32_tcxx . . $ int32_t#>(ctx, number, &casted_interval, classed_number); |
| 144 | break; |
| 145 | case GRN_DB_UINT32: |
| 146 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<uint32_tcxx . . $ uint32_t#>(ctx, number, &casted_interval, classed_number); |
| 147 | break; |
| 148 | case GRN_DB_INT64: |
| 149 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<int64_tcxx . . $ int64_t#>(ctx, number, &casted_interval, classed_number); |
| 150 | break; |
| 151 | case GRN_DB_UINT64: |
| 152 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<uint64_tcxx . . $ uint64_t#>(ctx, number, &casted_interval, classed_number); |
| 153 | break; |
| 154 | case GRN_DB_FLOAT32: |
| 155 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<float>(ctx, number, &casted_interval, classed_number); |
| 156 | break; |
| 157 | case GRN_DB_FLOAT: |
| 158 | classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/classify(4ad76b35c8eff5b1).<double>(ctx, number, &casted_interval, classed_number); |
| 159 | break; |
| 160 | default: |
| 161 | { |
| 162 | grn_obj inspected; |
| 163 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 164 | grn_inspect(ctx, &inspected, number); |
| 165 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!( |
| 166 | ctx, |
| 167 | GRN_FUNCTION_NOT_IMPLEMENTED, |
| 168 | "%s(): unsupported type: %s", |
| 169 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`!, |
| 170 | grn_type_id_to_string_builtin(ctx, number->header.domain)); |
| 171 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 172 | } |
| 173 | break; |
| 174 | } |
| 175 | |
| 176 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &casted_interval); |
| 177 | |
| 178 | return classed_number; |
| 179 | #undef FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:72:9`! |
| 180 | } |
| 181 | |
| 182 | template <typename TYPE> |
| 183 | stdcxx . . $ std/::enable_if_t<stdcxx . . $ std/::is_integral_v<TYPE>, TYPE> |
| 184 | round_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round_raw(3d41aef9d615c228).(TYPE value, int32_tcxx . . $ int32_t# n_digits) |
| 185 | { |
| 186 | if (n_digits >= 0) { |
| 187 | return value; |
| 188 | } |
| 189 | auto scale = stdcxx . . $ std/::pow(10, -n_digits); |
| 190 | return stdcxx . . $ std/::round(value / scale) * scale; |
| 191 | } |
| 192 | |
| 193 | template <typename TYPE> |
| 194 | stdcxx . . $ std/::enable_if_t<stdcxx . . $ std/::is_floating_point_v<TYPE>, TYPE> |
| 195 | round_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round_raw(370d4256f843a470).(TYPE value, int32_tcxx . . $ int32_t# n_digits) |
| 196 | { |
| 197 | if (n_digits == 0) { |
| 198 | return stdcxx . . $ std/::round(value); |
| 199 | } |
| 200 | if (n_digits > 0) { |
| 201 | auto scale = stdcxx . . $ std/::pow(10, n_digits); |
| 202 | return stdcxx . . $ std/::round(value * scale) / scale; |
| 203 | } else { |
| 204 | auto scale = stdcxx . . $ std/::pow(10, -n_digits); |
| 205 | return stdcxx . . $ std/::round(value / scale) * scale; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | template <typename TYPE> |
| 210 | void |
| 211 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).(grn_ctx *ctx, grn_obj *value, int32_tcxx . . $ int32_t# n_digits_raw, grn_obj *rounded) |
| 212 | { |
| 213 | TYPE value_raw = grncxx . . $ grn/::bulkcxx . . $ grn/bulk/::getcxx . . $ grn/bulk/get(fc0e5dd5d2409f65).<TYPE>(ctx, value, 0); |
| 214 | TYPE rounded_raw = round_rawcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round_raw(370d4256f843a470).<TYPE>(value_raw, n_digits_raw); |
| 215 | grncxx . . $ grn/::bulkcxx . . $ grn/bulk/::setcxx . . $ grn/bulk/set(ca8f724eff6ab81).(ctx, rounded, rounded_raw); |
| 216 | } |
| 217 | |
| 218 | grn_obj * |
| 219 | func_number_roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/func_number_round(fd082858389c8bb0).(grn_ctx *ctx, |
| 220 | int n_args, |
| 221 | grn_obj **args, |
| 222 | grn_user_data *user_data) |
| 223 | { |
| 224 | #define FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`! "round" |
| 225 | if (n_args == 0 || n_args > 2) { |
| 226 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!(ctx, |
| 227 | GRN_INVALID_ARGUMENT, |
| 228 | "%s(): wrong number of arguments (%d for 1..2)", |
| 229 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`!, |
| 230 | n_args); |
| 231 | return grn_plugin_proc_alloc(ctx, user_data, GRN_DB_VOID, 0); |
| 232 | } |
| 233 | |
| 234 | grn_obj *target = args[0]; |
| 235 | if (!grn_obj_is_number_family_bulk(ctx, target)) { |
| 236 | grn_obj inspected; |
| 237 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 238 | grn_inspect(ctx, &inspected, target); |
| 239 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!(ctx, |
| 240 | GRN_INVALID_ARGUMENT, |
| 241 | "%s(): target value must be a number family value: %.*s", |
| 242 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`!, |
| 243 | (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected), |
| 244 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 245 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 246 | return grn_plugin_proc_alloc(ctx, user_data, GRN_DB_VOID, 0); |
| 247 | } |
| 248 | |
| 249 | int32_tcxx . . $ int32_t# n_digits = 0; |
| 250 | if (n_args >= 2) { |
| 251 | grn_obj *n_digits_object = args[1]; |
| 252 | n_digits = grn_plugin_proc_get_value_int32(ctx, |
| 253 | n_digits_object, |
| 254 | n_digits, |
| 255 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`! "(): n_digits"); |
| 256 | if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESS) { |
| 257 | return grn_plugin_proc_alloc(ctx, user_data, GRN_DB_VOID, 0); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | auto rounded = |
| 262 | grn_plugin_proc_alloc(ctx, user_data, target->headercxx . . $ _grn_obj#header..domain, 0); |
| 263 | switch (target->headercxx . . $ _grn_obj#header..domain) { |
| 264 | case GRN_DB_UINT8: |
| 265 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<uint8_tcxx . . $ uint8_t#>(ctx, target, n_digits, rounded); |
| 266 | break; |
| 267 | case GRN_DB_INT8: |
| 268 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<int8_tcxx . . $ int8_t#>(ctx, target, n_digits, rounded); |
| 269 | break; |
| 270 | case GRN_DB_UINT16: |
| 271 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<uint16_tcxx . . $ uint16_t#>(ctx, target, n_digits, rounded); |
| 272 | break; |
| 273 | case GRN_DB_INT16: |
| 274 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<int16_tcxx . . $ int16_t#>(ctx, target, n_digits, rounded); |
| 275 | break; |
| 276 | case GRN_DB_UINT32: |
| 277 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<uint32_tcxx . . $ uint32_t#>(ctx, target, n_digits, rounded); |
| 278 | break; |
| 279 | case GRN_DB_INT32: |
| 280 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<int32_tcxx . . $ int32_t#>(ctx, target, n_digits, rounded); |
| 281 | break; |
| 282 | case GRN_DB_UINT64: |
| 283 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<uint64_tcxx . . $ uint64_t#>(ctx, target, n_digits, rounded); |
| 284 | break; |
| 285 | case GRN_DB_INT64: |
| 286 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<int64_tcxx . . $ int64_t#>(ctx, target, n_digits, rounded); |
| 287 | break; |
| 288 | case GRN_DB_FLOAT32: |
| 289 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<float>(ctx, target, n_digits, rounded); |
| 290 | break; |
| 291 | case GRN_DB_FLOAT: |
| 292 | roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/round(f24f3fad4c8b5c01).<double>(ctx, target, n_digits, rounded); |
| 293 | break; |
| 294 | default: |
| 295 | { |
| 296 | grn_obj inspected; |
| 297 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 298 | grn_inspect(ctx, &inspected, target); |
| 299 | GRN_PLUGIN_ERRORcxx . . $ `include/groonga/plugin.h:145:9`!( |
| 300 | ctx, |
| 301 | GRN_FUNCTION_NOT_IMPLEMENTED, |
| 302 | "%s(): unsupported type: %s", |
| 303 | FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`!, |
| 304 | grn_type_id_to_string_builtin(ctx, target->header.domain)); |
| 305 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 306 | } |
| 307 | break; |
| 308 | } |
| 309 | return rounded; |
| 310 | #undef FUNCTION_NAMEcxx . . $ `plugins/functions/number.cpp:224:9`! |
| 311 | } |
| 312 | } // namespace |
| 313 | |
| 314 | extern "C" grn_rc |
| 315 | GRN_PLUGIN_INITcxx . . $ `include/groonga/plugin.h:43:9`!(grn_ctx *ctx) |
| 316 | { |
| 317 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 318 | } |
| 319 | |
| 320 | extern "C" grn_rc |
| 321 | GRN_PLUGIN_REGISTERcxx . . $ `include/groonga/plugin.h:44:9`!(grn_ctx *ctx) |
| 322 | { |
| 323 | grn_rc rc = GRN_SUCCESS; |
| 324 | |
| 325 | grn_proc_create(ctx, |
| 326 | "number_classify", |
| 327 | -1, |
| 328 | GRN_PROC_FUNCTION, |
| 329 | func_number_classifycxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/func_number_classify(fd082858389c8bb0)., |
| 330 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!, |
| 331 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!, |
| 332 | 0, |
| 333 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!); |
| 334 | |
| 335 | grn_proc_create(ctx, |
| 336 | "number_round", |
| 337 | -1, |
| 338 | GRN_PROC_FUNCTION, |
| 339 | func_number_roundcxx . . $ `$anonymous_namespace_plugins/functions/number.cpp`/func_number_round(fd082858389c8bb0)., |
| 340 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!, |
| 341 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!, |
| 342 | 0, |
| 343 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:416:9`!); |
| 344 | |
| 345 | return rc; |
| 346 | } |
| 347 | |
| 348 | extern "C" grn_rc |
| 349 | GRN_PLUGIN_FINcxx . . $ `include/groonga/plugin.h:45:9`!(grn_ctx *ctx) |
| 350 | { |
| 351 | return GRN_SUCCESS; |
| 352 | } |