| 1 | /* -*- c-basic-offset: 2 -*- */cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/ctx.c`/ |
| 2 | /* |
| 3 | Copyright(C) 2009-2017 Brazil |
| 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 version 2.1 as published by the Free Software Foundation. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA |
| 17 | */ |
| 18 | |
| 19 | #include "grn.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn.h`/ |
| 20 | #include <string.h> |
| 21 | #include "grn_request_canceler.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_request_canceler.h`/ |
| 22 | #include "grn_request_timer.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_request_timer.h`/ |
| 23 | #include "grn_tokenizers.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_tokenizers.h`/ |
| 24 | #include "grn_ctx_impl.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_ctx_impl.h`/ |
| 25 | #include "grn_ii.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_ii.h`/ |
| 26 | #include "grn_pat.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_pat.h`/ |
| 27 | #include "grn_index_column.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_index_column.h`/ |
| 28 | #include "grn_proc.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_proc.h`/ |
| 29 | #include "grn_plugin.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_plugin.h`/ |
| 30 | #include "grn_snip.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_snip.h`/ |
| 31 | #include "grn_output.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_output.h`/ |
| 32 | #include "grn_normalizer.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_normalizer.h`/ |
| 33 | #include "grn_mrb.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_mrb.h`/ |
| 34 | #include "grn_ctx_impl_mrb.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_ctx_impl_mrb.h`/ |
| 35 | #include "grn_logger.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_logger.h`/ |
| 36 | #include "grn_cache.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_cache.h`/ |
| 37 | #include "grn_expr.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_expr.h`/ |
| 38 | #include <stdio.h> |
| 39 | #include <stdarg.h> |
| 40 | #include <time.h> |
| 41 | |
| 42 | #ifdef GRN_WITH_ONIGMO |
| 43 | # define GRN_SUPPORT_REGEXP |
| 44 | #endif /* GRN_WITH_ONIGMO */ |
| 45 | |
| 46 | #ifdef GRN_SUPPORT_REGEXP |
| 47 | # include <onigmo.h> |
| 48 | #endif /* GRN_SUPPORT_REGEXP */ |
| 49 | |
| 50 | #ifdef WIN32 |
| 51 | # include <share.h> |
| 52 | #else /* WIN32 */ |
| 53 | # include <netinet/in.h> |
| 54 | #endif /* WIN32 */ |
| 55 | |
| 56 | #define GRN_CTX_INITIALIZERcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:56:9`!(enc) \ |
| 57 | { GRN_SUCCESS, 0, enc, 0, GRN_LOG_NOTICE,\ |
| 58 | GRN_CTX_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:205:9`!, 0, 0, 0, 0, {0}, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, \ |
| 59 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!}, ""} |
| 60 | |
| 61 | #define GRN_CTX_CLOSEDcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:61:9`!(ctx) ((ctx)->stat == GRN_CTX_FIN) |
| 62 | |
| 63 | grn_ctxcxx . . $ grn_ctx# grn_gctxcxx . . $ grn_gctx. = GRN_CTX_INITIALIZERcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:56:9`!(GRN_ENC_DEFAULT); |
| 64 | int grn_pagesizecxx . . $ grn_pagesize.; |
| 65 | grn_critical_sectioncxx . . $ grn_critical_section# grn_glockcxx . . $ grn_glock.; |
| 66 | uint32_tcxx . . $ uint32_t# grn_gtickcxx . . $ grn_gtick.; |
| 67 | int grn_lock_timeoutcxx . . $ grn_lock_timeout. = GRN_LOCK_TIMEOUTcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:34:9`!; |
| 68 | |
| 69 | #ifdef USE_UYIELD |
| 70 | int grn_uyield_count = 0; |
| 71 | #endif |
| 72 | |
| 73 | static grn_boolcxx . . $ grn_bool# grn_ctx_per_dbcxx . . $ grn_ctx_per_db. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 74 | |
| 75 | static void |
| 76 | grn_init_from_envcxx . . $ grn_init_from_env(49f6e7a06ebc5aa8).(void) |
| 77 | { |
| 78 | { |
| 79 | char grn_ctx_per_db_env[GRN_ENV_BUFFER_SIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:41:9`!]; |
| 80 | grn_getenvcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:56:10`!("GRN_CTX_PER_DB", |
| 81 | grn_ctx_per_db_env, |
| 82 | GRN_ENV_BUFFER_SIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:41:9`!); |
| 83 | if (grn_ctx_per_db_env[0] && strcmpcxx . . $ strcmp(5ae29d726ae57f88).(grn_ctx_per_db_env, "yes") == 0) { |
| 84 | grn_ctx_per_dbcxx . . $ grn_ctx_per_db. = GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | grn_alloc_init_from_envcxx . . $ grn_alloc_init_from_env(49f6e7a06ebc5aa8).(); |
| 89 | grn_mrb_init_from_envcxx . . $ grn_mrb_init_from_env(49f6e7a06ebc5aa8).(); |
| 90 | grn_ctx_impl_mrb_init_from_envcxx . . $ grn_ctx_impl_mrb_init_from_env(49f6e7a06ebc5aa8).(); |
| 91 | grn_io_init_from_envcxx . . $ grn_io_init_from_env(49f6e7a06ebc5aa8).(); |
| 92 | grn_ii_init_from_envcxx . . $ grn_ii_init_from_env(49f6e7a06ebc5aa8).(); |
| 93 | grn_db_init_from_envcxx . . $ grn_db_init_from_env(49f6e7a06ebc5aa8).(); |
| 94 | grn_expr_init_from_envcxx . . $ grn_expr_init_from_env(49f6e7a06ebc5aa8).(); |
| 95 | grn_index_column_init_from_envcxx . . $ grn_index_column_init_from_env(49f6e7a06ebc5aa8).(); |
| 96 | grn_proc_init_from_envcxx . . $ grn_proc_init_from_env(49f6e7a06ebc5aa8).(); |
| 97 | grn_plugin_init_from_envcxx . . $ grn_plugin_init_from_env(49f6e7a06ebc5aa8).(); |
| 98 | } |
| 99 | |
| 100 | static void |
| 101 | grn_init_external_librariescxx . . $ grn_init_external_libraries(49f6e7a06ebc5aa8).(void) |
| 102 | { |
| 103 | #ifdef GRN_SUPPORT_REGEXP |
| 104 | onig_init(); |
| 105 | #endif /* GRN_SUPPORT_REGEXP */ |
| 106 | } |
| 107 | |
| 108 | static void |
| 109 | grn_fin_external_librariescxx . . $ grn_fin_external_libraries(49f6e7a06ebc5aa8).(void) |
| 110 | { |
| 111 | #ifdef GRN_SUPPORT_REGEXP |
| 112 | onig_end(); |
| 113 | #endif /* GRN_SUPPORT_REGEXP */ |
| 114 | } |
| 115 | |
| 116 | void |
| 117 | grn_sleepcxx . . $ grn_sleep(cb2f890c2fdad230).(uint32_tcxx . . $ uint32_t# seconds) |
| 118 | { |
| 119 | #ifdef WIN32 |
| 120 | Sleep(seconds * 1000); |
| 121 | #else // WIN32 |
| 122 | sleepcxx . . $ sleep(2141b656ce2cc063).(seconds); |
| 123 | #endif // WIN32 |
| 124 | } |
| 125 | |
| 126 | void |
| 127 | grn_nanosleepcxx . . $ grn_nanosleep(2c44cd906ae4e829).(uint64_tcxx . . $ uint64_t# nanoseconds) |
| 128 | { |
| 129 | #ifdef WIN32 |
| 130 | Sleep((DWORD)(nanoseconds / 1000000)); |
| 131 | #else // WIN32 |
| 132 | struct timespeccxx . . $ timespec# interval; |
| 133 | interval.tv_seccxx . . $ timespec#tv_sec. = (time_tcxx . . $ time_t#)(nanoseconds / 1000000000); |
| 134 | interval.tv_nseccxx . . $ timespec#tv_nsec. = (long)(nanoseconds % 1000000000); |
| 135 | nanosleepcxx . . $ nanosleep(645c6fc2576d4126).(&interval, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 136 | #endif // WIN32 |
| 137 | } |
| 138 | |
| 139 | const char * |
| 140 | grn_get_global_error_messagecxx . . $ grn_get_global_error_message(33a1f659e94feb42).(void) |
| 141 | { |
| 142 | return grn_gctxcxx . . $ grn_gctx..errbufcxx . . $ _grn_ctx#errbuf.; |
| 143 | } |
| 144 | |
| 145 | static void |
| 146 | grn_loader_initcxx . . $ grn_loader_init(1056d188a07ee74f).(grn_loadercxx . . $ grn_loader# *loader) |
| 147 | { |
| 148 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&loader->values, 0); |
| 149 | GRN_UINT32_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1319:9`!(&loader->level, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 150 | GRN_PTR_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1330:9`!(&loader->columns, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!, GRN_ID_NILcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:41:9`!); |
| 151 | GRN_UINT32_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1319:9`!(&loader->ids, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 152 | GRN_INT32_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1317:9`!(&loader->return_codes, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 153 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&loader->error_messages, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 154 | loader->id_offsetcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#id_offset. = -1; |
| 155 | loader->key_offsetcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#key_offset. = -1; |
| 156 | loader->tablecxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#table. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 157 | loader->lastcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#last. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 158 | loader->ifexistscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#ifexists. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 159 | loader->eachcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#each. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 160 | loader->values_sizecxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#values_size. = 0; |
| 161 | loader->nrecordscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#nrecords. = 0; |
| 162 | loader->statcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#stat. = GRN_LOADER_BEGINcxx . . $ GRN_LOADER_BEGIN.; |
| 163 | loader->columns_statuscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#columns_status. = GRN_LOADER_COLUMNS_UNSETcxx . . $ GRN_LOADER_COLUMNS_UNSET.; |
| 164 | loader->rccxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#rc. = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 165 | loader->errbufcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#errbuf.[0] = '\0'; |
| 166 | loader->output_idscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#output_ids. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 167 | loader->output_errorscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#output_errors. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 168 | } |
| 169 | |
| 170 | void |
| 171 | grn_ctx_loader_clearcxx . . $ grn_ctx_loader_clear(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 172 | { |
| 173 | grn_loadercxx . . $ grn_loader# *loader = &ctx->implcxx . . $ _grn_ctx#impl.->loadercxx . . $ _grn_ctx_impl#loader.; |
| 174 | grn_objcxx . . $ grn_obj# *v = (grn_objcxx . . $ grn_obj# *)(GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(&loader->values)); |
| 175 | grn_objcxx . . $ grn_obj# *ve = (grn_objcxx . . $ grn_obj# *)(GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&loader->values)); |
| 176 | grn_objcxx . . $ grn_obj# **p = (grn_objcxx . . $ grn_obj# **)GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(&loader->columns); |
| 177 | uint32_tcxx . . $ uint32_t# i = GRN_BULK_VSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1201:9`!(&loader->columns) / sizeof(grn_objcxx . . $ grn_obj# *); |
| 178 | if (ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db.) { while (i--) { grn_obj_unlinkcxx . . $ grn_obj_unlink(cda3a5f3c2e53c6b).(ctx, *p++); } } |
| 179 | if (loader->ifexistscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#ifexists.) { grn_obj_unlinkcxx . . $ grn_obj_unlink(cda3a5f3c2e53c6b).(ctx, loader->ifexistscxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#ifexists.); } |
| 180 | if (loader->eachcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#each.) { grn_obj_unlinkcxx . . $ grn_obj_unlink(cda3a5f3c2e53c6b).(ctx, loader->eachcxx . . $ $anonymous_type_5741f6ac5d1b09ba_2#each.); } |
| 181 | while (v < ve) { GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, v++); } |
| 182 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->values); |
| 183 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->level); |
| 184 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->columns); |
| 185 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->ids); |
| 186 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->return_codes); |
| 187 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &loader->error_messages); |
| 188 | grn_loader_initcxx . . $ grn_loader_init(1056d188a07ee74f).(loader); |
| 189 | } |
| 190 | |
| 191 | #define IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`! ((sizeof(struct _grn_ctx_impl) + (grn_pagesize - 1)) & ~(grn_pagesize - 1)) |
| 192 | |
| 193 | #ifdef GRN_WITH_MESSAGE_PACK |
| 194 | static int |
| 195 | grn_msgpack_buffer_write(void *data, const char *buf, msgpack_size_t len) |
| 196 | { |
| 197 | grn_ctx *ctx = (grn_ctx *)data; |
| 198 | return grn_bulk_write(ctx, ctx->impl->output.buf, buf, len); |
| 199 | } |
| 200 | #endif |
| 201 | |
| 202 | static grn_rccxx . . $ grn_rc# |
| 203 | grn_ctx_impl_initcxx . . $ grn_ctx_impl_init(2b4fa601bf4f1e5b).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 204 | { |
| 205 | grn_io_mapinfocxx . . $ grn_io_mapinfo# mi; |
| 206 | if (!(ctx->implcxx . . $ _grn_ctx#impl. = grn_io_anon_mapcxx . . $ grn_io_anon_map(9de643cca07c394).(ctx, &mi, IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`!))) { |
| 207 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 208 | } |
| 209 | grn_alloc_init_ctx_implcxx . . $ grn_alloc_init_ctx_impl(b578cd6e53d5fe91).(ctx); |
| 210 | ctx->implcxx . . $ _grn_ctx#impl.->encodingcxx . . $ _grn_ctx_impl#encoding. = ctx->encodingcxx . . $ _grn_ctx#encoding.; |
| 211 | ctx->implcxx . . $ _grn_ctx#impl.->lifosegcxx . . $ _grn_ctx_impl#lifoseg. = -1; |
| 212 | ctx->implcxx . . $ _grn_ctx#impl.->currsegcxx . . $ _grn_ctx_impl#currseg. = -1; |
| 213 | CRITICAL_SECTION_INITcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:234:10`!(ctx->impl->lock); |
| 214 | if (!(ctx->implcxx . . $ _grn_ctx#impl.->valuescxx . . $ _grn_ctx_impl#values. = grn_array_createcxx . . $ grn_array_create(898999a576d1ed85).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, sizeof(grn_db_objcxx . . $ grn_db_obj# *), |
| 215 | GRN_ARRAY_TINYcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_hash.h:119:9`!))) { |
| 216 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(ctx->impl->lock); |
| 217 | grn_io_anon_unmapcxx . . $ grn_io_anon_unmap(e34ce909368ead97).(ctx, &mi, IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`!); |
| 218 | ctx->implcxx . . $ _grn_ctx#impl. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 219 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 220 | } |
| 221 | if (!(ctx->implcxx . . $ _grn_ctx#impl.->temporary_columnscxx . . $ _grn_ctx_impl#temporary_columns. = grn_pat_createcxx . . $ grn_pat_create(c536c63c37081863).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 222 | GRN_TABLE_MAX_KEY_SIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/table.h:25:9`!, |
| 223 | sizeof(grn_objcxx . . $ grn_obj# *), |
| 224 | 0))) { |
| 225 | grn_array_closecxx . . $ grn_array_close(1b4cd6b6726e4674).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->valuescxx . . $ _grn_ctx_impl#values.); |
| 226 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(ctx->impl->lock); |
| 227 | grn_io_anon_unmapcxx . . $ grn_io_anon_unmap(e34ce909368ead97).(ctx, &mi, IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`!); |
| 228 | ctx->implcxx . . $ _grn_ctx#impl. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 229 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 230 | } |
| 231 | if (!(ctx->implcxx . . $ _grn_ctx#impl.->ioscxx . . $ _grn_ctx_impl#ios. = grn_hash_createcxx . . $ grn_hash_create(db1bba7e0d64660).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GRN_TABLE_MAX_KEY_SIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/table.h:25:9`!, |
| 232 | sizeof(grn_iocxx . . $ grn_io# *), |
| 233 | GRN_OBJ_KEY_VAR_SIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:342:9`!|GRN_HASH_TINYcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/hash.h:25:9`!))) { |
| 234 | grn_array_closecxx . . $ grn_array_close(1b4cd6b6726e4674).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->valuescxx . . $ _grn_ctx_impl#values.); |
| 235 | grn_pat_closecxx . . $ grn_pat_close(6044f5e1d38adedf).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->temporary_columnscxx . . $ _grn_ctx_impl#temporary_columns.); |
| 236 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(ctx->impl->lock); |
| 237 | grn_io_anon_unmapcxx . . $ grn_io_anon_unmap(e34ce909368ead97).(ctx, &mi, IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`!); |
| 238 | ctx->implcxx . . $ _grn_ctx#impl. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 239 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 240 | } |
| 241 | ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 242 | |
| 243 | ctx->implcxx . . $ _grn_ctx#impl.->expr_varscxx . . $ _grn_ctx_impl#expr_vars. = grn_hash_createcxx . . $ grn_hash_create(db1bba7e0d64660).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, sizeof(grn_idcxx . . $ grn_id#), sizeof(grn_objcxx . . $ grn_obj# *), 0); |
| 244 | ctx->implcxx . . $ _grn_ctx#impl.->stack_currcxx . . $ _grn_ctx_impl#stack_curr. = 0; |
| 245 | ctx->implcxx . . $ _grn_ctx#impl.->curr_exprcxx . . $ _grn_ctx_impl#curr_expr. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 246 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&ctx->impl->current_request_id, 0); |
| 247 | ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 248 | ctx->implcxx . . $ _grn_ctx#impl.->parsercxx . . $ _grn_ctx_impl#parser. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 249 | |
| 250 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&ctx->impl->output.names, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 251 | GRN_UINT32_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1319:9`!(&ctx->impl->output.levels, GRN_OBJ_VECTORcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1263:9`!); |
| 252 | |
| 253 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..flagscxx . . $ _grn_ctx_impl#$anonymous_type_5#flags. = 0; |
| 254 | if (ctx == &grn_gctxcxx . . $ grn_gctx.) { |
| 255 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version. = GRN_COMMAND_VERSION_STABLEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:156:9`!; |
| 256 | } else { |
| 257 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version. = grn_get_default_command_versioncxx . . $ grn_get_default_command_version(3a765c23ebe28c14).(); |
| 258 | } |
| 259 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 260 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#version. = ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version.; |
| 261 | |
| 262 | if (ctx == &grn_gctxcxx . . $ grn_gctx.) { |
| 263 | ctx->implcxx . . $ _grn_ctx#impl.->match_escalation_thresholdcxx . . $ _grn_ctx_impl#match_escalation_threshold. = |
| 264 | GRN_DEFAULT_MATCH_ESCALATION_THRESHOLDcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:25:9`!; |
| 265 | } else { |
| 266 | ctx->implcxx . . $ _grn_ctx#impl.->match_escalation_thresholdcxx . . $ _grn_ctx_impl#match_escalation_threshold. = |
| 267 | grn_get_default_match_escalation_thresholdcxx . . $ grn_get_default_match_escalation_threshold(a5d9f2bf8849668d).(); |
| 268 | } |
| 269 | |
| 270 | ctx->implcxx . . $ _grn_ctx#impl.->finalizercxx . . $ _grn_ctx_impl#finalizer. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 271 | |
| 272 | ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 273 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf. = grn_obj_opencxx . . $ grn_obj_open(688b82f5c18b4cf9).(ctx, GRN_BULKcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:359:9`!, 0, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT.); |
| 274 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 275 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..datacxx . . $ _grn_ctx_impl#$anonymous_type_3#data..ptrcxx . . $ _grn_ctx_impl#$anonymous_type_3#$anonymous_type_4#ptr. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 276 | #ifdef GRN_WITH_MESSAGE_PACK |
| 277 | msgpack_packer_init(&ctx->impl->output.msgpacker, |
| 278 | ctx, grn_msgpack_buffer_write); |
| 279 | #endif |
| 280 | ctx->implcxx . . $ _grn_ctx#impl.->tvcxx . . $ _grn_ctx_impl#tv..tv_seccxx . . $ $anonymous_type_4745dae97e51c7d5_20#tv_sec. = 0; |
| 281 | ctx->implcxx . . $ _grn_ctx#impl.->tvcxx . . $ _grn_ctx_impl#tv..tv_nseccxx . . $ $anonymous_type_4745dae97e51c7d5_20#tv_nsec. = 0; |
| 282 | ctx->implcxx . . $ _grn_ctx#impl.->edgecxx . . $ _grn_ctx_impl#edge. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 283 | grn_loader_initcxx . . $ grn_loader_init(1056d188a07ee74f).(&ctx->implcxx . . $ _grn_ctx#impl.->loadercxx . . $ _grn_ctx_impl#loader.); |
| 284 | ctx->implcxx . . $ _grn_ctx#impl.->plugin_pathcxx . . $ _grn_ctx_impl#plugin_path. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 285 | |
| 286 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&ctx->impl->query_log_buf, 0); |
| 287 | |
| 288 | ctx->implcxx . . $ _grn_ctx#impl.->previous_errbufcxx . . $ _grn_ctx_impl#previous_errbuf.[0] = '\0'; |
| 289 | ctx->implcxx . . $ _grn_ctx#impl.->n_same_error_messagescxx . . $ _grn_ctx_impl#n_same_error_messages. = 0; |
| 290 | |
| 291 | grn_ctx_impl_mrb_initcxx . . $ grn_ctx_impl_mrb_init(b578cd6e53d5fe91).(ctx); |
| 292 | |
| 293 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&(ctx->impl->temporary_open_spaces.stack), 0); |
| 294 | ctx->implcxx . . $ _grn_ctx#impl.->temporary_open_spacescxx . . $ _grn_ctx_impl#temporary_open_spaces..currentcxx . . $ _grn_ctx_impl#$anonymous_type_7#current. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 295 | |
| 296 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 297 | } |
| 298 | |
| 299 | void |
| 300 | grn_ctx_set_keep_commandcxx . . $ grn_ctx_set_keep_command(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *command) |
| 301 | { |
| 302 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command. = command; |
| 303 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#version. = ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version.; |
| 304 | } |
| 305 | |
| 306 | static void |
| 307 | grn_ctx_impl_clear_n_same_error_messaggescxx . . $ grn_ctx_impl_clear_n_same_error_messagges(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 308 | { |
| 309 | if (ctx->implcxx . . $ _grn_ctx#impl.->n_same_error_messagescxx . . $ _grn_ctx_impl#n_same_error_messages. == 0) { |
| 310 | return; |
| 311 | } |
| 312 | |
| 313 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_NOTICE, "(%u same messages are truncated)", |
| 314 | ctx->impl->n_same_error_messages); |
| 315 | ctx->implcxx . . $ _grn_ctx#impl.->n_same_error_messagescxx . . $ _grn_ctx_impl#n_same_error_messages. = 0; |
| 316 | } |
| 317 | |
| 318 | grn_boolcxx . . $ grn_bool# |
| 319 | grn_ctx_impl_should_logcxx . . $ grn_ctx_impl_should_log(47afac06cea2a46b).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 320 | { |
| 321 | if (!ctx->implcxx . . $ _grn_ctx#impl.) { |
| 322 | return GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 323 | } |
| 324 | |
| 325 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(ctx->errbufcxx . . $ _grn_ctx#errbuf., ctx->implcxx . . $ _grn_ctx#impl.->previous_errbufcxx . . $ _grn_ctx_impl#previous_errbuf.) == 0) { |
| 326 | ctx->implcxx . . $ _grn_ctx#impl.->n_same_error_messagescxx . . $ _grn_ctx_impl#n_same_error_messages.++; |
| 327 | return GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 328 | } |
| 329 | |
| 330 | return GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 331 | } |
| 332 | |
| 333 | void |
| 334 | grn_ctx_impl_set_current_error_messagecxx . . $ grn_ctx_impl_set_current_error_message(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 335 | { |
| 336 | if (!ctx->implcxx . . $ _grn_ctx#impl.) { |
| 337 | return; |
| 338 | } |
| 339 | |
| 340 | grn_ctx_impl_clear_n_same_error_messaggescxx . . $ grn_ctx_impl_clear_n_same_error_messagges(b578cd6e53d5fe91).(ctx); |
| 341 | grn_strcpycxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:100:10`!(ctx->impl->previous_errbuf, GRN_CTX_MSGSIZE, ctx->errbuf); |
| 342 | } |
| 343 | |
| 344 | static grn_rccxx . . $ grn_rc# |
| 345 | grn_ctx_init_internalcxx . . $ grn_ctx_init_internal(670fdc69e3f5dbb5).(grn_ctxcxx . . $ grn_ctx# *ctx, int flags) |
| 346 | { |
| 347 | if (!ctx) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 348 | // if (ctx->stat != GRN_CTX_FIN) { return GRN_INVALID_ARGUMENT; } |
| 349 | ctx->rccxx . . $ _grn_ctx#rc. = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 350 | ERRCLRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:78:9`!(ctx); |
| 351 | ctx->flagscxx . . $ _grn_ctx#flags. = flags; |
| 352 | if (grn_ctx_per_dbcxx . . $ grn_ctx_per_db.) { |
| 353 | ctx->flagscxx . . $ _grn_ctx#flags. |= GRN_CTX_PER_DBcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:243:9`!; |
| 354 | } |
| 355 | ctx->statcxx . . $ _grn_ctx#stat. = GRN_CTX_INITEDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx_impl.h:45:9`!; |
| 356 | ctx->encodingcxx . . $ _grn_ctx#encoding. = grn_gctxcxx . . $ grn_gctx..encodingcxx . . $ _grn_ctx#encoding.; |
| 357 | ctx->seqnocxx . . $ _grn_ctx#seqno. = 0; |
| 358 | ctx->seqno2cxx . . $ _grn_ctx#seqno2. = 0; |
| 359 | ctx->subnocxx . . $ _grn_ctx#subno. = 0; |
| 360 | ctx->implcxx . . $ _grn_ctx#impl. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 361 | ctx->user_datacxx . . $ _grn_ctx#user_data..ptrcxx . . $ $anonymous_type_4745dae97e51c7d5_5#ptr. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 362 | CRITICAL_SECTION_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:235:10`!(grn_glock); |
| 363 | ctx->nextcxx . . $ _grn_ctx#next. = grn_gctxcxx . . $ grn_gctx..nextcxx . . $ _grn_ctx#next.; |
| 364 | ctx->prevcxx . . $ _grn_ctx#prev. = &grn_gctxcxx . . $ grn_gctx.; |
| 365 | grn_gctxcxx . . $ grn_gctx..nextcxx . . $ _grn_ctx#next.->prevcxx . . $ _grn_ctx#prev. = ctx; |
| 366 | grn_gctxcxx . . $ grn_gctx..nextcxx . . $ _grn_ctx#next. = ctx; |
| 367 | CRITICAL_SECTION_LEAVEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:236:10`!(grn_glock); |
| 368 | ctx->errlinecxx . . $ _grn_ctx#errline. = 0; |
| 369 | ctx->errfilecxx . . $ _grn_ctx#errfile. = ""; |
| 370 | ctx->errfunccxx . . $ _grn_ctx#errfunc. = ""; |
| 371 | ctx->tracecxx . . $ _grn_ctx#trace.[0] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 372 | ctx->errbufcxx . . $ _grn_ctx#errbuf.[0] = '\0'; |
| 373 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 374 | } |
| 375 | |
| 376 | grn_rccxx . . $ grn_rc# |
| 377 | grn_ctx_initcxx . . $ grn_ctx_init(670fdc69e3f5dbb5).(grn_ctxcxx . . $ grn_ctx# *ctx, int flags) |
| 378 | { |
| 379 | grn_rccxx . . $ grn_rc# rc; |
| 380 | |
| 381 | rc = grn_ctx_init_internalcxx . . $ grn_ctx_init_internal(670fdc69e3f5dbb5).(ctx, flags); |
| 382 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 383 | grn_ctx_impl_initcxx . . $ grn_ctx_impl_init(2b4fa601bf4f1e5b).(ctx); |
| 384 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 385 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 386 | grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(ctx); |
| 387 | if (flags & GRN_CTX_ALLOCATEDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:426:9`!) { |
| 388 | CRITICAL_SECTION_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:235:10`!(grn_glock); |
| 389 | ctx->nextcxx . . $ _grn_ctx#next.->prevcxx . . $ _grn_ctx#prev. = ctx->prevcxx . . $ _grn_ctx#prev.; |
| 390 | ctx->prevcxx . . $ _grn_ctx#prev.->nextcxx . . $ _grn_ctx#next. = ctx->nextcxx . . $ _grn_ctx#next.; |
| 391 | CRITICAL_SECTION_LEAVEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:236:10`!(grn_glock); |
| 392 | } |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | return rc; |
| 397 | } |
| 398 | |
| 399 | grn_ctxcxx . . $ grn_ctx# * |
| 400 | grn_ctx_opencxx . . $ grn_ctx_open(7b99d14c87d264df).(int flags) |
| 401 | { |
| 402 | grn_ctxcxx . . $ grn_ctx# *ctx = GRN_GMALLOCNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_alloc.h:49:9`!(grn_ctx, 1); |
| 403 | if (ctx) { |
| 404 | grn_ctx_initcxx . . $ grn_ctx_init(670fdc69e3f5dbb5).(ctx, flags|GRN_CTX_ALLOCATEDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:426:9`!); |
| 405 | if (ERRPcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:136:9`!(ctx, GRN_ERRORcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:74:10`!)) { |
| 406 | GRN_GFREEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_alloc.h:48:9`!(ctx); |
| 407 | ctx = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 408 | } |
| 409 | } |
| 410 | return ctx; |
| 411 | } |
| 412 | |
| 413 | grn_rccxx . . $ grn_rc# |
| 414 | grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 415 | { |
| 416 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 417 | if (!ctx) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 418 | if (ctx->statcxx . . $ _grn_ctx#stat. == GRN_CTX_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:205:9`!) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 419 | if (!(ctx->flagscxx . . $ _grn_ctx#flags. & GRN_CTX_ALLOCATEDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:426:9`!)) { |
| 420 | CRITICAL_SECTION_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:235:10`!(grn_glock); |
| 421 | ctx->nextcxx . . $ _grn_ctx#next.->prevcxx . . $ _grn_ctx#prev. = ctx->prevcxx . . $ _grn_ctx#prev.; |
| 422 | ctx->prevcxx . . $ _grn_ctx#prev.->nextcxx . . $ _grn_ctx#next. = ctx->nextcxx . . $ _grn_ctx#next.; |
| 423 | CRITICAL_SECTION_LEAVEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:236:10`!(grn_glock); |
| 424 | } |
| 425 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 426 | grn_ctx_impl_clear_n_same_error_messaggescxx . . $ grn_ctx_impl_clear_n_same_error_messagges(b578cd6e53d5fe91).(ctx); |
| 427 | if (ctx->implcxx . . $ _grn_ctx#impl.->finalizercxx . . $ _grn_ctx_impl#finalizer.) { |
| 428 | ctx->implcxx . . $ _grn_ctx#impl.->finalizercxx . . $ _grn_ctx_impl#finalizer.(ctx, 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &(ctx->user_datacxx . . $ _grn_ctx#user_data.)); |
| 429 | } |
| 430 | { |
| 431 | grn_objcxx . . $ grn_obj# *stack; |
| 432 | grn_objcxx . . $ grn_obj# *spaces; |
| 433 | unsigned int i, n_spaces; |
| 434 | |
| 435 | stack = &(ctx->implcxx . . $ _grn_ctx#impl.->temporary_open_spacescxx . . $ _grn_ctx_impl#temporary_open_spaces..stackcxx . . $ _grn_ctx_impl#$anonymous_type_7#stack.); |
| 436 | spaces = (grn_objcxx . . $ grn_obj# *)GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(stack); |
| 437 | n_spaces = GRN_BULK_VSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1201:9`!(stack) / sizeof(grn_objcxx . . $ grn_obj#); |
| 438 | for (i = 0; i < n_spaces; i++) { |
| 439 | grn_objcxx . . $ grn_obj# *space = spaces + (n_spaces - i - 1); |
| 440 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, space); |
| 441 | } |
| 442 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, stack); |
| 443 | } |
| 444 | grn_ctx_impl_mrb_fincxx . . $ grn_ctx_impl_mrb_fin(b578cd6e53d5fe91).(ctx); |
| 445 | grn_ctx_loader_clearcxx . . $ grn_ctx_loader_clear(b578cd6e53d5fe91).(ctx); |
| 446 | if (ctx->implcxx . . $ _grn_ctx#impl.->parsercxx . . $ _grn_ctx_impl#parser.) { |
| 447 | grn_expr_parser_closecxx . . $ grn_expr_parser_close(2b4fa601bf4f1e5b).(ctx); |
| 448 | } |
| 449 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &ctx->impl->current_request_id); |
| 450 | if (ctx->implcxx . . $ _grn_ctx#impl.->valuescxx . . $ _grn_ctx_impl#values.) { |
| 451 | #ifndef USE_MEMORY_DEBUG |
| 452 | grn_db_objcxx . . $ grn_db_obj# *o; |
| 453 | GRN_ARRAY_EACHcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/array.h:62:9`!(ctx, ctx->impl->values, 0, 0, id, &o, { |
| 454 | grn_obj_close(ctx, *((grn_obj **)o)); |
| 455 | }); |
| 456 | #endif |
| 457 | grn_array_closecxx . . $ grn_array_close(1b4cd6b6726e4674).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->valuescxx . . $ _grn_ctx_impl#values.); |
| 458 | } |
| 459 | if (ctx->implcxx . . $ _grn_ctx#impl.->temporary_columnscxx . . $ _grn_ctx_impl#temporary_columns.) { |
| 460 | #ifndef USE_MEMORY_DEBUG |
| 461 | grn_objcxx . . $ grn_obj# *value; |
| 462 | GRN_PAT_EACHcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/pat.h:87:9`!(ctx, ctx->impl->temporary_columns, id, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &value, { |
| 463 | grn_obj_close(ctx, *((grn_obj **)value)); |
| 464 | }); |
| 465 | #endif |
| 466 | grn_pat_closecxx . . $ grn_pat_close(6044f5e1d38adedf).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->temporary_columnscxx . . $ _grn_ctx_impl#temporary_columns.); |
| 467 | } |
| 468 | if (ctx->implcxx . . $ _grn_ctx#impl.->ioscxx . . $ _grn_ctx_impl#ios.) { |
| 469 | grn_hash_closecxx . . $ grn_hash_close(c005d027d163fb0b).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->ioscxx . . $ _grn_ctx_impl#ios.); |
| 470 | } |
| 471 | if (ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.) { |
| 472 | if (ctx->statcxx . . $ _grn_ctx#stat. != GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!) { |
| 473 | int flags; |
| 474 | char *str; |
| 475 | unsigned int str_len; |
| 476 | grn_ctx_sendcxx . . $ grn_ctx_send(dac8ec282379d9e0).(ctx, "quit", 4, GRN_CTX_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1655:9`!); |
| 477 | grn_ctx_recvcxx . . $ grn_ctx_recv(f4233bbc4ccf7d2d).(ctx, &str, &str_len, &flags); |
| 478 | } |
| 479 | grn_ctx_sendcxx . . $ grn_ctx_send(dac8ec282379d9e0).(ctx, "ACK", 3, GRN_CTX_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1655:9`!); |
| 480 | rc = grn_com_closecxx . . $ grn_com_close(316fe94cc3b95f73).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.); |
| 481 | } |
| 482 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &ctx->impl->query_log_buf); |
| 483 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &ctx->impl->output.names); |
| 484 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &ctx->impl->output.levels); |
| 485 | rc = grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.); |
| 486 | { |
| 487 | grn_hashcxx . . $ grn_hash# **vp; |
| 488 | grn_objcxx . . $ grn_obj# *value; |
| 489 | GRN_HASH_EACHcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/hash.h:74:9`!(ctx, ctx->impl->expr_vars, eid, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &vp, { |
| 490 | if (*vp) { |
| 491 | GRN_HASH_EACHcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/hash.h:74:9`!(ctx, *vp, id, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &value, { |
| 492 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, value); |
| 493 | }); |
| 494 | } |
| 495 | grn_hash_close(ctx, *vp); |
| 496 | }); |
| 497 | } |
| 498 | grn_hash_closecxx . . $ grn_hash_close(c005d027d163fb0b).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->expr_varscxx . . $ _grn_ctx_impl#expr_vars.); |
| 499 | if (ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db. && ctx->flagscxx . . $ _grn_ctx#flags. & GRN_CTX_PER_DBcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:243:9`!) { |
| 500 | grn_objcxx . . $ grn_obj# *db = ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db.; |
| 501 | ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 502 | grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, db); |
| 503 | } |
| 504 | grn_alloc_fin_ctx_implcxx . . $ grn_alloc_fin_ctx_impl(b578cd6e53d5fe91).(ctx); |
| 505 | grn_alloc_info_dumpcxx . . $ grn_alloc_info_dump(b578cd6e53d5fe91).(ctx); |
| 506 | grn_alloc_info_freecxx . . $ grn_alloc_info_free(b578cd6e53d5fe91).(ctx); |
| 507 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(ctx->impl->lock); |
| 508 | { |
| 509 | grn_io_mapinfocxx . . $ grn_io_mapinfo# mi; |
| 510 | mi.mapcxx . . $ $anonymous_type_75db8acbd456f2ab_3#map. = (void *)ctx->implcxx . . $ _grn_ctx#impl.; |
| 511 | grn_io_anon_unmapcxx . . $ grn_io_anon_unmap(e34ce909368ead97).(ctx, &mi, IMPL_SIZEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:191:9`!); |
| 512 | } |
| 513 | ctx->implcxx . . $ _grn_ctx#impl. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 514 | } |
| 515 | ctx->statcxx . . $ _grn_ctx#stat. = GRN_CTX_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:205:9`!; |
| 516 | return rc; |
| 517 | } |
| 518 | |
| 519 | grn_rccxx . . $ grn_rc# |
| 520 | grn_ctx_set_finalizercxx . . $ grn_ctx_set_finalizer(5d579ac6a4b8ccaf).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_proc_funccxx . . $ grn_proc_func# *finalizer) |
| 521 | { |
| 522 | if (!ctx) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 523 | if (!ctx->implcxx . . $ _grn_ctx#impl.) { |
| 524 | if (ERRPcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:136:9`!(ctx, GRN_ERRORcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:74:10`!)) { return ctx->rccxx . . $ _grn_ctx#rc.; } |
| 525 | } |
| 526 | ctx->implcxx . . $ _grn_ctx#impl.->finalizercxx . . $ _grn_ctx_impl#finalizer. = finalizer; |
| 527 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 528 | } |
| 529 | |
| 530 | grn_timevalcxx . . $ grn_timeval# grn_starttimecxx . . $ grn_starttime.; |
| 531 | |
| 532 | static void |
| 533 | check_overcommit_memorycxx . . $ check_overcommit_memory(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 534 | { |
| 535 | FILEcxx . . $ FILE# *file; |
| 536 | int value; |
| 537 | file = grn_fopencxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:73:10`!("/proc/sys/vm/overcommit_memory", "r"); |
| 538 | if (!file) { return; } |
| 539 | value = fgetccxx . . $ fgetc(89bc1efcdac0ca22).(file); |
| 540 | if (value != '1') { |
| 541 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_NOTICE, |
| 542 | "vm.overcommit_memory kernel parameter should be 1: <%c>: " |
| 543 | "See INFO level log to resolve this", |
| 544 | value); |
| 545 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_INFO, |
| 546 | "Some processings with vm.overcommit_memory != 1 " |
| 547 | "may break DB under low memory condition."); |
| 548 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_INFO, |
| 549 | "To set vm.overcommit_memory to 1"); |
| 550 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_INFO, |
| 551 | "add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and " |
| 552 | "restart your system or"); |
| 553 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_INFO, |
| 554 | "run 'sudo /sbin/sysctl vm.overcommit_memory=1' command."); |
| 555 | } |
| 556 | fclosecxx . . $ fclose(89bc1efcdac0ca22).(file); |
| 557 | } |
| 558 | |
| 559 | grn_rccxx . . $ grn_rc# |
| 560 | grn_initcxx . . $ grn_init(d5bb96df31a8101).(void) |
| 561 | { |
| 562 | grn_rccxx . . $ grn_rc# rc; |
| 563 | grn_ctxcxx . . $ grn_ctx# *ctx = &grn_gctxcxx . . $ grn_gctx.; |
| 564 | grn_init_from_envcxx . . $ grn_init_from_env(49f6e7a06ebc5aa8).(); |
| 565 | grn_init_external_librariescxx . . $ grn_init_external_libraries(49f6e7a06ebc5aa8).(); |
| 566 | grn_alloc_info_initcxx . . $ grn_alloc_info_init(49f6e7a06ebc5aa8).(); |
| 567 | grn_logger_initcxx . . $ grn_logger_init(49f6e7a06ebc5aa8).(); |
| 568 | grn_query_logger_initcxx . . $ grn_query_logger_init(49f6e7a06ebc5aa8).(); |
| 569 | CRITICAL_SECTION_INITcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:234:10`!(grn_glock); |
| 570 | grn_gtickcxx . . $ grn_gtick. = 0; |
| 571 | ctx->nextcxx . . $ _grn_ctx#next. = ctx; |
| 572 | ctx->prevcxx . . $ _grn_ctx#prev. = ctx; |
| 573 | rc = grn_ctx_init_internalcxx . . $ grn_ctx_init_internal(670fdc69e3f5dbb5).(ctx, 0); |
| 574 | if (rc) { |
| 575 | goto fail_ctx_init_internal; |
| 576 | } |
| 577 | ctx->encodingcxx . . $ _grn_ctx#encoding. = grn_encoding_parsecxx . . $ grn_encoding_parse(32570f06a4d1f2d3).(GRN_DEFAULT_ENCODINGcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:24:9`!); |
| 578 | rc = grn_timeval_nowcxx . . $ grn_timeval_now(b116eeadcb699bd1).(ctx, &grn_starttimecxx . . $ grn_starttime.); |
| 579 | if (rc) { |
| 580 | goto fail_start_time; |
| 581 | } |
| 582 | #ifdef WIN32 |
| 583 | { |
| 584 | SYSTEM_INFO si; |
| 585 | GetSystemInfo(&si); |
| 586 | grn_pagesize = si.dwAllocationGranularity; |
| 587 | } |
| 588 | #else /* WIN32 */ |
| 589 | if ((grn_pagesizecxx . . $ grn_pagesize. = sysconfcxx . . $ sysconf(dc1f09c09fbff20f).(_SC_PAGESIZEcxx . . $ `<external>/6393649343499073842/confname.h:134:9`!)) == -1) { |
| 590 | SERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:332:9`!("_SC_PAGESIZE"); |
| 591 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 592 | goto fail_page_size; |
| 593 | } |
| 594 | #endif /* WIN32 */ |
| 595 | if (grn_pagesizecxx . . $ grn_pagesize. & (grn_pagesizecxx . . $ grn_pagesize. - 1)) { |
| 596 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_CRIT, "pagesize=%x", grn_pagesize); |
| 597 | } |
| 598 | // expand_stack(); |
| 599 | if ((rc = grn_com_initcxx . . $ grn_com_init(d5bb96df31a8101).())) { |
| 600 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, "grn_com_init failed (%d)", rc); |
| 601 | goto fail_com; |
| 602 | } |
| 603 | if ((rc = grn_ctx_impl_initcxx . . $ grn_ctx_impl_init(2b4fa601bf4f1e5b).(ctx))) { |
| 604 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, "grn_ctx_impl_init failed (%d)", rc); |
| 605 | goto fail_ctx_impl; |
| 606 | } |
| 607 | if ((rc = grn_plugins_initcxx . . $ grn_plugins_init(d5bb96df31a8101).())) { |
| 608 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, "grn_plugins_init failed (%d)", rc); |
| 609 | goto fail_plugins; |
| 610 | } |
| 611 | if ((rc = grn_normalizer_initcxx . . $ grn_normalizer_init(d5bb96df31a8101).())) { |
| 612 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, "grn_normalizer_init failed (%d)", rc); |
| 613 | goto fail_normalizer; |
| 614 | } |
| 615 | if ((rc = grn_tokenizers_initcxx . . $ grn_tokenizers_init(d5bb96df31a8101).())) { |
| 616 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, "grn_tokenizers_init failed (%d)", rc); |
| 617 | goto fail_tokenizer; |
| 618 | } |
| 619 | grn_cache_initcxx . . $ grn_cache_init(49f6e7a06ebc5aa8).(); |
| 620 | if (!grn_request_canceler_initcxx . . $ grn_request_canceler_init(7c4be072098b358f).()) { |
| 621 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 622 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, |
| 623 | "failed to initialize request canceler (%d)", rc); |
| 624 | goto fail_request_canceler; |
| 625 | } |
| 626 | if (!grn_request_timer_initcxx . . $ grn_request_timer_init(7c4be072098b358f).()) { |
| 627 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 628 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_ALERT, |
| 629 | "failed to initialize request timer (%d)", rc); |
| 630 | goto fail_request_timer; |
| 631 | } |
| 632 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_NOTICE, "grn_init: <%s>", grn_get_version()); |
| 633 | check_overcommit_memorycxx . . $ check_overcommit_memory(b578cd6e53d5fe91).(ctx); |
| 634 | return rc; |
| 635 | |
| 636 | fail_request_timer: |
| 637 | grn_request_canceler_fincxx . . $ grn_request_canceler_fin(49f6e7a06ebc5aa8).(); |
| 638 | fail_request_canceler: |
| 639 | grn_cache_fincxx . . $ grn_cache_fin(49f6e7a06ebc5aa8).(); |
| 640 | fail_tokenizer: |
| 641 | grn_normalizer_fincxx . . $ grn_normalizer_fin(d5bb96df31a8101).(); |
| 642 | fail_normalizer: |
| 643 | grn_plugins_fincxx . . $ grn_plugins_fin(d5bb96df31a8101).(); |
| 644 | fail_plugins: |
| 645 | grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(ctx); |
| 646 | fail_ctx_impl: |
| 647 | grn_com_fincxx . . $ grn_com_fin(49f6e7a06ebc5aa8).(); |
| 648 | fail_com: |
| 649 | #ifndef WIN32 |
| 650 | fail_page_size: |
| 651 | #endif /* WIN32 */ |
| 652 | fail_start_time: |
| 653 | fail_ctx_init_internal: |
| 654 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_NOTICE, "grn_init: <%s>: failed", grn_get_version()); |
| 655 | grn_query_logger_fincxx . . $ grn_query_logger_fin(b578cd6e53d5fe91).(ctx); |
| 656 | grn_logger_fincxx . . $ grn_logger_fin(b578cd6e53d5fe91).(ctx); |
| 657 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(grn_glock); |
| 658 | grn_alloc_info_fincxx . . $ grn_alloc_info_fin(49f6e7a06ebc5aa8).(); |
| 659 | grn_fin_external_librariescxx . . $ grn_fin_external_libraries(49f6e7a06ebc5aa8).(); |
| 660 | return rc; |
| 661 | } |
| 662 | |
| 663 | grn_encodingcxx . . $ grn_encoding# |
| 664 | grn_get_default_encodingcxx . . $ grn_get_default_encoding(b69e54895e3c789).(void) |
| 665 | { |
| 666 | return grn_gctxcxx . . $ grn_gctx..encodingcxx . . $ _grn_ctx#encoding.; |
| 667 | } |
| 668 | |
| 669 | grn_rccxx . . $ grn_rc# |
| 670 | grn_set_default_encodingcxx . . $ grn_set_default_encoding(6f15d216cbf01f96).(grn_encodingcxx . . $ grn_encoding# encoding) |
| 671 | { |
| 672 | switch (encoding) { |
| 673 | case GRN_ENC_DEFAULTcxx . . $ GRN_ENC_DEFAULT. : |
| 674 | grn_gctxcxx . . $ grn_gctx..encodingcxx . . $ _grn_ctx#encoding. = grn_encoding_parsecxx . . $ grn_encoding_parse(32570f06a4d1f2d3).(GRN_DEFAULT_ENCODINGcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:24:9`!); |
| 675 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 676 | case GRN_ENC_NONEcxx . . $ GRN_ENC_NONE. : |
| 677 | case GRN_ENC_EUC_JPcxx . . $ GRN_ENC_EUC_JP. : |
| 678 | case GRN_ENC_UTF8cxx . . $ GRN_ENC_UTF8. : |
| 679 | case GRN_ENC_SJIScxx . . $ GRN_ENC_SJIS. : |
| 680 | case GRN_ENC_LATIN1cxx . . $ GRN_ENC_LATIN1. : |
| 681 | case GRN_ENC_KOI8Rcxx . . $ GRN_ENC_KOI8R. : |
| 682 | grn_gctxcxx . . $ grn_gctx..encodingcxx . . $ _grn_ctx#encoding. = encoding; |
| 683 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 684 | default : |
| 685 | return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; |
| 686 | } |
| 687 | } |
| 688 | |
| 689 | grn_command_versioncxx . . $ grn_command_version# |
| 690 | grn_get_default_command_versioncxx . . $ grn_get_default_command_version(3a765c23ebe28c14).(void) |
| 691 | { |
| 692 | return grn_ctx_get_command_versioncxx . . $ grn_ctx_get_command_version(13d588302524a02f).(&grn_gctxcxx . . $ grn_gctx.); |
| 693 | } |
| 694 | |
| 695 | grn_rccxx . . $ grn_rc# |
| 696 | grn_set_default_command_versioncxx . . $ grn_set_default_command_version(c2afa1c5fb9f0f17).(grn_command_versioncxx . . $ grn_command_version# version) |
| 697 | { |
| 698 | return grn_ctx_set_command_versioncxx . . $ grn_ctx_set_command_version(5a7d37f522bc2602).(&grn_gctxcxx . . $ grn_gctx., version); |
| 699 | } |
| 700 | |
| 701 | long long int |
| 702 | grn_get_default_match_escalation_thresholdcxx . . $ grn_get_default_match_escalation_threshold(a5d9f2bf8849668d).(void) |
| 703 | { |
| 704 | return grn_ctx_get_match_escalation_thresholdcxx . . $ grn_ctx_get_match_escalation_threshold(9709bc60e7a43664).(&grn_gctxcxx . . $ grn_gctx.); |
| 705 | } |
| 706 | |
| 707 | grn_rccxx . . $ grn_rc# |
| 708 | grn_set_default_match_escalation_thresholdcxx . . $ grn_set_default_match_escalation_threshold(320025190a680821).(long long int threshold) |
| 709 | { |
| 710 | return grn_ctx_set_match_escalation_thresholdcxx . . $ grn_ctx_set_match_escalation_threshold(5bc44839f847f2d9).(&grn_gctxcxx . . $ grn_gctx., threshold); |
| 711 | } |
| 712 | |
| 713 | int |
| 714 | grn_get_lock_timeoutcxx . . $ grn_get_lock_timeout(b126dc7c1de90089).(void) |
| 715 | { |
| 716 | return grn_lock_timeoutcxx . . $ grn_lock_timeout.; |
| 717 | } |
| 718 | |
| 719 | grn_rccxx . . $ grn_rc# |
| 720 | grn_set_lock_timeoutcxx . . $ grn_set_lock_timeout(e8453182b6607dd2).(int timeout) |
| 721 | { |
| 722 | grn_lock_timeoutcxx . . $ grn_lock_timeout. = timeout; |
| 723 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 724 | } |
| 725 | |
| 726 | grn_rccxx . . $ grn_rc# |
| 727 | grn_fincxx . . $ grn_fin(d5bb96df31a8101).(void) |
| 728 | { |
| 729 | grn_ctxcxx . . $ grn_ctx# *ctx, *ctx_; |
| 730 | if (grn_gctxcxx . . $ grn_gctx..statcxx . . $ _grn_ctx#stat. == GRN_CTX_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:205:9`!) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 731 | for (ctx = grn_gctxcxx . . $ grn_gctx..nextcxx . . $ _grn_ctx#next.; ctx != &grn_gctxcxx . . $ grn_gctx.; ctx = ctx_) { |
| 732 | ctx_ = ctx->nextcxx . . $ _grn_ctx#next.; |
| 733 | if (ctx->statcxx . . $ _grn_ctx#stat. != GRN_CTX_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:205:9`!) { grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(ctx); } |
| 734 | if (ctx->flagscxx . . $ _grn_ctx#flags. & GRN_CTX_ALLOCATEDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:426:9`!) { |
| 735 | ctx->nextcxx . . $ _grn_ctx#next.->prevcxx . . $ _grn_ctx#prev. = ctx->prevcxx . . $ _grn_ctx#prev.; |
| 736 | ctx->prevcxx . . $ _grn_ctx#prev.->nextcxx . . $ _grn_ctx#next. = ctx->nextcxx . . $ _grn_ctx#next.; |
| 737 | GRN_GFREEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_alloc.h:48:9`!(ctx); |
| 738 | } |
| 739 | } |
| 740 | grn_query_logger_fincxx . . $ grn_query_logger_fin(b578cd6e53d5fe91).(ctx); |
| 741 | grn_request_timer_fincxx . . $ grn_request_timer_fin(49f6e7a06ebc5aa8).(); |
| 742 | grn_request_canceler_fincxx . . $ grn_request_canceler_fin(49f6e7a06ebc5aa8).(); |
| 743 | grn_cache_fincxx . . $ grn_cache_fin(49f6e7a06ebc5aa8).(); |
| 744 | grn_tokenizers_fincxx . . $ grn_tokenizers_fin(d5bb96df31a8101).(); |
| 745 | grn_normalizer_fincxx . . $ grn_normalizer_fin(d5bb96df31a8101).(); |
| 746 | grn_plugins_fincxx . . $ grn_plugins_fin(d5bb96df31a8101).(); |
| 747 | grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(ctx); |
| 748 | grn_com_fincxx . . $ grn_com_fin(49f6e7a06ebc5aa8).(); |
| 749 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_NOTICE, "grn_fin (%d)", grn_alloc_count()); |
| 750 | grn_logger_fincxx . . $ grn_logger_fin(b578cd6e53d5fe91).(ctx); |
| 751 | CRITICAL_SECTION_FINcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:237:10`!(grn_glock); |
| 752 | grn_alloc_info_fincxx . . $ grn_alloc_info_fin(49f6e7a06ebc5aa8).(); |
| 753 | grn_fin_external_librariescxx . . $ grn_fin_external_libraries(49f6e7a06ebc5aa8).(); |
| 754 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 755 | } |
| 756 | |
| 757 | grn_rccxx . . $ grn_rc# |
| 758 | grn_ctx_connectcxx . . $ grn_ctx_connect(4b71725af6a0594b).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *host, int port, int flags) |
| 759 | { |
| 760 | GRN_API_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:45:9`!; |
| 761 | if (!ctx->implcxx . . $ _grn_ctx#impl.) { goto exit; } |
| 762 | { |
| 763 | grn_comcxx . . $ grn_com# *com = grn_com_copencxx . . $ grn_com_copen(99562373e8fbda4e).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, host, port); |
| 764 | if (com) { |
| 765 | ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com. = com; |
| 766 | } |
| 767 | } |
| 768 | exit : |
| 769 | GRN_API_RETURNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:59:9`!(ctx->rc); |
| 770 | } |
| 771 | |
| 772 | grn_rccxx . . $ grn_rc# |
| 773 | grn_ctx_closecxx . . $ grn_ctx_close(2b4fa601bf4f1e5b).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 774 | { |
| 775 | grn_rccxx . . $ grn_rc# rc = grn_ctx_fincxx . . $ grn_ctx_fin(2b4fa601bf4f1e5b).(ctx); |
| 776 | CRITICAL_SECTION_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:235:10`!(grn_glock); |
| 777 | ctx->nextcxx . . $ _grn_ctx#next.->prevcxx . . $ _grn_ctx#prev. = ctx->prevcxx . . $ _grn_ctx#prev.; |
| 778 | ctx->prevcxx . . $ _grn_ctx#prev.->nextcxx . . $ _grn_ctx#next. = ctx->nextcxx . . $ _grn_ctx#next.; |
| 779 | CRITICAL_SECTION_LEAVEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn.h:236:10`!(grn_glock); |
| 780 | GRN_GFREEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_alloc.h:48:9`!(ctx); |
| 781 | return rc; |
| 782 | } |
| 783 | |
| 784 | grn_command_versioncxx . . $ grn_command_version# |
| 785 | grn_ctx_get_command_versioncxx . . $ grn_ctx_get_command_version(13d588302524a02f).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 786 | { |
| 787 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 788 | return ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version.; |
| 789 | } else { |
| 790 | return GRN_COMMAND_VERSION_STABLEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:156:9`!; |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | grn_rccxx . . $ grn_rc# |
| 795 | grn_ctx_set_command_versioncxx . . $ grn_ctx_set_command_version(5a7d37f522bc2602).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_command_versioncxx . . $ grn_command_version# version) |
| 796 | { |
| 797 | switch (version) { |
| 798 | case GRN_COMMAND_VERSION_DEFAULTcxx . . $ GRN_COMMAND_VERSION_DEFAULT. : |
| 799 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version. = GRN_COMMAND_VERSION_STABLEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:156:9`!; |
| 800 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 801 | default : |
| 802 | if (GRN_COMMAND_VERSION_MINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:155:9`! <= version && |
| 803 | version <= GRN_COMMAND_VERSION_MAXcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:157:9`!) { |
| 804 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#version. = version; |
| 805 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 806 | } else { |
| 807 | return GRN_UNSUPPORTED_COMMAND_VERSIONcxx . . $ GRN_UNSUPPORTED_COMMAND_VERSION.; |
| 808 | } |
| 809 | } |
| 810 | } |
| 811 | |
| 812 | grn_content_typecxx . . $ grn_content_type# |
| 813 | grn_ctx_get_output_typecxx . . $ grn_ctx_get_output_type(969c4efba1cf6576).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 814 | { |
| 815 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 816 | return ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type.; |
| 817 | } else { |
| 818 | return GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | grn_rccxx . . $ grn_rc# |
| 823 | grn_ctx_set_output_typecxx . . $ grn_ctx_set_output_type(885ce0395b04a95d).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_content_typecxx . . $ grn_content_type# type) |
| 824 | { |
| 825 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 826 | |
| 827 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 828 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = type; |
| 829 | switch (ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type.) { |
| 830 | case GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE. : |
| 831 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/octet-stream"; |
| 832 | break; |
| 833 | case GRN_CONTENT_TSVcxx . . $ GRN_CONTENT_TSV. : |
| 834 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/tab-separated-values"; |
| 835 | break; |
| 836 | case GRN_CONTENT_JSONcxx . . $ GRN_CONTENT_JSON. : |
| 837 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/json"; |
| 838 | break; |
| 839 | case GRN_CONTENT_XMLcxx . . $ GRN_CONTENT_XML. : |
| 840 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/xml"; |
| 841 | break; |
| 842 | case GRN_CONTENT_MSGPACKcxx . . $ GRN_CONTENT_MSGPACK. : |
| 843 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/x-msgpack"; |
| 844 | break; |
| 845 | case GRN_CONTENT_GROONGA_COMMAND_LISTcxx . . $ GRN_CONTENT_GROONGA_COMMAND_LIST. : |
| 846 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/x-groonga-command-list"; |
| 847 | break; |
| 848 | } |
| 849 | } else { |
| 850 | rc = GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; |
| 851 | } |
| 852 | |
| 853 | return rc; |
| 854 | } |
| 855 | |
| 856 | const char * |
| 857 | grn_ctx_get_mime_typecxx . . $ grn_ctx_get_mime_type(2612231286d38908).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 858 | { |
| 859 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 860 | return ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type.; |
| 861 | } else { |
| 862 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | long long int |
| 867 | grn_ctx_get_match_escalation_thresholdcxx . . $ grn_ctx_get_match_escalation_threshold(9709bc60e7a43664).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 868 | { |
| 869 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 870 | return ctx->implcxx . . $ _grn_ctx#impl.->match_escalation_thresholdcxx . . $ _grn_ctx_impl#match_escalation_threshold.; |
| 871 | } else { |
| 872 | return GRN_DEFAULT_MATCH_ESCALATION_THRESHOLDcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:25:9`!; |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | grn_rccxx . . $ grn_rc# |
| 877 | grn_ctx_set_match_escalation_thresholdcxx . . $ grn_ctx_set_match_escalation_threshold(5bc44839f847f2d9).(grn_ctxcxx . . $ grn_ctx# *ctx, long long int threshold) |
| 878 | { |
| 879 | ctx->implcxx . . $ _grn_ctx#impl.->match_escalation_thresholdcxx . . $ _grn_ctx_impl#match_escalation_threshold. = threshold; |
| 880 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 881 | } |
| 882 | |
| 883 | grn_content_typecxx . . $ grn_content_type# |
| 884 | grn_get_ctypecxx . . $ grn_get_ctype(9fae9b3fdf32cc2f).(grn_objcxx . . $ grn_obj# *var) |
| 885 | { |
| 886 | return grn_content_type_parsecxx . . $ grn_content_type_parse(d9b82c2cea93b286).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, var, GRN_CONTENT_JSONcxx . . $ GRN_CONTENT_JSON.); |
| 887 | } |
| 888 | |
| 889 | grn_content_typecxx . . $ grn_content_type# |
| 890 | grn_content_type_parsecxx . . $ grn_content_type_parse(d9b82c2cea93b286).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 891 | grn_objcxx . . $ grn_obj# *var, |
| 892 | grn_content_typecxx . . $ grn_content_type# default_value) |
| 893 | { |
| 894 | grn_content_typecxx . . $ grn_content_type# ct = default_value; |
| 895 | if (var->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain. == GRN_DB_INT32cxx . . $ GRN_DB_INT32.) { |
| 896 | ct = GRN_INT32_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1469:9`!(var); |
| 897 | } else if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(var)) { |
| 898 | switch (*(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(var))) { |
| 899 | case 't' : |
| 900 | case 'T' : |
| 901 | ct = GRN_CONTENT_TSVcxx . . $ GRN_CONTENT_TSV.; |
| 902 | break; |
| 903 | case 'j' : |
| 904 | case 'J' : |
| 905 | ct = GRN_CONTENT_JSONcxx . . $ GRN_CONTENT_JSON.; |
| 906 | break; |
| 907 | case 'x' : |
| 908 | case 'X' : |
| 909 | ct = GRN_CONTENT_XMLcxx . . $ GRN_CONTENT_XML.; |
| 910 | break; |
| 911 | } |
| 912 | } |
| 913 | return ct; |
| 914 | } |
| 915 | |
| 916 | static void |
| 917 | get_content_mime_typecxx . . $ get_content_mime_type(af7f37f5046ba4a0).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *p, const char *pe) |
| 918 | { |
| 919 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 920 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/octet-stream"; |
| 921 | |
| 922 | if (p + 2 <= pe) { |
| 923 | switch (*p) { |
| 924 | case 'c' : |
| 925 | if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "css", 3)) { |
| 926 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 927 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/css"; |
| 928 | } |
| 929 | break; |
| 930 | case 'g' : |
| 931 | if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "gif", 3)) { |
| 932 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 933 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "image/gif"; |
| 934 | } |
| 935 | break; |
| 936 | case 'h' : |
| 937 | if (p + 4 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "html", 4)) { |
| 938 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 939 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/html"; |
| 940 | } |
| 941 | break; |
| 942 | case 'j' : |
| 943 | if (!memcmpcxx . . $ memcmp(36f949851efa3055).(p, "js", 2)) { |
| 944 | if (p + 2 == pe) { |
| 945 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 946 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/javascript"; |
| 947 | } else if (p + 4 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p + 2, "on", 2)) { |
| 948 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_JSONcxx . . $ GRN_CONTENT_JSON.; |
| 949 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/json"; |
| 950 | } |
| 951 | } else if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "jpg", 3)) { |
| 952 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 953 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "image/jpeg"; |
| 954 | } |
| 955 | break; |
| 956 | #ifdef GRN_WITH_MESSAGE_PACK |
| 957 | case 'm' : |
| 958 | if (p + 7 == pe && !memcmp(p, "msgpack", 7)) { |
| 959 | ctx->impl->output.type = GRN_CONTENT_MSGPACK; |
| 960 | ctx->impl->output.mime_type = "application/x-msgpack"; |
| 961 | } |
| 962 | break; |
| 963 | #endif |
| 964 | case 'p' : |
| 965 | if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "png", 3)) { |
| 966 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 967 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "image/png"; |
| 968 | } |
| 969 | break; |
| 970 | case 't' : |
| 971 | if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "txt", 3)) { |
| 972 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_NONEcxx . . $ GRN_CONTENT_NONE.; |
| 973 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/plain"; |
| 974 | } else if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "tsv", 3)) { |
| 975 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_TSVcxx . . $ GRN_CONTENT_TSV.; |
| 976 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/tab-separated-values"; |
| 977 | } |
| 978 | break; |
| 979 | case 'x': |
| 980 | if (p + 3 == pe && !memcmpcxx . . $ memcmp(36f949851efa3055).(p, "xml", 3)) { |
| 981 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_XMLcxx . . $ GRN_CONTENT_XML.; |
| 982 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "text/xml"; |
| 983 | } |
| 984 | break; |
| 985 | } |
| 986 | } |
| 987 | } |
| 988 | |
| 989 | static void |
| 990 | grn_str_get_mime_typecxx . . $ grn_str_get_mime_type(843741c7c76e9896).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *p, const char *pe, |
| 991 | const char **key_end, const char **filename_end) |
| 992 | { |
| 993 | const char *pd = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 994 | for (; p < pe && *p != '?' && *p != '#'; p++) { |
| 995 | if (*p == '.') { pd = p; } |
| 996 | } |
| 997 | *filename_end = p; |
| 998 | if (pd && pd < p) { |
| 999 | get_content_mime_typecxx . . $ get_content_mime_type(af7f37f5046ba4a0).(ctx, pd + 1, p); |
| 1000 | *key_end = pd; |
| 1001 | } else { |
| 1002 | *key_end = pe; |
| 1003 | } |
| 1004 | } |
| 1005 | |
| 1006 | static void |
| 1007 | get_command_versioncxx . . $ get_command_version(af7f37f5046ba4a0).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *p, const char *pe) |
| 1008 | { |
| 1009 | grn_command_versioncxx . . $ grn_command_version# version; |
| 1010 | const char *rest; |
| 1011 | |
| 1012 | version = grn_atouicxx . . $ grn_atoui(2da3fe788a18ce64).(p, pe, &rest); |
| 1013 | if (pe == rest) { |
| 1014 | grn_rccxx . . $ grn_rc# rc; |
| 1015 | rc = grn_ctx_set_command_versioncxx . . $ grn_ctx_set_command_version(5a7d37f522bc2602).(ctx, version); |
| 1016 | if (rc == GRN_UNSUPPORTED_COMMAND_VERSIONcxx . . $ GRN_UNSUPPORTED_COMMAND_VERSION.) { |
| 1017 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(rc, |
| 1018 | "unsupported command version is specified: %d: " |
| 1019 | "stable command version: %d: " |
| 1020 | "available command versions: %d-%d", |
| 1021 | version, |
| 1022 | GRN_COMMAND_VERSION_STABLEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:156:9`!, |
| 1023 | GRN_COMMAND_VERSION_MINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:155:9`!, GRN_COMMAND_VERSION_MAXcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:157:9`!); |
| 1024 | } |
| 1025 | } |
| 1026 | } |
| 1027 | |
| 1028 | #define INDEX_HTMLcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1028:9`! "index.html" |
| 1029 | #define OUTPUT_TYPEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1029:9`! "output_type" |
| 1030 | #define COMMAND_VERSIONcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1030:9`! "command_version" |
| 1031 | #define REQUEST_IDcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1031:9`! "request_id" |
| 1032 | #define REQUEST_TIMEOUTcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1032:9`! "request_timeout" |
| 1033 | #define OUTPUT_PRETTYcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1033:9`! "output_pretty" |
| 1034 | #define EXPR_MISSINGcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1034:9`! "expr_missing" |
| 1035 | #define OUTPUT_TYPE_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1035:9`! (sizeof(OUTPUT_TYPEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1029:9`!) - 1) |
| 1036 | #define COMMAND_VERSION_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1036:9`! (sizeof(COMMAND_VERSIONcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1030:9`!) - 1) |
| 1037 | #define REQUEST_ID_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1037:9`! (sizeof(REQUEST_IDcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1031:9`!) - 1) |
| 1038 | #define REQUEST_TIMEOUT_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1038:9`! (sizeof(REQUEST_TIMEOUTcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1032:9`!) - 1) |
| 1039 | #define OUTPUT_PRETTY_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1039:9`! (sizeof(OUTPUT_PRETTYcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1033:9`!) - 1) |
| 1040 | |
| 1041 | #define HTTP_QUERY_PAIR_DELIMITERcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1041:9`! "=" |
| 1042 | #define HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`! "&;" |
| 1043 | |
| 1044 | static inline int |
| 1045 | command_proc_pcxx . . $ command_proc_p(4da8ed8be9e85098).(grn_objcxx . . $ grn_obj# *expr) |
| 1046 | { |
| 1047 | return (expr->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_PROCcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:378:9`! && |
| 1048 | ((grn_proccxx . . $ grn_proc# *)expr)->typecxx . . $ _grn_proc#type. == GRN_PROC_COMMANDcxx . . $ GRN_PROC_COMMAND.); |
| 1049 | } |
| 1050 | |
| 1051 | grn_objcxx . . $ grn_obj# * |
| 1052 | grn_ctx_qe_exec_uricxx . . $ grn_ctx_qe_exec_uri(2a3c1b0f2aa12628).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *path, uint32_tcxx . . $ uint32_t# path_len) |
| 1053 | { |
| 1054 | grn_objcxx . . $ grn_obj# buf, *expr, *val; |
| 1055 | grn_objcxx . . $ grn_obj# request_id; |
| 1056 | double request_timeout; |
| 1057 | const char *p = path, *e = path + path_len, *v, *key_end, *filename_end; |
| 1058 | |
| 1059 | request_timeout = grn_get_default_request_timeoutcxx . . $ grn_get_default_request_timeout(31fa7155c10fdd13).(); |
| 1060 | |
| 1061 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&buf, 0); |
| 1062 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&request_id, 0); |
| 1063 | p = grn_text_urldeccxx . . $ grn_text_urldec(7474df649d8c100).(ctx, &buf, p, e, '?'); |
| 1064 | if (!GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf)) { GRN_TEXT_SETScxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1299:9`!(ctx, &buf, INDEX_HTMLcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1028:9`!); } |
| 1065 | v = GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf); |
| 1066 | grn_str_get_mime_typecxx . . $ grn_str_get_mime_type(843741c7c76e9896).(ctx, v, GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&buf), &key_end, &filename_end); |
| 1067 | if ((GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf) >= 2 && v[0] == 'd' && v[1] == '/')) { |
| 1068 | const char *command_name = v + 2; |
| 1069 | int command_name_size = key_end - command_name; |
| 1070 | expr = grn_ctx_getcxx . . $ grn_ctx_get(70fde0087014f9ea).(ctx, command_name, command_name_size); |
| 1071 | if (expr && command_proc_pcxx . . $ command_proc_p(4da8ed8be9e85098).(expr)) { |
| 1072 | while (p < e) { |
| 1073 | int l; |
| 1074 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1075 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &buf, p, e, HTTP_QUERY_PAIR_DELIMITERcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1041:9`!); |
| 1076 | v = GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf); |
| 1077 | l = GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf); |
| 1078 | if (l == OUTPUT_TYPE_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1035:9`! && !memcmpcxx . . $ memcmp(36f949851efa3055).(v, OUTPUT_TYPEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1029:9`!, OUTPUT_TYPE_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1035:9`!)) { |
| 1079 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1080 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &buf, p, e, HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1081 | v = GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf); |
| 1082 | get_content_mime_typecxx . . $ get_content_mime_type(af7f37f5046ba4a0).(ctx, v, GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&buf)); |
| 1083 | } else if (l == COMMAND_VERSION_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1036:9`! && |
| 1084 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, COMMAND_VERSIONcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1030:9`!, COMMAND_VERSION_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1036:9`!)) { |
| 1085 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1086 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &buf, p, e, HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1087 | get_command_versioncxx . . $ get_command_version(af7f37f5046ba4a0).(ctx, GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&buf)); |
| 1088 | if (ctx->rccxx . . $ _grn_ctx#rc.) { goto exit; } |
| 1089 | } else if (l == REQUEST_ID_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1037:9`! && |
| 1090 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, REQUEST_IDcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1031:9`!, REQUEST_ID_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1037:9`!)) { |
| 1091 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&request_id); |
| 1092 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &request_id, p, e, |
| 1093 | HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1094 | } else if (l == REQUEST_TIMEOUT_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1038:9`! && |
| 1095 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, REQUEST_TIMEOUTcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1032:9`!, REQUEST_TIMEOUT_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1038:9`!)) { |
| 1096 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1097 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &buf, p, e, HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1098 | GRN_TEXT_PUTCcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1294:9`!(ctx, &buf, '\0'); |
| 1099 | request_timeout = strtodcxx . . $ strtod(3dfe5620a0d3160e).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1100 | } else if (l == OUTPUT_PRETTY_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1039:9`! && |
| 1101 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, OUTPUT_PRETTYcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1033:9`!, OUTPUT_PRETTY_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1039:9`!)) { |
| 1102 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1103 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, &buf, p, e, HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1104 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf) == strlencxx . . $ strlen(751346f8406fd082).("yes") && |
| 1105 | !memcmpcxx . . $ memcmp(36f949851efa3055).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), "yes", GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf))) { |
| 1106 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..is_prettycxx . . $ _grn_ctx_impl#$anonymous_type_3#is_pretty. = GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 1107 | } else { |
| 1108 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..is_prettycxx . . $ _grn_ctx_impl#$anonymous_type_3#is_pretty. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1109 | } |
| 1110 | } else { |
| 1111 | if (!(val = grn_expr_get_or_add_varcxx . . $ grn_expr_get_or_add_var(c00e49795c44129a).(ctx, expr, v, l))) { |
| 1112 | val = &buf; |
| 1113 | } |
| 1114 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, val, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT., 0); |
| 1115 | p = grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(ctx, val, p, e, HTTP_QUERY_PAIRS_DELIMITERScxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1042:9`!); |
| 1116 | } |
| 1117 | } |
| 1118 | if (request_timeout > 0 && GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id) == 0) { |
| 1119 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, &request_id, "%p", ctx); |
| 1120 | } |
| 1121 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id) > 0) { |
| 1122 | GRN_TEXT_SETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1285:9`!(ctx, &ctx->impl->current_request_id, |
| 1123 | GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1124 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id)); |
| 1125 | grn_request_canceler_registercxx . . $ grn_request_canceler_register(ae297cf89bde2f1f).(ctx, |
| 1126 | GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1127 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id)); |
| 1128 | if (request_timeout > 0.0) { |
| 1129 | ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id. = |
| 1130 | grn_request_timer_registercxx . . $ grn_request_timer_register(952ac9b02f270c1d).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1131 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id), |
| 1132 | request_timeout); |
| 1133 | } |
| 1134 | } |
| 1135 | ctx->implcxx . . $ _grn_ctx#impl.->curr_exprcxx . . $ _grn_ctx_impl#curr_expr. = expr; |
| 1136 | grn_expr_execcxx . . $ grn_expr_exec(e5f715bd58cd6451).(ctx, expr, 0); |
| 1137 | } else { |
| 1138 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(GRN_INVALID_ARGUMENT, "invalid command name: %.*s", |
| 1139 | command_name_size, command_name); |
| 1140 | } |
| 1141 | } else if ((expr = grn_ctx_getcxx . . $ grn_ctx_get(70fde0087014f9ea).(ctx, GRN_EXPR_MISSING_NAMEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx_impl.h:41:9`!, |
| 1142 | strlencxx . . $ strlen(751346f8406fd082).(GRN_EXPR_MISSING_NAMEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx_impl.h:41:9`!)))) { |
| 1143 | if ((val = grn_expr_get_var_by_offsetcxx . . $ grn_expr_get_var_by_offset(fe791abc79590565).(ctx, expr, 0))) { |
| 1144 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, val, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT., 0); |
| 1145 | GRN_TEXT_SETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1285:9`!(ctx, val, v, filename_end - v); |
| 1146 | } |
| 1147 | ctx->implcxx . . $ _grn_ctx#impl.->curr_exprcxx . . $ _grn_ctx_impl#curr_expr. = expr; |
| 1148 | grn_expr_execcxx . . $ grn_expr_exec(e5f715bd58cd6451).(ctx, expr, 0); |
| 1149 | } |
| 1150 | exit : |
| 1151 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &request_id); |
| 1152 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &buf); |
| 1153 | |
| 1154 | return expr; |
| 1155 | } |
| 1156 | |
| 1157 | grn_objcxx . . $ grn_obj# * |
| 1158 | grn_ctx_qe_execcxx . . $ grn_ctx_qe_exec(2a3c1b0f2aa12628).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *str, uint32_tcxx . . $ uint32_t# str_len) |
| 1159 | { |
| 1160 | char tok_type; |
| 1161 | int offset = 0; |
| 1162 | grn_objcxx . . $ grn_obj# buf, *expr = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, *val = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1163 | grn_objcxx . . $ grn_obj# request_id; |
| 1164 | double request_timeout; |
| 1165 | const char *p = str, *e = str + str_len, *v; |
| 1166 | |
| 1167 | request_timeout = grn_get_default_request_timeoutcxx . . $ grn_get_default_request_timeout(31fa7155c10fdd13).(); |
| 1168 | |
| 1169 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&buf, 0); |
| 1170 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&request_id, 0); |
| 1171 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1172 | expr = grn_ctx_getcxx . . $ grn_ctx_get(70fde0087014f9ea).(ctx, GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf)); |
| 1173 | while (p < e) { |
| 1174 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1175 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1176 | v = GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf); |
| 1177 | switch (tok_type) { |
| 1178 | case GRN_TOK_VOIDcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_str.h:92:9`! : |
| 1179 | p = e; |
| 1180 | break; |
| 1181 | case GRN_TOK_SYMBOLcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_str.h:93:9`! : |
| 1182 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf) > 2 && v[0] == '-' && v[1] == '-') { |
| 1183 | int l = GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf) - 2; |
| 1184 | v += 2; |
| 1185 | if (l == OUTPUT_TYPE_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1035:9`! && !memcmpcxx . . $ memcmp(36f949851efa3055).(v, OUTPUT_TYPEcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1029:9`!, OUTPUT_TYPE_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1035:9`!)) { |
| 1186 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1187 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1188 | v = GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf); |
| 1189 | get_content_mime_typecxx . . $ get_content_mime_type(af7f37f5046ba4a0).(ctx, v, GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&buf)); |
| 1190 | } else if (l == COMMAND_VERSION_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1036:9`! && |
| 1191 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, COMMAND_VERSIONcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1030:9`!, COMMAND_VERSION_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1036:9`!)) { |
| 1192 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1193 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1194 | get_command_versioncxx . . $ get_command_version(af7f37f5046ba4a0).(ctx, GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), GRN_BULK_CURRcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1213:9`!(&buf)); |
| 1195 | if (ctx->rccxx . . $ _grn_ctx#rc.) { goto exit; } |
| 1196 | } else if (l == REQUEST_ID_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1037:9`! && |
| 1197 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, REQUEST_IDcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1031:9`!, REQUEST_ID_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1037:9`!)) { |
| 1198 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&request_id); |
| 1199 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &request_id, p, e, &tok_type); |
| 1200 | } else if (l == REQUEST_TIMEOUT_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1038:9`! && |
| 1201 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, REQUEST_TIMEOUTcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1032:9`!, REQUEST_TIMEOUT_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1038:9`!)) { |
| 1202 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1203 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1204 | GRN_TEXT_PUTCcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1294:9`!(ctx, &buf, '\0'); |
| 1205 | request_timeout = strtodcxx . . $ strtod(3dfe5620a0d3160e).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1206 | } else if (l == OUTPUT_PRETTY_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1039:9`! && |
| 1207 | !memcmpcxx . . $ memcmp(36f949851efa3055).(v, OUTPUT_PRETTYcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1033:9`!, OUTPUT_PRETTY_LENcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1039:9`!)) { |
| 1208 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1209 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, p, e, &tok_type); |
| 1210 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf) == strlencxx . . $ strlen(751346f8406fd082).("yes") && |
| 1211 | !memcmpcxx . . $ memcmp(36f949851efa3055).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), "yes", GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf))) { |
| 1212 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..is_prettycxx . . $ _grn_ctx_impl#$anonymous_type_3#is_pretty. = GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 1213 | } else { |
| 1214 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..is_prettycxx . . $ _grn_ctx_impl#$anonymous_type_3#is_pretty. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1215 | } |
| 1216 | } else if (expr && (val = grn_expr_get_or_add_varcxx . . $ grn_expr_get_or_add_var(c00e49795c44129a).(ctx, expr, v, l))) { |
| 1217 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, val, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT., 0); |
| 1218 | p = grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, val, p, e, &tok_type); |
| 1219 | } else { |
| 1220 | p = e; |
| 1221 | } |
| 1222 | break; |
| 1223 | } |
| 1224 | // fallthru |
| 1225 | case GRN_TOK_STRINGcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_str.h:94:9`! : |
| 1226 | case GRN_TOK_QUOTEcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_str.h:95:9`! : |
| 1227 | if (expr && (val = grn_expr_get_var_by_offsetcxx . . $ grn_expr_get_var_by_offset(fe791abc79590565).(ctx, expr, offset++))) { |
| 1228 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, val, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT., 0); |
| 1229 | GRN_TEXT_PUTcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1292:9`!(ctx, val, GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf)); |
| 1230 | } else { |
| 1231 | p = e; |
| 1232 | } |
| 1233 | break; |
| 1234 | } |
| 1235 | } |
| 1236 | if (request_timeout > 0 && GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id) == 0) { |
| 1237 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, &request_id, "%p", ctx); |
| 1238 | } |
| 1239 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id) > 0) { |
| 1240 | GRN_TEXT_SETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1285:9`!(ctx, &ctx->impl->current_request_id, |
| 1241 | GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1242 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id)); |
| 1243 | grn_request_canceler_registercxx . . $ grn_request_canceler_register(ae297cf89bde2f1f).(ctx, |
| 1244 | GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1245 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id)); |
| 1246 | if (request_timeout > 0.0) { |
| 1247 | ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id. = |
| 1248 | grn_request_timer_registercxx . . $ grn_request_timer_register(952ac9b02f270c1d).(GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&request_id), |
| 1249 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&request_id), |
| 1250 | request_timeout); |
| 1251 | } |
| 1252 | } |
| 1253 | ctx->implcxx . . $ _grn_ctx#impl.->curr_exprcxx . . $ _grn_ctx_impl#curr_expr. = expr; |
| 1254 | if (expr && command_proc_pcxx . . $ command_proc_p(4da8ed8be9e85098).(expr)) { |
| 1255 | grn_expr_execcxx . . $ grn_expr_exec(e5f715bd58cd6451).(ctx, expr, 0); |
| 1256 | } else { |
| 1257 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&buf); |
| 1258 | grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(9eae1f4c1114a3d).(ctx, &buf, str, str + str_len, &tok_type); |
| 1259 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf)) { |
| 1260 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(GRN_INVALID_ARGUMENT, "invalid command name: %.*s", |
| 1261 | (int)GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf), GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf)); |
| 1262 | } |
| 1263 | } |
| 1264 | exit : |
| 1265 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &request_id); |
| 1266 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &buf); |
| 1267 | |
| 1268 | return expr; |
| 1269 | } |
| 1270 | |
| 1271 | grn_rccxx . . $ grn_rc# |
| 1272 | grn_ctx_sendvcxx . . $ grn_ctx_sendv(ed016bc7ceda3be3).(grn_ctxcxx . . $ grn_ctx# *ctx, int argc, char **argv, int flags) |
| 1273 | { |
| 1274 | grn_objcxx . . $ grn_obj# buf; |
| 1275 | GRN_API_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:45:9`!; |
| 1276 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&buf, 0); |
| 1277 | while (argc--) { |
| 1278 | // todo : encode into json like syntax |
| 1279 | GRN_TEXT_PUTScxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1298:9`!(ctx, &buf, *argv); |
| 1280 | argv++; |
| 1281 | if (argc) { GRN_TEXT_PUTCcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1294:9`!(ctx, &buf, ' '); } |
| 1282 | } |
| 1283 | grn_ctx_sendcxx . . $ grn_ctx_send(dac8ec282379d9e0).(ctx, GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(&buf), GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&buf), flags); |
| 1284 | GRN_OBJ_FINcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:436:9`!(ctx, &buf); |
| 1285 | GRN_API_RETURNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:59:9`!(ctx->rc); |
| 1286 | } |
| 1287 | |
| 1288 | static int |
| 1289 | comment_command_pcxx . . $ comment_command_p(1df18506ef0a631b).(const char *command, unsigned int length) |
| 1290 | { |
| 1291 | const char *p, *e; |
| 1292 | |
| 1293 | e = command + length; |
| 1294 | for (p = command; p < e; p++) { |
| 1295 | switch (*p) { |
| 1296 | case '#' : |
| 1297 | return GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 1298 | case ' ' : |
| 1299 | case '\t' : |
| 1300 | break; |
| 1301 | default : |
| 1302 | return GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1303 | } |
| 1304 | } |
| 1305 | return GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1306 | } |
| 1307 | |
| 1308 | unsigned int |
| 1309 | grn_ctx_sendcxx . . $ grn_ctx_send(dac8ec282379d9e0).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *str, unsigned int str_len, int flags) |
| 1310 | { |
| 1311 | if (!ctx) { return 0; } |
| 1312 | GRN_API_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:45:9`!; |
| 1313 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 1314 | if ((flags & GRN_CTX_MOREcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1653:9`!)) { flags |= GRN_CTX_QUIETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1656:9`!; } |
| 1315 | if (ctx->statcxx . . $ _grn_ctx#stat. == GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!) { flags |= GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; } |
| 1316 | |
| 1317 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..flagscxx . . $ _grn_ctx_impl#$anonymous_type_5#flags. = flags; |
| 1318 | if (ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.) { |
| 1319 | grn_rccxx . . $ grn_rc# rc; |
| 1320 | grn_com_headercxx . . $ grn_com_header# sheader; |
| 1321 | grn_timeval_nowcxx . . $ grn_timeval_now(b116eeadcb699bd1).(ctx, &ctx->implcxx . . $ _grn_ctx#impl.->tvcxx . . $ _grn_ctx_impl#tv.); |
| 1322 | sheader.protocxx . . $ _grn_com_header#proto. = GRN_COM_PROTO_GQTPcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_com.h:167:9`!; |
| 1323 | sheader.qtypecxx . . $ _grn_com_header#qtype. = 0; |
| 1324 | sheader.keylencxx . . $ _grn_com_header#keylen. = 0; |
| 1325 | sheader.levelcxx . . $ _grn_com_header#level. = 0; |
| 1326 | sheader.flagscxx . . $ _grn_com_header#flags. = flags; |
| 1327 | sheader.statuscxx . . $ _grn_com_header#status. = 0; |
| 1328 | sheader.opaquecxx . . $ _grn_com_header#opaque. = 0; |
| 1329 | sheader.cascxx . . $ _grn_com_header#cas. = 0; |
| 1330 | if ((rc = grn_com_sendcxx . . $ grn_com_send(16ce5c266d3abe94).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com., &sheader, (char *)str, str_len, 0))) { |
| 1331 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(rc, "grn_com_send failed"); |
| 1332 | } |
| 1333 | goto exit; |
| 1334 | } else { |
| 1335 | grn_command_versioncxx . . $ grn_command_version# command_version; |
| 1336 | grn_objcxx . . $ grn_obj# *expr = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1337 | |
| 1338 | command_version = grn_ctx_get_command_versioncxx . . $ grn_ctx_get_command_version(13d588302524a02f).(ctx); |
| 1339 | if (ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command.) { |
| 1340 | grn_objcxx . . $ grn_obj# *val; |
| 1341 | expr = ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command.; |
| 1342 | ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1343 | grn_ctx_set_command_versioncxx . . $ grn_ctx_set_command_version(5a7d37f522bc2602).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..versioncxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#version.); |
| 1344 | if ((val = grn_expr_get_var_by_offsetcxx . . $ grn_expr_get_var_by_offset(fe791abc79590565).(ctx, expr, 0))) { |
| 1345 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, val, GRN_DB_TEXTcxx . . $ GRN_DB_TEXT., 0); |
| 1346 | GRN_TEXT_PUTcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1292:9`!(ctx, val, str, str_len); |
| 1347 | } |
| 1348 | grn_expr_execcxx . . $ grn_expr_exec(e5f715bd58cd6451).(ctx, expr, 0); |
| 1349 | } else { |
| 1350 | if (comment_command_pcxx . . $ comment_command_p(1df18506ef0a631b).(str, str_len)) { goto output; }; |
| 1351 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(ctx->impl->output.buf); |
| 1352 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = GRN_CONTENT_JSONcxx . . $ GRN_CONTENT_JSON.; |
| 1353 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..mime_typecxx . . $ _grn_ctx_impl#$anonymous_type_3#mime_type. = "application/json"; |
| 1354 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..is_prettycxx . . $ _grn_ctx_impl#$anonymous_type_3#is_pretty. = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1355 | grn_timeval_nowcxx . . $ grn_timeval_now(b116eeadcb699bd1).(ctx, &ctx->implcxx . . $ _grn_ctx#impl.->tvcxx . . $ _grn_ctx_impl#tv.); |
| 1356 | GRN_QUERY_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1154:9`!(ctx, GRN_QUERY_LOG_COMMANDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:177:9`!, |
| 1357 | ">", "%.*s", str_len, str); |
| 1358 | if (str_len && *str == '/') { |
| 1359 | expr = grn_ctx_qe_exec_uricxx . . $ grn_ctx_qe_exec_uri(2a3c1b0f2aa12628).(ctx, str + 1, str_len - 1); |
| 1360 | } else { |
| 1361 | expr = grn_ctx_qe_execcxx . . $ grn_ctx_qe_exec(2a3c1b0f2aa12628).(ctx, str, str_len); |
| 1362 | } |
| 1363 | } |
| 1364 | if (ctx->statcxx . . $ _grn_ctx#stat. == GRN_CTX_QUITTINGcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx_impl.h:46:9`!) { ctx->statcxx . . $ _grn_ctx#stat. = GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; } |
| 1365 | if (ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..keepcxx . . $ _grn_ctx_impl#$anonymous_type_5#keep..commandcxx . . $ _grn_ctx_impl#$anonymous_type_5#$anonymous_type_6#command.) { |
| 1366 | ERRCLRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:78:9`!(ctx); |
| 1367 | } else { |
| 1368 | if (ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id.) { |
| 1369 | void *timer_id = ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id.; |
| 1370 | ctx->implcxx . . $ _grn_ctx#impl.->current_request_timer_idcxx . . $ _grn_ctx_impl#current_request_timer_id. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1371 | grn_request_timer_unregistercxx . . $ grn_request_timer_unregister(5d22bdacc48458e8).(timer_id); |
| 1372 | } |
| 1373 | if (GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(&ctx->impl->current_request_id) > 0) { |
| 1374 | grn_objcxx . . $ grn_obj# *request_id = &ctx->implcxx . . $ _grn_ctx#impl.->current_request_idcxx . . $ _grn_ctx_impl#current_request_id.; |
| 1375 | grn_request_canceler_unregistercxx . . $ grn_request_canceler_unregister(ae297cf89bde2f1f).(ctx, |
| 1376 | GRN_TEXT_VALUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1300:9`!(request_id), |
| 1377 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(request_id)); |
| 1378 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(&ctx->impl->current_request_id); |
| 1379 | } |
| 1380 | GRN_QUERY_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1154:9`!(ctx, GRN_QUERY_LOG_RESULT_CODEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:178:9`!, |
| 1381 | "<", "rc=%d", ctx->rc); |
| 1382 | } |
| 1383 | output : |
| 1384 | if (!(ctx->implcxx . . $ _grn_ctx#impl.->commandcxx . . $ _grn_ctx_impl#command..flagscxx . . $ _grn_ctx_impl#$anonymous_type_5#flags. & GRN_CTX_QUIETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1656:9`!) && |
| 1385 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func.) { |
| 1386 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func.(ctx, GRN_CTX_TAILcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1654:9`!, ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..datacxx . . $ _grn_ctx_impl#$anonymous_type_3#data..ptrcxx . . $ _grn_ctx_impl#$anonymous_type_3#$anonymous_type_4#ptr.); |
| 1387 | } |
| 1388 | if (expr) { grn_expr_clear_varscxx . . $ grn_expr_clear_vars(4865d068a46d0f83).(ctx, expr); } |
| 1389 | grn_ctx_set_command_versioncxx . . $ grn_ctx_set_command_version(5a7d37f522bc2602).(ctx, command_version); |
| 1390 | goto exit; |
| 1391 | } |
| 1392 | } |
| 1393 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(GRN_INVALID_ARGUMENT, "invalid ctx assigned"); |
| 1394 | exit : |
| 1395 | GRN_API_RETURNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:59:9`!(0); |
| 1396 | } |
| 1397 | |
| 1398 | unsigned int |
| 1399 | grn_ctx_recvcxx . . $ grn_ctx_recv(f4233bbc4ccf7d2d).(grn_ctxcxx . . $ grn_ctx# *ctx, char **str, unsigned int *str_len, int *flags) |
| 1400 | { |
| 1401 | if (!ctx) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 1402 | |
| 1403 | *flags = 0; |
| 1404 | |
| 1405 | if (ctx->statcxx . . $ _grn_ctx#stat. == GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!) { |
| 1406 | grn_boolcxx . . $ grn_bool# have_buffer = GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!; |
| 1407 | |
| 1408 | if (ctx->implcxx . . $ _grn_ctx#impl. && |
| 1409 | !ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com. && |
| 1410 | GRN_TEXT_LENcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1301:9`!(ctx->impl->output.buf) > 0) { |
| 1411 | have_buffer = GRN_TRUEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:44:9`!; |
| 1412 | } |
| 1413 | |
| 1414 | *flags |= GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; |
| 1415 | if (!have_buffer) { |
| 1416 | *str = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1417 | *str_len = 0; |
| 1418 | return 0; |
| 1419 | } |
| 1420 | } |
| 1421 | |
| 1422 | GRN_API_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:45:9`!; |
| 1423 | if (ctx->implcxx . . $ _grn_ctx#impl.) { |
| 1424 | if (ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.) { |
| 1425 | grn_com_headercxx . . $ grn_com_header# header; |
| 1426 | if (grn_com_recvcxx . . $ grn_com_recv(47a8df2e172f6f0f).(ctx, ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com., &header, ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.)) { |
| 1427 | *str = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1428 | *str_len = 0; |
| 1429 | *flags = 0; |
| 1430 | } else { |
| 1431 | *str = GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(ctx->impl->output.buf); |
| 1432 | *str_len = GRN_BULK_VSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1201:9`!(ctx->impl->output.buf); |
| 1433 | if (header.flagscxx . . $ _grn_com_header#flags. & GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!) { |
| 1434 | ctx->statcxx . . $ _grn_ctx#stat. = GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; |
| 1435 | *flags |= GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; |
| 1436 | } else { |
| 1437 | if (!(header.flagscxx . . $ _grn_com_header#flags. & GRN_CTX_TAILcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1654:9`!)) { |
| 1438 | *flags |= GRN_CTX_MOREcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1653:9`!; |
| 1439 | } |
| 1440 | } |
| 1441 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type. = header.qtypecxx . . $ _grn_com_header#qtype.; |
| 1442 | ctx->rccxx . . $ _grn_ctx#rc. = (int16_tcxx . . $ int16_t#)ntohscxx . . $ `<external>/9581057695539925927/in.h:429:12`!(header.status); |
| 1443 | ctx->errbufcxx . . $ _grn_ctx#errbuf.[0] = '\0'; |
| 1444 | ctx->errlinecxx . . $ _grn_ctx#errline. = 0; |
| 1445 | ctx->errfilecxx . . $ _grn_ctx#errfile. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1446 | ctx->errfunccxx . . $ _grn_ctx#errfunc. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1447 | } |
| 1448 | goto exit; |
| 1449 | } else { |
| 1450 | grn_objcxx . . $ grn_obj# *buf = ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.; |
| 1451 | unsigned int head = 0, tail = GRN_BULK_VSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1201:9`!(buf); |
| 1452 | *str = GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(buf) + head; |
| 1453 | *str_len = tail - head; |
| 1454 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(ctx->impl->output.buf); |
| 1455 | goto exit; |
| 1456 | } |
| 1457 | } |
| 1458 | ERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:143:9`!(GRN_INVALID_ARGUMENT, "invalid ctx assigned"); |
| 1459 | exit : |
| 1460 | GRN_API_RETURNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:59:9`!(0); |
| 1461 | } |
| 1462 | |
| 1463 | void |
| 1464 | grn_ctx_stream_out_funccxx . . $ grn_ctx_stream_out_func(e5088b957ff2e019).(grn_ctxcxx . . $ grn_ctx# *ctx, int flags, void *stream) |
| 1465 | { |
| 1466 | if (ctx && ctx->implcxx . . $ _grn_ctx#impl.) { |
| 1467 | grn_objcxx . . $ grn_obj# *buf = ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.; |
| 1468 | uint32_tcxx . . $ uint32_t# size = GRN_BULK_VSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1201:9`!(buf); |
| 1469 | if (size) { |
| 1470 | if (fwritecxx . . $ fwrite(ab0609fa07c47d6e).(GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(buf), 1, size, (FILEcxx . . $ FILE# *)stream)) { |
| 1471 | fputccxx . . $ fputc(b1cd03d6c470d1bd).('\n', (FILEcxx . . $ FILE# *)stream); |
| 1472 | fflushcxx . . $ fflush(89bc1efcdac0ca22).((FILEcxx . . $ FILE# *)stream); |
| 1473 | } |
| 1474 | GRN_BULK_REWINDcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1167:9`!(buf); |
| 1475 | } |
| 1476 | } |
| 1477 | } |
| 1478 | |
| 1479 | void |
| 1480 | grn_ctx_recv_handler_setcxx . . $ grn_ctx_recv_handler_set(9ae73d25c36b03d6).(grn_ctxcxx . . $ grn_ctx# *ctx, void (*func)(grn_ctxcxx . . $ grn_ctx# *, int, void *), void *func_arg) |
| 1481 | { |
| 1482 | if (ctx && ctx->implcxx . . $ _grn_ctx#impl.) { |
| 1483 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func. = func; |
| 1484 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..datacxx . . $ _grn_ctx_impl#$anonymous_type_3#data..ptrcxx . . $ _grn_ctx_impl#$anonymous_type_3#$anonymous_type_4#ptr. = func_arg; |
| 1485 | } |
| 1486 | } |
| 1487 | |
| 1488 | grn_rccxx . . $ grn_rc# |
| 1489 | grn_ctx_info_getcxx . . $ grn_ctx_info_get(19db1ec4551cd950).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_ctx_infocxx . . $ grn_ctx_info# *info) |
| 1490 | { |
| 1491 | if (!ctx || !ctx->implcxx . . $ _grn_ctx#impl.) { return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; } |
| 1492 | if (ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.) { |
| 1493 | info->fdcxx . . $ _grn_ctx_info#fd. = ctx->implcxx . . $ _grn_ctx#impl.->comcxx . . $ _grn_ctx_impl#com.->fdcxx . . $ _grn_com#fd.; |
| 1494 | info->com_statuscxx . . $ _grn_ctx_info#com_status. = ctx->implcxx . . $ _grn_ctx#impl.->com_statuscxx . . $ _grn_ctx_impl#com_status.; |
| 1495 | info->outbufcxx . . $ _grn_ctx_info#outbuf. = ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.; |
| 1496 | info->statcxx . . $ _grn_ctx_info#stat. = ctx->statcxx . . $ _grn_ctx#stat.; |
| 1497 | } else { |
| 1498 | info->fdcxx . . $ _grn_ctx_info#fd. = -1; |
| 1499 | info->com_statuscxx . . $ _grn_ctx_info#com_status. = 0; |
| 1500 | info->outbufcxx . . $ _grn_ctx_info#outbuf. = ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf.; |
| 1501 | info->statcxx . . $ _grn_ctx_info#stat. = ctx->statcxx . . $ _grn_ctx#stat.; |
| 1502 | } |
| 1503 | return GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 1504 | } |
| 1505 | |
| 1506 | #define DB_Pcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1506:9`!(s) ((s) && (s)->header.type == GRN_DBcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:384:9`!) |
| 1507 | |
| 1508 | grn_rccxx . . $ grn_rc# |
| 1509 | grn_ctx_usecxx . . $ grn_ctx_use(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *db) |
| 1510 | { |
| 1511 | GRN_API_ENTERcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:45:9`!; |
| 1512 | if (db && !DB_Pcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1506:9`!(db)) { |
| 1513 | ctx->rccxx . . $ _grn_ctx#rc. = GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; |
| 1514 | } else { |
| 1515 | if (!ctx->rccxx . . $ _grn_ctx#rc.) { |
| 1516 | ctx->implcxx . . $ _grn_ctx#impl.->dbcxx . . $ _grn_ctx_impl#db. = db; |
| 1517 | if (db) { |
| 1518 | grn_objcxx . . $ grn_obj# buf; |
| 1519 | GRN_TEXT_INITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1275:9`!(&buf, 0); |
| 1520 | grn_obj_get_infocxx . . $ grn_obj_get_info(333a81d4a8f20670).(ctx, db, GRN_INFO_ENCODINGcxx . . $ GRN_INFO_ENCODING., &buf); |
| 1521 | ctx->encodingcxx . . $ _grn_ctx#encoding. = *(grn_encodingcxx . . $ grn_encoding# *)GRN_BULK_HEADcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1209:9`!(&buf); |
| 1522 | grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, &buf); |
| 1523 | } |
| 1524 | } |
| 1525 | } |
| 1526 | GRN_API_RETURNcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:59:9`!(ctx->rc); |
| 1527 | } |
| 1528 | |
| 1529 | /* don't handle error inside logger functions */ |
| 1530 | |
| 1531 | void |
| 1532 | grn_ctx_logcxx . . $ grn_ctx_log(eccfd4193cae433).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *fmt, ...) |
| 1533 | { |
| 1534 | va_listcxx . . $ va_list# ap; |
| 1535 | va_startcxx . . $ `<external>/8105065126723003039/stdarg.h:50:9`!(ap, fmt); |
| 1536 | grn_ctx_logvcxx . . $ grn_ctx_logv(e8a2c43f96f3f14a).(ctx, fmt, ap); |
| 1537 | va_endcxx . . $ `<external>/8105065126723003039/stdarg.h:52:9`!(ap); |
| 1538 | } |
| 1539 | |
| 1540 | void |
| 1541 | grn_ctx_logvcxx . . $ grn_ctx_logv(e8a2c43f96f3f14a).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *fmt, va_listcxx . . $ va_list# ap) |
| 1542 | { |
| 1543 | char buffer[GRN_CTX_MSGSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:204:9`!]; |
| 1544 | grn_vsnprintfcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:151:10`!(buffer, GRN_CTX_MSGSIZEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:204:9`!, fmt, ap); |
| 1545 | grn_strcpycxx . . $ `storage/mroonga/vendor/groonga/include/groonga/portability.h:100:10`!(ctx->errbuf, GRN_CTX_MSGSIZE, buffer); |
| 1546 | } |
| 1547 | |
| 1548 | void |
| 1549 | grn_assertcxx . . $ grn_assert(4e81275eb0614788).(grn_ctxcxx . . $ grn_ctx# *ctx, int cond, const char* file, int line, const char* func) |
| 1550 | { |
| 1551 | if (!cond) { |
| 1552 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_WARNING, "ASSERT fail on %s %s:%d", func, file, line); |
| 1553 | } |
| 1554 | } |
| 1555 | |
| 1556 | const char * |
| 1557 | grn_get_versioncxx . . $ grn_get_version(33a1f659e94feb42).(void) |
| 1558 | { |
| 1559 | return GRN_VERSIONcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:21:9`!; |
| 1560 | } |
| 1561 | |
| 1562 | const char * |
| 1563 | grn_get_packagecxx . . $ grn_get_package(33a1f659e94feb42).(void) |
| 1564 | { |
| 1565 | return PACKAGEcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:10:9`!; |
| 1566 | } |
| 1567 | |
| 1568 | const char * |
| 1569 | grn_get_package_labelcxx . . $ grn_get_package_label(33a1f659e94feb42).(void) |
| 1570 | { |
| 1571 | return PACKAGE_LABELcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:12:9`!; |
| 1572 | } |
| 1573 | |
| 1574 | #if defined(HAVE_SIGNAL_Hcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:107:9`!) && !defined(WIN32) |
| 1575 | static int segv_receivedcxx . . $ segv_received. = 0; |
| 1576 | static void |
| 1577 | segv_handlercxx . . $ segv_handler(35b49605a50c0d85).(int signal_number, siginfo_tcxx . . $ siginfo_t# *info, void *context) |
| 1578 | { |
| 1579 | grn_ctxcxx . . $ grn_ctx# *ctx = &grn_gctxcxx . . $ grn_gctx.; |
| 1580 | |
| 1581 | if (segv_receivedcxx . . $ segv_received.) { |
| 1582 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_CRIT, "SEGV received in SEGV handler."); |
| 1583 | exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:92:9`!); |
| 1584 | } |
| 1585 | segv_receivedcxx . . $ segv_received. = 1; |
| 1586 | |
| 1587 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_CRIT, "-- CRASHED!!! --"); |
| 1588 | #ifdef HAVE_BACKTRACEcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:136:9`! |
| 1589 | # define N_TRACE_LEVELcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1589:11`! 1024 |
| 1590 | { |
| 1591 | static void *trace[N_TRACE_LEVELcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1589:11`!]; |
| 1592 | int n = backtracecxx . . $ backtrace(d2e1243e1d7a3eae).(trace, N_TRACE_LEVELcxx . . $ `storage/mroonga/vendor/groonga/lib/ctx.c:1589:11`!); |
| 1593 | char **symbols = backtrace_symbolscxx . . $ backtrace_symbols(8aa02ec47179628b).(trace, n); |
| 1594 | int i; |
| 1595 | |
| 1596 | if (symbols) { |
| 1597 | for (i = 0; i < n; i++) { |
| 1598 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_CRIT, "%s", symbols[i]); |
| 1599 | } |
| 1600 | freecxx . . $ free(5d22bdacc48458e8).(symbols); |
| 1601 | } |
| 1602 | } |
| 1603 | #else /* HAVE_BACKTRACE */ |
| 1604 | GRN_LOG(ctx, GRN_LOG_CRIT, "backtrace() isn't available."); |
| 1605 | #endif /* HAVE_BACKTRACE */ |
| 1606 | GRN_LOGcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1112:9`!(ctx, GRN_LOG_CRIT, "----------------"); |
| 1607 | abortcxx . . $ abort(8df32a62017fbbf6).(); |
| 1608 | } |
| 1609 | #endif /* defined(HAVE_SIGNAL_H) && !defined(WIN32) */ |
| 1610 | |
| 1611 | grn_rccxx . . $ grn_rc# |
| 1612 | grn_set_segv_handlercxx . . $ grn_set_segv_handler(d5bb96df31a8101).(void) |
| 1613 | { |
| 1614 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 1615 | #if defined(HAVE_SIGNAL_Hcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:107:9`!) && !defined(WIN32) |
| 1616 | grn_ctxcxx . . $ grn_ctx# *ctx = &grn_gctxcxx . . $ grn_gctx.; |
| 1617 | struct sigactioncxx . . $ sigaction# action; |
| 1618 | |
| 1619 | sigemptysetcxx . . $ sigemptyset(f9c066a8ff75ee9d).(&action.sa_maskcxx . . $ sigaction#sa_mask.); |
| 1620 | action.sa_sigactioncxx . . $ `<external>/16635209305659446502/sigaction.h:40:10`! = segv_handlercxx . . $ segv_handler(35b49605a50c0d85).; |
| 1621 | action.sa_flagscxx . . $ sigaction#sa_flags. = SA_SIGINFOcxx . . $ `<external>/16635209305659446502/sigaction.h:58:9`! | SA_ONSTACKcxx . . $ `<external>/16635209305659446502/sigaction.h:61:10`!; |
| 1622 | |
| 1623 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGSEGVcxx . . $ `<external>/11773118241360591791/signum-generic.h:52:9`!, &action, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) { |
| 1624 | SERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:332:9`!("failed to set SIGSEGV action"); |
| 1625 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 1626 | }; |
| 1627 | #endif |
| 1628 | return rc; |
| 1629 | } |
| 1630 | |
| 1631 | #if defined(HAVE_SIGNAL_Hcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:107:9`!) && !defined(WIN32) |
| 1632 | static struct sigactioncxx . . $ sigaction# old_int_handlercxx . . $ old_int_handler.; |
| 1633 | static void |
| 1634 | int_handlercxx . . $ int_handler(35b49605a50c0d85).(int signal_number, siginfo_tcxx . . $ siginfo_t# *info, void *context) |
| 1635 | { |
| 1636 | grn_gctxcxx . . $ grn_gctx..statcxx . . $ _grn_ctx#stat. = GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; |
| 1637 | sigactioncxx . . $ sigaction(53aba09fe16b06c7).(signal_number, &old_int_handlercxx . . $ old_int_handler., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1638 | } |
| 1639 | |
| 1640 | static struct sigactioncxx . . $ sigaction# old_term_handlercxx . . $ old_term_handler.; |
| 1641 | static void |
| 1642 | term_handlercxx . . $ term_handler(35b49605a50c0d85).(int signal_number, siginfo_tcxx . . $ siginfo_t# *info, void *context) |
| 1643 | { |
| 1644 | grn_gctxcxx . . $ grn_gctx..statcxx . . $ _grn_ctx#stat. = GRN_CTX_QUITcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1657:9`!; |
| 1645 | sigactioncxx . . $ sigaction(53aba09fe16b06c7).(signal_number, &old_term_handlercxx . . $ old_term_handler., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1646 | } |
| 1647 | #endif /* defined(HAVE_SIGNAL_H) && !defined(WIN32) */ |
| 1648 | |
| 1649 | grn_rccxx . . $ grn_rc# |
| 1650 | grn_set_int_handlercxx . . $ grn_set_int_handler(d5bb96df31a8101).(void) |
| 1651 | { |
| 1652 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 1653 | #if defined(HAVE_SIGNAL_Hcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:107:9`!) && !defined(WIN32) |
| 1654 | grn_ctxcxx . . $ grn_ctx# *ctx = &grn_gctxcxx . . $ grn_gctx.; |
| 1655 | struct sigactioncxx . . $ sigaction# action; |
| 1656 | |
| 1657 | sigemptysetcxx . . $ sigemptyset(f9c066a8ff75ee9d).(&action.sa_maskcxx . . $ sigaction#sa_mask.); |
| 1658 | action.sa_sigactioncxx . . $ `<external>/16635209305659446502/sigaction.h:40:10`! = int_handlercxx . . $ int_handler(35b49605a50c0d85).; |
| 1659 | action.sa_flagscxx . . $ sigaction#sa_flags. = SA_SIGINFOcxx . . $ `<external>/16635209305659446502/sigaction.h:58:9`!; |
| 1660 | |
| 1661 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGINTcxx . . $ `<external>/11773118241360591791/signum-generic.h:48:9`!, &action, &old_int_handlercxx . . $ old_int_handler.)) { |
| 1662 | SERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:332:9`!("failed to set SIGINT action"); |
| 1663 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 1664 | } |
| 1665 | #endif |
| 1666 | return rc; |
| 1667 | } |
| 1668 | |
| 1669 | grn_rccxx . . $ grn_rc# |
| 1670 | grn_set_term_handlercxx . . $ grn_set_term_handler(d5bb96df31a8101).(void) |
| 1671 | { |
| 1672 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 1673 | #if defined(HAVE_SIGNAL_Hcxx . . $ `build/storage/mroonga/vendor/groonga/config.h:107:9`!) && !defined(WIN32) |
| 1674 | grn_ctxcxx . . $ grn_ctx# *ctx = &grn_gctxcxx . . $ grn_gctx.; |
| 1675 | struct sigactioncxx . . $ sigaction# action; |
| 1676 | |
| 1677 | sigemptysetcxx . . $ sigemptyset(f9c066a8ff75ee9d).(&action.sa_maskcxx . . $ sigaction#sa_mask.); |
| 1678 | action.sa_sigactioncxx . . $ `<external>/16635209305659446502/sigaction.h:40:10`! = term_handlercxx . . $ term_handler(35b49605a50c0d85).; |
| 1679 | action.sa_flagscxx . . $ sigaction#sa_flags. = SA_SIGINFOcxx . . $ `<external>/16635209305659446502/sigaction.h:58:9`!; |
| 1680 | |
| 1681 | if (sigactioncxx . . $ sigaction(53aba09fe16b06c7).(SIGTERMcxx . . $ `<external>/11773118241360591791/signum-generic.h:53:9`!, &action, &old_term_handlercxx . . $ old_term_handler.)) { |
| 1682 | SERRcxx . . $ `storage/mroonga/vendor/groonga/lib/grn_ctx.h:332:9`!("failed to set SIGTERM action"); |
| 1683 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 1684 | } |
| 1685 | #endif |
| 1686 | return rc; |
| 1687 | } |
| 1688 | |
| 1689 | void |
| 1690 | grn_ctx_output_flushcxx . . $ grn_ctx_output_flush(55555b1fc84b4259).(grn_ctxcxx . . $ grn_ctx# *ctx, int flags) |
| 1691 | { |
| 1692 | if (flags & GRN_CTX_QUIETcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:1656:9`!) { |
| 1693 | return; |
| 1694 | } |
| 1695 | if (!ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func.) { |
| 1696 | return; |
| 1697 | } |
| 1698 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..funccxx . . $ _grn_ctx_impl#$anonymous_type_3#func.(ctx, 0, ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..datacxx . . $ _grn_ctx_impl#$anonymous_type_3#data..ptrcxx . . $ _grn_ctx_impl#$anonymous_type_3#$anonymous_type_4#ptr.); |
| 1699 | } |
| 1700 | |
| 1701 | void |
| 1702 | grn_ctx_output_array_opencxx . . $ grn_ctx_output_array_open(f0f392d632556531).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *name, int nelements) |
| 1703 | { |
| 1704 | grn_output_array_opencxx . . $ grn_output_array_open(ff742ceb5a25e9).(ctx, |
| 1705 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1706 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1707 | name, nelements); |
| 1708 | } |
| 1709 | |
| 1710 | void |
| 1711 | grn_ctx_output_array_closecxx . . $ grn_ctx_output_array_close(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 1712 | { |
| 1713 | grn_output_array_closecxx . . $ grn_output_array_close(e6307d566213600d).(ctx, |
| 1714 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1715 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type.); |
| 1716 | } |
| 1717 | |
| 1718 | void |
| 1719 | grn_ctx_output_map_opencxx . . $ grn_ctx_output_map_open(f0f392d632556531).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *name, int nelements) |
| 1720 | { |
| 1721 | grn_output_map_opencxx . . $ grn_output_map_open(ff742ceb5a25e9).(ctx, |
| 1722 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1723 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1724 | name, nelements); |
| 1725 | } |
| 1726 | |
| 1727 | void |
| 1728 | grn_ctx_output_map_closecxx . . $ grn_ctx_output_map_close(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 1729 | { |
| 1730 | grn_output_map_closecxx . . $ grn_output_map_close(e6307d566213600d).(ctx, |
| 1731 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1732 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type.); |
| 1733 | } |
| 1734 | |
| 1735 | void |
| 1736 | grn_ctx_output_nullcxx . . $ grn_ctx_output_null(b578cd6e53d5fe91).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 1737 | { |
| 1738 | grn_output_nullcxx . . $ grn_output_null(e6307d566213600d).(ctx, |
| 1739 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1740 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type.); |
| 1741 | } |
| 1742 | |
| 1743 | void |
| 1744 | grn_ctx_output_int32cxx . . $ grn_ctx_output_int32(55555b1fc84b4259).(grn_ctxcxx . . $ grn_ctx# *ctx, int value) |
| 1745 | { |
| 1746 | grn_output_int32cxx . . $ grn_output_int32(fcf96de71529f7c8).(ctx, |
| 1747 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1748 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1749 | value); |
| 1750 | } |
| 1751 | |
| 1752 | void |
| 1753 | grn_ctx_output_int64cxx . . $ grn_ctx_output_int64(e824ee96bb92de8).(grn_ctxcxx . . $ grn_ctx# *ctx, int64_tcxx . . $ int64_t# value) |
| 1754 | { |
| 1755 | grn_output_int64cxx . . $ grn_output_int64(9635eea3a1386f6a).(ctx, |
| 1756 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1757 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1758 | value); |
| 1759 | } |
| 1760 | |
| 1761 | void |
| 1762 | grn_ctx_output_uint64cxx . . $ grn_ctx_output_uint64(150f498c5f9d24bd).(grn_ctxcxx . . $ grn_ctx# *ctx, uint64_tcxx . . $ uint64_t# value) |
| 1763 | { |
| 1764 | grn_output_uint64cxx . . $ grn_output_uint64(7aa54ffb9354d549).(ctx, |
| 1765 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1766 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1767 | value); |
| 1768 | } |
| 1769 | |
| 1770 | void |
| 1771 | grn_ctx_output_floatcxx . . $ grn_ctx_output_float(d70db9b6f5c28a61).(grn_ctxcxx . . $ grn_ctx# *ctx, double value) |
| 1772 | { |
| 1773 | grn_output_floatcxx . . $ grn_output_float(94fdb8cdeb859b39).(ctx, |
| 1774 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1775 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1776 | value); |
| 1777 | } |
| 1778 | |
| 1779 | void |
| 1780 | grn_ctx_output_cstrcxx . . $ grn_ctx_output_cstr(777524e3d10dd7b4).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *value) |
| 1781 | { |
| 1782 | grn_output_cstrcxx . . $ grn_output_cstr(c9116951ab20586d).(ctx, |
| 1783 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1784 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1785 | value); |
| 1786 | } |
| 1787 | |
| 1788 | void |
| 1789 | grn_ctx_output_strcxx . . $ grn_ctx_output_str(ae297cf89bde2f1f).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *value, unsigned int value_len) |
| 1790 | { |
| 1791 | grn_output_strcxx . . $ grn_output_str(26b6a4c523b40988).(ctx, |
| 1792 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1793 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1794 | value, value_len); |
| 1795 | } |
| 1796 | |
| 1797 | void |
| 1798 | grn_ctx_output_boolcxx . . $ grn_ctx_output_bool(f33f77cd46f8f264).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_boolcxx . . $ grn_bool# value) |
| 1799 | { |
| 1800 | grn_output_boolcxx . . $ grn_output_bool(9a92ae9c94a9be7f).(ctx, |
| 1801 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1802 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1803 | value); |
| 1804 | } |
| 1805 | |
| 1806 | void |
| 1807 | grn_ctx_output_objcxx . . $ grn_ctx_output_obj(eded88d24d5f23db).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *value, grn_obj_formatcxx . . $ grn_obj_format# *format) |
| 1808 | { |
| 1809 | grn_output_objcxx . . $ grn_output_obj(476dda3f1803c14f).(ctx, |
| 1810 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1811 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1812 | value, format); |
| 1813 | } |
| 1814 | |
| 1815 | void |
| 1816 | grn_ctx_output_result_set_opencxx . . $ grn_ctx_output_result_set_open(85cc70a5e518d6c3).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 1817 | grn_objcxx . . $ grn_obj# *result_set, |
| 1818 | grn_obj_formatcxx . . $ grn_obj_format# *format, |
| 1819 | uint32_tcxx . . $ uint32_t# n_additional_elements) |
| 1820 | { |
| 1821 | grn_output_result_set_opencxx . . $ grn_output_result_set_open(bc64c0e8fada233f).(ctx, |
| 1822 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1823 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1824 | result_set, |
| 1825 | format, |
| 1826 | n_additional_elements); |
| 1827 | } |
| 1828 | |
| 1829 | void |
| 1830 | grn_ctx_output_result_set_closecxx . . $ grn_ctx_output_result_set_close(eded88d24d5f23db).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 1831 | grn_objcxx . . $ grn_obj# *result_set, |
| 1832 | grn_obj_formatcxx . . $ grn_obj_format# *format) |
| 1833 | { |
| 1834 | grn_output_result_set_closecxx . . $ grn_output_result_set_close(476dda3f1803c14f).(ctx, |
| 1835 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1836 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1837 | result_set, |
| 1838 | format); |
| 1839 | } |
| 1840 | |
| 1841 | void |
| 1842 | grn_ctx_output_result_setcxx . . $ grn_ctx_output_result_set(eded88d24d5f23db).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 1843 | grn_objcxx . . $ grn_obj# *result_set, |
| 1844 | grn_obj_formatcxx . . $ grn_obj_format# *format) |
| 1845 | { |
| 1846 | grn_output_result_setcxx . . $ grn_output_result_set(476dda3f1803c14f).(ctx, |
| 1847 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1848 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1849 | result_set, |
| 1850 | format); |
| 1851 | } |
| 1852 | |
| 1853 | void |
| 1854 | grn_ctx_output_table_columnscxx . . $ grn_ctx_output_table_columns(eded88d24d5f23db).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, |
| 1855 | grn_obj_formatcxx . . $ grn_obj_format# *format) |
| 1856 | { |
| 1857 | grn_output_table_columnscxx . . $ grn_output_table_columns(476dda3f1803c14f).(ctx, |
| 1858 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1859 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1860 | table, |
| 1861 | format); |
| 1862 | } |
| 1863 | |
| 1864 | void |
| 1865 | grn_ctx_output_table_recordscxx . . $ grn_ctx_output_table_records(eded88d24d5f23db).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, |
| 1866 | grn_obj_formatcxx . . $ grn_obj_format# *format) |
| 1867 | { |
| 1868 | grn_output_table_recordscxx . . $ grn_output_table_records(476dda3f1803c14f).(ctx, |
| 1869 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..bufcxx . . $ _grn_ctx_impl#$anonymous_type_3#buf., |
| 1870 | ctx->implcxx . . $ _grn_ctx#impl.->outputcxx . . $ _grn_ctx_impl#output..typecxx . . $ _grn_ctx_impl#$anonymous_type_3#type., |
| 1871 | table, |
| 1872 | format); |
| 1873 | } |