rroonga 5.0.1-x86-mingw32 → 5.0.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/ext/groonga/rb-grn-logger.c +159 -3
- data/ext/groonga/rb-grn-plugin.c +17 -1
- data/ext/groonga/rb-grn-query-logger.c +129 -3
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/groonga/query-logger.rb +48 -3
- data/lib/groonga/schema.rb +16 -3
- data/rroonga-build.rb +3 -3
- data/test/test-logger.rb +97 -2
- data/test/test-plugin.rb +5 -1
- data/test/test-query-logger.rb +149 -0
- data/test/test-schema.rb +19 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-4.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/groonga.h +12 -6
- data/vendor/local/include/groonga/groonga/portability.h +158 -0
- data/vendor/local/include/msgpack.h +1 -0
- data/vendor/local/include/msgpack.hpp +2 -1
- data/vendor/local/include/msgpack/adaptor/bool.hpp +58 -0
- data/vendor/local/include/msgpack/{type/bool.hpp → adaptor/bool_fwd.hpp} +11 -27
- data/vendor/local/include/msgpack/adaptor/char_ptr.hpp +78 -0
- data/vendor/local/include/msgpack/adaptor/char_ptr_fwd.hpp +43 -0
- data/vendor/local/include/msgpack/adaptor/check_container_size.hpp +61 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array.hpp +76 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_char.hpp +84 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_char_fwd.hpp +45 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/forward_list.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/forward_list_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/tuple.hpp +152 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/tuple_fwd.hpp +62 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map.hpp +142 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map_fwd.hpp +53 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set.hpp +134 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set_fwd.hpp +52 -0
- data/vendor/local/include/msgpack/adaptor/define.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/deque.hpp +83 -0
- data/vendor/local/include/msgpack/adaptor/deque_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_define.hpp +3475 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp +13918 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple_fwd.hpp +4341 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_define.hpp +184 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp +212 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple_fwd.hpp +84 -0
- data/vendor/local/include/msgpack/adaptor/fixint.hpp +212 -0
- data/vendor/local/include/msgpack/adaptor/fixint_fwd.hpp +100 -0
- data/vendor/local/include/msgpack/adaptor/float.hpp +105 -0
- data/vendor/local/include/msgpack/adaptor/float_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/int.hpp +308 -0
- data/vendor/local/include/msgpack/adaptor/int_fwd.hpp +100 -0
- data/vendor/local/include/msgpack/adaptor/list.hpp +83 -0
- data/vendor/local/include/msgpack/adaptor/list_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/map.hpp +219 -0
- data/vendor/local/include/msgpack/adaptor/map_fwd.hpp +69 -0
- data/vendor/local/include/msgpack/adaptor/msgpack_tuple.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/msgpack_tuple_fwd.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/nil.hpp +68 -0
- data/vendor/local/include/msgpack/adaptor/nil_fwd.hpp +51 -0
- data/vendor/local/include/msgpack/adaptor/pair.hpp +63 -0
- data/vendor/local/include/msgpack/{type/pair.hpp → adaptor/pair_fwd.hpp} +10 -29
- data/vendor/local/include/msgpack/adaptor/raw.hpp +98 -0
- data/vendor/local/include/msgpack/{type/nil.hpp → adaptor/raw_fwd.hpp} +15 -30
- data/vendor/local/include/msgpack/adaptor/set.hpp +134 -0
- data/vendor/local/include/msgpack/adaptor/set_fwd.hpp +52 -0
- data/vendor/local/include/msgpack/adaptor/string.hpp +78 -0
- data/vendor/local/include/msgpack/adaptor/string_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +164 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_map_fwd.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +157 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_set_fwd.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/vector.hpp +87 -0
- data/vendor/local/include/msgpack/adaptor/vector_bool.hpp +80 -0
- data/vendor/local/include/msgpack/adaptor/vector_bool_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/vector_char.hpp +81 -0
- data/vendor/local/include/msgpack/adaptor/vector_char_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/adaptor/vector_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/cpp_config.hpp +109 -0
- data/vendor/local/include/msgpack/detail/cpp03_zone.hpp +662 -0
- data/vendor/local/include/msgpack/detail/cpp11_zone.hpp +368 -0
- data/vendor/local/include/msgpack/fbuffer.h +3 -4
- data/vendor/local/include/msgpack/fbuffer.hpp +24 -16
- data/vendor/local/include/msgpack/gcc_atomic.h +33 -0
- data/vendor/local/include/msgpack/iterator.hpp +42 -0
- data/vendor/local/include/msgpack/object.h +51 -30
- data/vendor/local/include/msgpack/object.hpp +564 -273
- data/vendor/local/include/msgpack/object_fwd.hpp +182 -0
- data/vendor/local/include/msgpack/pack.h +23 -17
- data/vendor/local/include/msgpack/pack.hpp +889 -164
- data/vendor/local/include/msgpack/pack_define.h +2 -2
- data/vendor/local/include/msgpack/pack_template.h +452 -356
- data/vendor/local/include/msgpack/sbuffer.h +43 -37
- data/vendor/local/include/msgpack/sbuffer.hpp +98 -76
- data/vendor/local/include/msgpack/sysdep.h +48 -53
- data/vendor/local/include/msgpack/type.hpp +35 -17
- data/vendor/local/include/msgpack/unpack.h +62 -44
- data/vendor/local/include/msgpack/unpack.hpp +1578 -217
- data/vendor/local/include/msgpack/unpack_define.h +49 -47
- data/vendor/local/include/msgpack/unpack_template.h +344 -284
- data/vendor/local/include/msgpack/util.h +23 -0
- data/vendor/local/include/msgpack/version.h +12 -6
- data/vendor/local/include/msgpack/version.hpp +44 -0
- data/vendor/local/include/msgpack/version_master.h +3 -0
- data/vendor/local/include/msgpack/versioning.hpp +77 -0
- data/vendor/local/include/msgpack/vrefbuffer.h +40 -34
- data/vendor/local/include/msgpack/vrefbuffer.hpp +261 -64
- data/vendor/local/include/msgpack/zbuffer.h +79 -79
- data/vendor/local/include/msgpack/zbuffer.hpp +136 -67
- data/vendor/local/include/msgpack/zone.h +65 -42
- data/vendor/local/include/msgpack/zone.hpp +10 -445
- data/vendor/local/include/msgpack_fwd.hpp +28 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.la +41 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding.rb +1 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +17 -45
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +15 -6
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +63 -75
- data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +65 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +38 -41
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +3 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +4 -4
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +2 -2
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +69 -52
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +56 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +6 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +14 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +93 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/news/0.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/dump.txt +135 -27
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +148 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +76 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/server/gqtp.txt +38 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +6 -4
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution.html +14 -13
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +58 -42
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/index.html +15 -9
- data/vendor/local/share/doc/groonga/en/html/install.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +70 -13
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/others.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +12 -11
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news.html +200 -103
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +141 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +146 -14
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +7 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +248 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +11 -7
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +53 -8
- data/vendor/local/share/doc/groonga/en/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +10 -7
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +15 -11
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +69 -52
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +56 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +6 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +14 -14
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +93 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/0.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/dump.txt +135 -27
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +148 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +76 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/gqtp.txt +38 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +6 -4
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +14 -13
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +58 -42
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/index.html +15 -9
- data/vendor/local/share/doc/groonga/ja/html/install.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +63 -11
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -18
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +10 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news.html +234 -106
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +141 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +25 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +23 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +146 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +7 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +249 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +11 -7
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +53 -8
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +10 -7
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +15 -11
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/groonga-admin.css +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/jquery-ui-1.8.18.custom.css +0 -0
- data/vendor/local/share/groonga/html/admin.old/favicon.ico +0 -0
- data/vendor/local/share/groonga/html/admin.old/favicon.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/favicon.svg +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.svg +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/loading.gif +0 -0
- data/vendor/local/share/groonga/html/admin.old/index.html +297 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/index.ja.html +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.ja.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-1.7.2.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-ui-1.8.18.custom.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot-0.7.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot.license.txt +0 -0
- data/vendor/local/share/groonga/html/admin/.htaccess +543 -0
- data/vendor/local/share/groonga/html/admin/404.html +133 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +9 -297
- data/vendor/local/share/groonga/html/admin/robots.txt +3 -0
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +1 -0
- data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +1 -0
- data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +13 -0
- data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +1 -0
- data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +10 -0
- data/vendor/local/share/groonga/html/admin/views/columns/new.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/columns/show.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/index.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/new.html +29 -0
- data/vendor/local/share/groonga/html/admin/views/tables/search.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/show.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/top.html +1 -0
- data/vendor/local/share/license/groonga-admin/LICENSE +502 -0
- data/vendor/local/share/license/groonga-admin/README.md +79 -0
- data/vendor/local/share/license/msgpack/AUTHORS +0 -1
- data/vendor/local/share/man/ja/man1/groonga.1 +826 -147
- data/vendor/local/share/man/man1/groonga.1 +812 -99
- metadata +138 -55
- data/doc/text/install.textile +0 -145
- data/doc/text/tutorial.textile +0 -510
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/include/msgpack/type/define.hpp +0 -3465
- data/vendor/local/include/msgpack/type/deque.hpp +0 -77
- data/vendor/local/include/msgpack/type/fixint.hpp +0 -172
- data/vendor/local/include/msgpack/type/float.hpp +0 -102
- data/vendor/local/include/msgpack/type/int.hpp +0 -276
- data/vendor/local/include/msgpack/type/list.hpp +0 -77
- data/vendor/local/include/msgpack/type/map.hpp +0 -205
- data/vendor/local/include/msgpack/type/raw.hpp +0 -94
- data/vendor/local/include/msgpack/type/set.hpp +0 -122
- data/vendor/local/include/msgpack/type/string.hpp +0 -62
- data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +0 -150
- data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +0 -142
- data/vendor/local/include/msgpack/type/tuple.hpp +0 -13691
- data/vendor/local/include/msgpack/type/vector.hpp +0 -81
- data/vendor/local/share/doc/groonga/en/html/_static/jp.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/us.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jp.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/us.png +0 -0
@@ -15,8 +15,8 @@
|
|
15
15
|
* See the License for the specific language governing permissions and
|
16
16
|
* limitations under the License.
|
17
17
|
*/
|
18
|
-
#ifndef
|
19
|
-
#define
|
18
|
+
#ifndef MSGPACK_PACK_DEFINE_H
|
19
|
+
#define MSGPACK_PACK_DEFINE_H
|
20
20
|
|
21
21
|
#include "msgpack/sysdep.h"
|
22
22
|
#include <limits.h>
|
@@ -47,228 +47,228 @@
|
|
47
47
|
|
48
48
|
#define msgpack_pack_real_uint8(x, d) \
|
49
49
|
do { \
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
if(d < (1<<7)) { \
|
51
|
+
/* fixnum */ \
|
52
|
+
msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); \
|
53
|
+
} else { \
|
54
|
+
/* unsigned 8 */ \
|
55
|
+
unsigned char buf[2] = {0xcc, TAKE8_8(d)}; \
|
56
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
57
|
+
} \
|
58
58
|
} while(0)
|
59
59
|
|
60
60
|
#define msgpack_pack_real_uint16(x, d) \
|
61
61
|
do { \
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
62
|
+
if(d < (1<<7)) { \
|
63
|
+
/* fixnum */ \
|
64
|
+
msgpack_pack_append_buffer(x, &TAKE8_16(d), 1); \
|
65
|
+
} else if(d < (1<<8)) { \
|
66
|
+
/* unsigned 8 */ \
|
67
|
+
unsigned char buf[2] = {0xcc, TAKE8_16(d)}; \
|
68
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
69
|
+
} else { \
|
70
|
+
/* unsigned 16 */ \
|
71
|
+
unsigned char buf[3]; \
|
72
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
73
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
74
|
+
} \
|
75
75
|
} while(0)
|
76
76
|
|
77
77
|
#define msgpack_pack_real_uint32(x, d) \
|
78
78
|
do { \
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
79
|
+
if(d < (1<<8)) { \
|
80
|
+
if(d < (1<<7)) { \
|
81
|
+
/* fixnum */ \
|
82
|
+
msgpack_pack_append_buffer(x, &TAKE8_32(d), 1); \
|
83
|
+
} else { \
|
84
|
+
/* unsigned 8 */ \
|
85
|
+
unsigned char buf[2] = {0xcc, TAKE8_32(d)}; \
|
86
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
87
|
+
} \
|
88
|
+
} else { \
|
89
|
+
if(d < (1<<16)) { \
|
90
|
+
/* unsigned 16 */ \
|
91
|
+
unsigned char buf[3]; \
|
92
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
93
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
94
|
+
} else { \
|
95
|
+
/* unsigned 32 */ \
|
96
|
+
unsigned char buf[5]; \
|
97
|
+
buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \
|
98
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
99
|
+
} \
|
100
|
+
} \
|
101
101
|
} while(0)
|
102
102
|
|
103
103
|
#define msgpack_pack_real_uint64(x, d) \
|
104
104
|
do { \
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
105
|
+
if(d < (1ULL<<8)) { \
|
106
|
+
if(d < (1ULL<<7)) { \
|
107
|
+
/* fixnum */ \
|
108
|
+
msgpack_pack_append_buffer(x, &TAKE8_64(d), 1); \
|
109
|
+
} else { \
|
110
|
+
/* unsigned 8 */ \
|
111
|
+
unsigned char buf[2] = {0xcc, TAKE8_64(d)}; \
|
112
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
113
|
+
} \
|
114
|
+
} else { \
|
115
|
+
if(d < (1ULL<<16)) { \
|
116
|
+
/* unsigned 16 */ \
|
117
|
+
unsigned char buf[3]; \
|
118
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
119
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
120
|
+
} else if(d < (1ULL<<32)) { \
|
121
|
+
/* unsigned 32 */ \
|
122
|
+
unsigned char buf[5]; \
|
123
|
+
buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \
|
124
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
125
|
+
} else { \
|
126
|
+
/* unsigned 64 */ \
|
127
|
+
unsigned char buf[9]; \
|
128
|
+
buf[0] = 0xcf; _msgpack_store64(&buf[1], d); \
|
129
|
+
msgpack_pack_append_buffer(x, buf, 9); \
|
130
|
+
} \
|
131
|
+
} \
|
132
132
|
} while(0)
|
133
133
|
|
134
134
|
#define msgpack_pack_real_int8(x, d) \
|
135
135
|
do { \
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
136
|
+
if(d < -(1<<5)) { \
|
137
|
+
/* signed 8 */ \
|
138
|
+
unsigned char buf[2] = {0xd0, TAKE8_8(d)}; \
|
139
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
140
|
+
} else { \
|
141
|
+
/* fixnum */ \
|
142
|
+
msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); \
|
143
|
+
} \
|
144
144
|
} while(0)
|
145
145
|
|
146
146
|
#define msgpack_pack_real_int16(x, d) \
|
147
147
|
do { \
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
148
|
+
if(d < -(1<<5)) { \
|
149
|
+
if(d < -(1<<7)) { \
|
150
|
+
/* signed 16 */ \
|
151
|
+
unsigned char buf[3]; \
|
152
|
+
buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \
|
153
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
154
|
+
} else { \
|
155
|
+
/* signed 8 */ \
|
156
|
+
unsigned char buf[2] = {0xd0, TAKE8_16(d)}; \
|
157
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
158
|
+
} \
|
159
|
+
} else if(d < (1<<7)) { \
|
160
|
+
/* fixnum */ \
|
161
|
+
msgpack_pack_append_buffer(x, &TAKE8_16(d), 1); \
|
162
|
+
} else { \
|
163
|
+
if(d < (1<<8)) { \
|
164
|
+
/* unsigned 8 */ \
|
165
|
+
unsigned char buf[2] = {0xcc, TAKE8_16(d)}; \
|
166
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
167
|
+
} else { \
|
168
|
+
/* unsigned 16 */ \
|
169
|
+
unsigned char buf[3]; \
|
170
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
171
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
172
|
+
} \
|
173
|
+
} \
|
174
174
|
} while(0)
|
175
175
|
|
176
176
|
#define msgpack_pack_real_int32(x, d) \
|
177
177
|
do { \
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
178
|
+
if(d < -(1<<5)) { \
|
179
|
+
if(d < -(1<<15)) { \
|
180
|
+
/* signed 32 */ \
|
181
|
+
unsigned char buf[5]; \
|
182
|
+
buf[0] = 0xd2; _msgpack_store32(&buf[1], (int32_t)d); \
|
183
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
184
|
+
} else if(d < -(1<<7)) { \
|
185
|
+
/* signed 16 */ \
|
186
|
+
unsigned char buf[3]; \
|
187
|
+
buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \
|
188
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
189
|
+
} else { \
|
190
|
+
/* signed 8 */ \
|
191
|
+
unsigned char buf[2] = {0xd0, TAKE8_32(d)}; \
|
192
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
193
|
+
} \
|
194
|
+
} else if(d < (1<<7)) { \
|
195
|
+
/* fixnum */ \
|
196
|
+
msgpack_pack_append_buffer(x, &TAKE8_32(d), 1); \
|
197
|
+
} else { \
|
198
|
+
if(d < (1<<8)) { \
|
199
|
+
/* unsigned 8 */ \
|
200
|
+
unsigned char buf[2] = {0xcc, TAKE8_32(d)}; \
|
201
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
202
|
+
} else if(d < (1<<16)) { \
|
203
|
+
/* unsigned 16 */ \
|
204
|
+
unsigned char buf[3]; \
|
205
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
206
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
207
|
+
} else { \
|
208
|
+
/* unsigned 32 */ \
|
209
|
+
unsigned char buf[5]; \
|
210
|
+
buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \
|
211
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
212
|
+
} \
|
213
|
+
} \
|
214
214
|
} while(0)
|
215
215
|
|
216
216
|
#define msgpack_pack_real_int64(x, d) \
|
217
217
|
do { \
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
218
|
+
if(d < -(1LL<<5)) { \
|
219
|
+
if(d < -(1LL<<15)) { \
|
220
|
+
if(d < -(1LL<<31)) { \
|
221
|
+
/* signed 64 */ \
|
222
|
+
unsigned char buf[9]; \
|
223
|
+
buf[0] = 0xd3; _msgpack_store64(&buf[1], d); \
|
224
|
+
msgpack_pack_append_buffer(x, buf, 9); \
|
225
|
+
} else { \
|
226
|
+
/* signed 32 */ \
|
227
|
+
unsigned char buf[5]; \
|
228
|
+
buf[0] = 0xd2; _msgpack_store32(&buf[1], (int32_t)d); \
|
229
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
230
|
+
} \
|
231
|
+
} else { \
|
232
|
+
if(d < -(1<<7)) { \
|
233
|
+
/* signed 16 */ \
|
234
|
+
unsigned char buf[3]; \
|
235
|
+
buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \
|
236
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
237
|
+
} else { \
|
238
|
+
/* signed 8 */ \
|
239
|
+
unsigned char buf[2] = {0xd0, TAKE8_64(d)}; \
|
240
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
241
|
+
} \
|
242
|
+
} \
|
243
|
+
} else if(d < (1<<7)) { \
|
244
|
+
/* fixnum */ \
|
245
|
+
msgpack_pack_append_buffer(x, &TAKE8_64(d), 1); \
|
246
|
+
} else { \
|
247
|
+
if(d < (1LL<<16)) { \
|
248
|
+
if(d < (1<<8)) { \
|
249
|
+
/* unsigned 8 */ \
|
250
|
+
unsigned char buf[2] = {0xcc, TAKE8_64(d)}; \
|
251
|
+
msgpack_pack_append_buffer(x, buf, 2); \
|
252
|
+
} else { \
|
253
|
+
/* unsigned 16 */ \
|
254
|
+
unsigned char buf[3]; \
|
255
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \
|
256
|
+
msgpack_pack_append_buffer(x, buf, 3); \
|
257
|
+
} \
|
258
|
+
} else { \
|
259
|
+
if(d < (1LL<<32)) { \
|
260
|
+
/* unsigned 32 */ \
|
261
|
+
unsigned char buf[5]; \
|
262
|
+
buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \
|
263
|
+
msgpack_pack_append_buffer(x, buf, 5); \
|
264
|
+
} else { \
|
265
|
+
/* unsigned 64 */ \
|
266
|
+
unsigned char buf[9]; \
|
267
|
+
buf[0] = 0xcf; _msgpack_store64(&buf[1], d); \
|
268
|
+
msgpack_pack_append_buffer(x, buf, 9); \
|
269
|
+
} \
|
270
|
+
} \
|
271
|
+
} \
|
272
272
|
} while(0)
|
273
273
|
|
274
274
|
|
@@ -276,56 +276,56 @@ do { \
|
|
276
276
|
|
277
277
|
msgpack_pack_inline_func_fixint(_uint8)(msgpack_pack_user x, uint8_t d)
|
278
278
|
{
|
279
|
-
|
280
|
-
|
279
|
+
unsigned char buf[2] = {0xcc, TAKE8_8(d)};
|
280
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
281
281
|
}
|
282
282
|
|
283
283
|
msgpack_pack_inline_func_fixint(_uint16)(msgpack_pack_user x, uint16_t d)
|
284
284
|
{
|
285
|
-
|
286
|
-
|
287
|
-
|
285
|
+
unsigned char buf[3];
|
286
|
+
buf[0] = 0xcd; _msgpack_store16(&buf[1], d);
|
287
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
288
288
|
}
|
289
289
|
|
290
290
|
msgpack_pack_inline_func_fixint(_uint32)(msgpack_pack_user x, uint32_t d)
|
291
291
|
{
|
292
|
-
|
293
|
-
|
294
|
-
|
292
|
+
unsigned char buf[5];
|
293
|
+
buf[0] = 0xce; _msgpack_store32(&buf[1], d);
|
294
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
295
295
|
}
|
296
296
|
|
297
297
|
msgpack_pack_inline_func_fixint(_uint64)(msgpack_pack_user x, uint64_t d)
|
298
298
|
{
|
299
|
-
|
300
|
-
|
301
|
-
|
299
|
+
unsigned char buf[9];
|
300
|
+
buf[0] = 0xcf; _msgpack_store64(&buf[1], d);
|
301
|
+
msgpack_pack_append_buffer(x, buf, 9);
|
302
302
|
}
|
303
303
|
|
304
304
|
msgpack_pack_inline_func_fixint(_int8)(msgpack_pack_user x, int8_t d)
|
305
305
|
{
|
306
|
-
|
307
|
-
|
306
|
+
unsigned char buf[2] = {0xd0, TAKE8_8(d)};
|
307
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
308
308
|
}
|
309
309
|
|
310
310
|
msgpack_pack_inline_func_fixint(_int16)(msgpack_pack_user x, int16_t d)
|
311
311
|
{
|
312
|
-
|
313
|
-
|
314
|
-
|
312
|
+
unsigned char buf[3];
|
313
|
+
buf[0] = 0xd1; _msgpack_store16(&buf[1], d);
|
314
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
315
315
|
}
|
316
316
|
|
317
317
|
msgpack_pack_inline_func_fixint(_int32)(msgpack_pack_user x, int32_t d)
|
318
318
|
{
|
319
|
-
|
320
|
-
|
321
|
-
|
319
|
+
unsigned char buf[5];
|
320
|
+
buf[0] = 0xd2; _msgpack_store32(&buf[1], d);
|
321
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
322
322
|
}
|
323
323
|
|
324
324
|
msgpack_pack_inline_func_fixint(_int64)(msgpack_pack_user x, int64_t d)
|
325
325
|
{
|
326
|
-
|
327
|
-
|
328
|
-
|
326
|
+
unsigned char buf[9];
|
327
|
+
buf[0] = 0xd3; _msgpack_store64(&buf[1], d);
|
328
|
+
msgpack_pack_append_buffer(x, buf, 9);
|
329
329
|
}
|
330
330
|
|
331
331
|
#undef msgpack_pack_inline_func_fixint
|
@@ -334,51 +334,51 @@ msgpack_pack_inline_func_fixint(_int64)(msgpack_pack_user x, int64_t d)
|
|
334
334
|
|
335
335
|
msgpack_pack_inline_func(_uint8)(msgpack_pack_user x, uint8_t d)
|
336
336
|
{
|
337
|
-
|
337
|
+
msgpack_pack_real_uint8(x, d);
|
338
338
|
}
|
339
339
|
|
340
340
|
msgpack_pack_inline_func(_uint16)(msgpack_pack_user x, uint16_t d)
|
341
341
|
{
|
342
|
-
|
342
|
+
msgpack_pack_real_uint16(x, d);
|
343
343
|
}
|
344
344
|
|
345
345
|
msgpack_pack_inline_func(_uint32)(msgpack_pack_user x, uint32_t d)
|
346
346
|
{
|
347
|
-
|
347
|
+
msgpack_pack_real_uint32(x, d);
|
348
348
|
}
|
349
349
|
|
350
350
|
msgpack_pack_inline_func(_uint64)(msgpack_pack_user x, uint64_t d)
|
351
351
|
{
|
352
|
-
|
352
|
+
msgpack_pack_real_uint64(x, d);
|
353
353
|
}
|
354
354
|
|
355
355
|
msgpack_pack_inline_func(_int8)(msgpack_pack_user x, int8_t d)
|
356
356
|
{
|
357
|
-
|
357
|
+
msgpack_pack_real_int8(x, d);
|
358
358
|
}
|
359
359
|
|
360
360
|
msgpack_pack_inline_func(_int16)(msgpack_pack_user x, int16_t d)
|
361
361
|
{
|
362
|
-
|
362
|
+
msgpack_pack_real_int16(x, d);
|
363
363
|
}
|
364
364
|
|
365
365
|
msgpack_pack_inline_func(_int32)(msgpack_pack_user x, int32_t d)
|
366
366
|
{
|
367
|
-
|
367
|
+
msgpack_pack_real_int32(x, d);
|
368
368
|
}
|
369
369
|
|
370
370
|
msgpack_pack_inline_func(_int64)(msgpack_pack_user x, int64_t d)
|
371
371
|
{
|
372
|
-
|
372
|
+
msgpack_pack_real_int64(x, d);
|
373
373
|
}
|
374
374
|
|
375
375
|
msgpack_pack_inline_func(_char)(msgpack_pack_user x, char d)
|
376
376
|
{
|
377
377
|
#if defined(CHAR_MIN)
|
378
378
|
#if CHAR_MIN < 0
|
379
|
-
|
379
|
+
msgpack_pack_real_int8(x, d);
|
380
380
|
#else
|
381
|
-
|
381
|
+
msgpack_pack_real_uint8(x, d);
|
382
382
|
#endif
|
383
383
|
#else
|
384
384
|
#error CHAR_MIN is not defined
|
@@ -387,12 +387,12 @@ msgpack_pack_inline_func(_char)(msgpack_pack_user x, char d)
|
|
387
387
|
|
388
388
|
msgpack_pack_inline_func(_signed_char)(msgpack_pack_user x, signed char d)
|
389
389
|
{
|
390
|
-
|
390
|
+
msgpack_pack_real_int8(x, d);
|
391
391
|
}
|
392
392
|
|
393
393
|
msgpack_pack_inline_func(_unsigned_char)(msgpack_pack_user x, unsigned char d)
|
394
394
|
{
|
395
|
-
|
395
|
+
msgpack_pack_real_uint8(x, d);
|
396
396
|
}
|
397
397
|
|
398
398
|
#ifdef msgpack_pack_inline_func_cint
|
@@ -401,29 +401,29 @@ msgpack_pack_inline_func_cint(_short)(msgpack_pack_user x, short d)
|
|
401
401
|
{
|
402
402
|
#if defined(SIZEOF_SHORT)
|
403
403
|
#if SIZEOF_SHORT == 2
|
404
|
-
|
404
|
+
msgpack_pack_real_int16(x, d);
|
405
405
|
#elif SIZEOF_SHORT == 4
|
406
|
-
|
406
|
+
msgpack_pack_real_int32(x, d);
|
407
407
|
#else
|
408
|
-
|
408
|
+
msgpack_pack_real_int64(x, d);
|
409
409
|
#endif
|
410
410
|
|
411
411
|
#elif defined(SHRT_MAX)
|
412
412
|
#if SHRT_MAX == 0x7fff
|
413
|
-
|
413
|
+
msgpack_pack_real_int16(x, d);
|
414
414
|
#elif SHRT_MAX == 0x7fffffff
|
415
|
-
|
415
|
+
msgpack_pack_real_int32(x, d);
|
416
416
|
#else
|
417
|
-
|
417
|
+
msgpack_pack_real_int64(x, d);
|
418
418
|
#endif
|
419
419
|
|
420
420
|
#else
|
421
421
|
if(sizeof(short) == 2) {
|
422
|
-
|
422
|
+
msgpack_pack_real_int16(x, d);
|
423
423
|
} else if(sizeof(short) == 4) {
|
424
|
-
|
424
|
+
msgpack_pack_real_int32(x, d);
|
425
425
|
} else {
|
426
|
-
|
426
|
+
msgpack_pack_real_int64(x, d);
|
427
427
|
}
|
428
428
|
#endif
|
429
429
|
}
|
@@ -432,29 +432,29 @@ msgpack_pack_inline_func_cint(_int)(msgpack_pack_user x, int d)
|
|
432
432
|
{
|
433
433
|
#if defined(SIZEOF_INT)
|
434
434
|
#if SIZEOF_INT == 2
|
435
|
-
|
435
|
+
msgpack_pack_real_int16(x, d);
|
436
436
|
#elif SIZEOF_INT == 4
|
437
|
-
|
437
|
+
msgpack_pack_real_int32(x, d);
|
438
438
|
#else
|
439
|
-
|
439
|
+
msgpack_pack_real_int64(x, d);
|
440
440
|
#endif
|
441
441
|
|
442
442
|
#elif defined(INT_MAX)
|
443
443
|
#if INT_MAX == 0x7fff
|
444
|
-
|
444
|
+
msgpack_pack_real_int16(x, d);
|
445
445
|
#elif INT_MAX == 0x7fffffff
|
446
|
-
|
446
|
+
msgpack_pack_real_int32(x, d);
|
447
447
|
#else
|
448
|
-
|
448
|
+
msgpack_pack_real_int64(x, d);
|
449
449
|
#endif
|
450
450
|
|
451
451
|
#else
|
452
452
|
if(sizeof(int) == 2) {
|
453
|
-
|
453
|
+
msgpack_pack_real_int16(x, d);
|
454
454
|
} else if(sizeof(int) == 4) {
|
455
|
-
|
455
|
+
msgpack_pack_real_int32(x, d);
|
456
456
|
} else {
|
457
|
-
|
457
|
+
msgpack_pack_real_int64(x, d);
|
458
458
|
}
|
459
459
|
#endif
|
460
460
|
}
|
@@ -463,29 +463,29 @@ msgpack_pack_inline_func_cint(_long)(msgpack_pack_user x, long d)
|
|
463
463
|
{
|
464
464
|
#if defined(SIZEOF_LONG)
|
465
465
|
#if SIZEOF_LONG == 2
|
466
|
-
|
466
|
+
msgpack_pack_real_int16(x, d);
|
467
467
|
#elif SIZEOF_LONG == 4
|
468
|
-
|
468
|
+
msgpack_pack_real_int32(x, d);
|
469
469
|
#else
|
470
|
-
|
470
|
+
msgpack_pack_real_int64(x, d);
|
471
471
|
#endif
|
472
472
|
|
473
473
|
#elif defined(LONG_MAX)
|
474
474
|
#if LONG_MAX == 0x7fffL
|
475
|
-
|
475
|
+
msgpack_pack_real_int16(x, d);
|
476
476
|
#elif LONG_MAX == 0x7fffffffL
|
477
|
-
|
477
|
+
msgpack_pack_real_int32(x, d);
|
478
478
|
#else
|
479
|
-
|
479
|
+
msgpack_pack_real_int64(x, d);
|
480
480
|
#endif
|
481
481
|
|
482
482
|
#else
|
483
483
|
if(sizeof(long) == 2) {
|
484
|
-
|
484
|
+
msgpack_pack_real_int16(x, d);
|
485
485
|
} else if(sizeof(long) == 4) {
|
486
|
-
|
486
|
+
msgpack_pack_real_int32(x, d);
|
487
487
|
} else {
|
488
|
-
|
488
|
+
msgpack_pack_real_int64(x, d);
|
489
489
|
}
|
490
490
|
#endif
|
491
491
|
}
|
@@ -494,29 +494,29 @@ msgpack_pack_inline_func_cint(_long_long)(msgpack_pack_user x, long long d)
|
|
494
494
|
{
|
495
495
|
#if defined(SIZEOF_LONG_LONG)
|
496
496
|
#if SIZEOF_LONG_LONG == 2
|
497
|
-
|
497
|
+
msgpack_pack_real_int16(x, d);
|
498
498
|
#elif SIZEOF_LONG_LONG == 4
|
499
|
-
|
499
|
+
msgpack_pack_real_int32(x, d);
|
500
500
|
#else
|
501
|
-
|
501
|
+
msgpack_pack_real_int64(x, d);
|
502
502
|
#endif
|
503
503
|
|
504
504
|
#elif defined(LLONG_MAX)
|
505
505
|
#if LLONG_MAX == 0x7fffL
|
506
|
-
|
506
|
+
msgpack_pack_real_int16(x, d);
|
507
507
|
#elif LLONG_MAX == 0x7fffffffL
|
508
|
-
|
508
|
+
msgpack_pack_real_int32(x, d);
|
509
509
|
#else
|
510
|
-
|
510
|
+
msgpack_pack_real_int64(x, d);
|
511
511
|
#endif
|
512
512
|
|
513
513
|
#else
|
514
514
|
if(sizeof(long long) == 2) {
|
515
|
-
|
515
|
+
msgpack_pack_real_int16(x, d);
|
516
516
|
} else if(sizeof(long long) == 4) {
|
517
|
-
|
517
|
+
msgpack_pack_real_int32(x, d);
|
518
518
|
} else {
|
519
|
-
|
519
|
+
msgpack_pack_real_int64(x, d);
|
520
520
|
}
|
521
521
|
#endif
|
522
522
|
}
|
@@ -525,29 +525,29 @@ msgpack_pack_inline_func_cint(_unsigned_short)(msgpack_pack_user x, unsigned sho
|
|
525
525
|
{
|
526
526
|
#if defined(SIZEOF_SHORT)
|
527
527
|
#if SIZEOF_SHORT == 2
|
528
|
-
|
528
|
+
msgpack_pack_real_uint16(x, d);
|
529
529
|
#elif SIZEOF_SHORT == 4
|
530
|
-
|
530
|
+
msgpack_pack_real_uint32(x, d);
|
531
531
|
#else
|
532
|
-
|
532
|
+
msgpack_pack_real_uint64(x, d);
|
533
533
|
#endif
|
534
534
|
|
535
535
|
#elif defined(USHRT_MAX)
|
536
536
|
#if USHRT_MAX == 0xffffU
|
537
|
-
|
537
|
+
msgpack_pack_real_uint16(x, d);
|
538
538
|
#elif USHRT_MAX == 0xffffffffU
|
539
|
-
|
539
|
+
msgpack_pack_real_uint32(x, d);
|
540
540
|
#else
|
541
|
-
|
541
|
+
msgpack_pack_real_uint64(x, d);
|
542
542
|
#endif
|
543
543
|
|
544
544
|
#else
|
545
545
|
if(sizeof(unsigned short) == 2) {
|
546
|
-
|
546
|
+
msgpack_pack_real_uint16(x, d);
|
547
547
|
} else if(sizeof(unsigned short) == 4) {
|
548
|
-
|
548
|
+
msgpack_pack_real_uint32(x, d);
|
549
549
|
} else {
|
550
|
-
|
550
|
+
msgpack_pack_real_uint64(x, d);
|
551
551
|
}
|
552
552
|
#endif
|
553
553
|
}
|
@@ -556,29 +556,29 @@ msgpack_pack_inline_func_cint(_unsigned_int)(msgpack_pack_user x, unsigned int d
|
|
556
556
|
{
|
557
557
|
#if defined(SIZEOF_INT)
|
558
558
|
#if SIZEOF_INT == 2
|
559
|
-
|
559
|
+
msgpack_pack_real_uint16(x, d);
|
560
560
|
#elif SIZEOF_INT == 4
|
561
|
-
|
561
|
+
msgpack_pack_real_uint32(x, d);
|
562
562
|
#else
|
563
|
-
|
563
|
+
msgpack_pack_real_uint64(x, d);
|
564
564
|
#endif
|
565
565
|
|
566
566
|
#elif defined(UINT_MAX)
|
567
567
|
#if UINT_MAX == 0xffffU
|
568
|
-
|
568
|
+
msgpack_pack_real_uint16(x, d);
|
569
569
|
#elif UINT_MAX == 0xffffffffU
|
570
|
-
|
570
|
+
msgpack_pack_real_uint32(x, d);
|
571
571
|
#else
|
572
|
-
|
572
|
+
msgpack_pack_real_uint64(x, d);
|
573
573
|
#endif
|
574
574
|
|
575
575
|
#else
|
576
576
|
if(sizeof(unsigned int) == 2) {
|
577
|
-
|
577
|
+
msgpack_pack_real_uint16(x, d);
|
578
578
|
} else if(sizeof(unsigned int) == 4) {
|
579
|
-
|
579
|
+
msgpack_pack_real_uint32(x, d);
|
580
580
|
} else {
|
581
|
-
|
581
|
+
msgpack_pack_real_uint64(x, d);
|
582
582
|
}
|
583
583
|
#endif
|
584
584
|
}
|
@@ -587,29 +587,29 @@ msgpack_pack_inline_func_cint(_unsigned_long)(msgpack_pack_user x, unsigned long
|
|
587
587
|
{
|
588
588
|
#if defined(SIZEOF_LONG)
|
589
589
|
#if SIZEOF_LONG == 2
|
590
|
-
|
590
|
+
msgpack_pack_real_uint16(x, d);
|
591
591
|
#elif SIZEOF_LONG == 4
|
592
|
-
|
592
|
+
msgpack_pack_real_uint32(x, d);
|
593
593
|
#else
|
594
|
-
|
594
|
+
msgpack_pack_real_uint64(x, d);
|
595
595
|
#endif
|
596
596
|
|
597
597
|
#elif defined(ULONG_MAX)
|
598
598
|
#if ULONG_MAX == 0xffffUL
|
599
|
-
|
599
|
+
msgpack_pack_real_uint16(x, d);
|
600
600
|
#elif ULONG_MAX == 0xffffffffUL
|
601
|
-
|
601
|
+
msgpack_pack_real_uint32(x, d);
|
602
602
|
#else
|
603
|
-
|
603
|
+
msgpack_pack_real_uint64(x, d);
|
604
604
|
#endif
|
605
605
|
|
606
606
|
#else
|
607
607
|
if(sizeof(unsigned long) == 2) {
|
608
|
-
|
608
|
+
msgpack_pack_real_uint16(x, d);
|
609
609
|
} else if(sizeof(unsigned long) == 4) {
|
610
|
-
|
610
|
+
msgpack_pack_real_uint32(x, d);
|
611
611
|
} else {
|
612
|
-
|
612
|
+
msgpack_pack_real_uint64(x, d);
|
613
613
|
}
|
614
614
|
#endif
|
615
615
|
}
|
@@ -618,29 +618,29 @@ msgpack_pack_inline_func_cint(_unsigned_long_long)(msgpack_pack_user x, unsigned
|
|
618
618
|
{
|
619
619
|
#if defined(SIZEOF_LONG_LONG)
|
620
620
|
#if SIZEOF_LONG_LONG == 2
|
621
|
-
|
621
|
+
msgpack_pack_real_uint16(x, d);
|
622
622
|
#elif SIZEOF_LONG_LONG == 4
|
623
|
-
|
623
|
+
msgpack_pack_real_uint32(x, d);
|
624
624
|
#else
|
625
|
-
|
625
|
+
msgpack_pack_real_uint64(x, d);
|
626
626
|
#endif
|
627
627
|
|
628
628
|
#elif defined(ULLONG_MAX)
|
629
629
|
#if ULLONG_MAX == 0xffffUL
|
630
|
-
|
630
|
+
msgpack_pack_real_uint16(x, d);
|
631
631
|
#elif ULLONG_MAX == 0xffffffffUL
|
632
|
-
|
632
|
+
msgpack_pack_real_uint32(x, d);
|
633
633
|
#else
|
634
|
-
|
634
|
+
msgpack_pack_real_uint64(x, d);
|
635
635
|
#endif
|
636
636
|
|
637
637
|
#else
|
638
638
|
if(sizeof(unsigned long long) == 2) {
|
639
|
-
|
639
|
+
msgpack_pack_real_uint16(x, d);
|
640
640
|
} else if(sizeof(unsigned long long) == 4) {
|
641
|
-
|
641
|
+
msgpack_pack_real_uint32(x, d);
|
642
642
|
} else {
|
643
|
-
|
643
|
+
msgpack_pack_real_uint64(x, d);
|
644
644
|
}
|
645
645
|
#endif
|
646
646
|
}
|
@@ -656,25 +656,25 @@ if(sizeof(unsigned long long) == 2) {
|
|
656
656
|
|
657
657
|
msgpack_pack_inline_func(_float)(msgpack_pack_user x, float d)
|
658
658
|
{
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
659
|
+
unsigned char buf[5];
|
660
|
+
union { float f; uint32_t i; } mem;
|
661
|
+
mem.f = d;
|
662
|
+
buf[0] = 0xca; _msgpack_store32(&buf[1], mem.i);
|
663
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
664
664
|
}
|
665
665
|
|
666
666
|
msgpack_pack_inline_func(_double)(msgpack_pack_user x, double d)
|
667
667
|
{
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
668
|
+
unsigned char buf[9];
|
669
|
+
union { double f; uint64_t i; } mem;
|
670
|
+
mem.f = d;
|
671
|
+
buf[0] = 0xcb;
|
672
672
|
#if defined(__arm__) && !(__ARM_EABI__) // arm-oabi
|
673
673
|
// https://github.com/msgpack/msgpack-perl/pull/1
|
674
674
|
mem.i = (mem.i & 0xFFFFFFFFUL) << 32UL | (mem.i >> 32UL);
|
675
675
|
#endif
|
676
676
|
_msgpack_store64(&buf[1], mem.i);
|
677
|
-
|
677
|
+
msgpack_pack_append_buffer(x, buf, 9);
|
678
678
|
}
|
679
679
|
|
680
680
|
|
@@ -684,8 +684,8 @@ msgpack_pack_inline_func(_double)(msgpack_pack_user x, double d)
|
|
684
684
|
|
685
685
|
msgpack_pack_inline_func(_nil)(msgpack_pack_user x)
|
686
686
|
{
|
687
|
-
|
688
|
-
|
687
|
+
static const unsigned char d = 0xc0;
|
688
|
+
msgpack_pack_append_buffer(x, &d, 1);
|
689
689
|
}
|
690
690
|
|
691
691
|
|
@@ -695,14 +695,14 @@ msgpack_pack_inline_func(_nil)(msgpack_pack_user x)
|
|
695
695
|
|
696
696
|
msgpack_pack_inline_func(_true)(msgpack_pack_user x)
|
697
697
|
{
|
698
|
-
|
699
|
-
|
698
|
+
static const unsigned char d = 0xc3;
|
699
|
+
msgpack_pack_append_buffer(x, &d, 1);
|
700
700
|
}
|
701
701
|
|
702
702
|
msgpack_pack_inline_func(_false)(msgpack_pack_user x)
|
703
703
|
{
|
704
|
-
|
705
|
-
|
704
|
+
static const unsigned char d = 0xc2;
|
705
|
+
msgpack_pack_append_buffer(x, &d, 1);
|
706
706
|
}
|
707
707
|
|
708
708
|
|
@@ -712,18 +712,18 @@ msgpack_pack_inline_func(_false)(msgpack_pack_user x)
|
|
712
712
|
|
713
713
|
msgpack_pack_inline_func(_array)(msgpack_pack_user x, size_t n)
|
714
714
|
{
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
715
|
+
if(n < 16) {
|
716
|
+
unsigned char d = 0x90 | (uint8_t)n;
|
717
|
+
msgpack_pack_append_buffer(x, &d, 1);
|
718
|
+
} else if(n < 65536) {
|
719
|
+
unsigned char buf[3];
|
720
|
+
buf[0] = 0xdc; _msgpack_store16(&buf[1], (uint16_t)n);
|
721
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
722
|
+
} else {
|
723
|
+
unsigned char buf[5];
|
724
|
+
buf[0] = 0xdd; _msgpack_store32(&buf[1], (uint32_t)n);
|
725
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
726
|
+
}
|
727
727
|
}
|
728
728
|
|
729
729
|
|
@@ -733,44 +733,140 @@ msgpack_pack_inline_func(_array)(msgpack_pack_user x, size_t n)
|
|
733
733
|
|
734
734
|
msgpack_pack_inline_func(_map)(msgpack_pack_user x, size_t n)
|
735
735
|
{
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
736
|
+
if(n < 16) {
|
737
|
+
unsigned char d = 0x80 | (uint8_t)n;
|
738
|
+
msgpack_pack_append_buffer(x, &TAKE8_8(d), 1);
|
739
|
+
} else if(n < 65536) {
|
740
|
+
unsigned char buf[3];
|
741
|
+
buf[0] = 0xde; _msgpack_store16(&buf[1], (uint16_t)n);
|
742
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
743
|
+
} else {
|
744
|
+
unsigned char buf[5];
|
745
|
+
buf[0] = 0xdf; _msgpack_store32(&buf[1], (uint32_t)n);
|
746
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
747
|
+
}
|
748
748
|
}
|
749
749
|
|
750
750
|
|
751
751
|
/*
|
752
|
-
*
|
752
|
+
* Str
|
753
753
|
*/
|
754
754
|
|
755
|
-
msgpack_pack_inline_func(
|
755
|
+
msgpack_pack_inline_func(_str)(msgpack_pack_user x, size_t l)
|
756
756
|
{
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
757
|
+
if(l < 32) {
|
758
|
+
unsigned char d = 0xa0 | (uint8_t)l;
|
759
|
+
msgpack_pack_append_buffer(x, &TAKE8_8(d), 1);
|
760
|
+
} else if(l < 256) {
|
761
|
+
unsigned char buf[2];
|
762
|
+
buf[0] = 0xd9; buf[1] = (uint8_t)l;
|
763
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
764
|
+
} else if(l < 65536) {
|
765
|
+
unsigned char buf[3];
|
766
|
+
buf[0] = 0xda; _msgpack_store16(&buf[1], (uint16_t)l);
|
767
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
768
|
+
} else {
|
769
|
+
unsigned char buf[5];
|
770
|
+
buf[0] = 0xdb; _msgpack_store32(&buf[1], (uint32_t)l);
|
771
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
772
|
+
}
|
769
773
|
}
|
770
774
|
|
771
|
-
msgpack_pack_inline_func(
|
775
|
+
msgpack_pack_inline_func(_str_body)(msgpack_pack_user x, const void* b, size_t l)
|
772
776
|
{
|
773
|
-
|
777
|
+
msgpack_pack_append_buffer(x, (const unsigned char*)b, l);
|
778
|
+
}
|
779
|
+
|
780
|
+
/*
|
781
|
+
* Bin
|
782
|
+
*/
|
783
|
+
|
784
|
+
msgpack_pack_inline_func(_bin)(msgpack_pack_user x, size_t l)
|
785
|
+
{
|
786
|
+
if(l < 256) {
|
787
|
+
unsigned char buf[2];
|
788
|
+
buf[0] = 0xc4; buf[1] = (uint8_t)l;
|
789
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
790
|
+
} else if(l < 65536) {
|
791
|
+
unsigned char buf[3];
|
792
|
+
buf[0] = 0xc5; _msgpack_store16(&buf[1], (uint16_t)l);
|
793
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
794
|
+
} else {
|
795
|
+
unsigned char buf[5];
|
796
|
+
buf[0] = 0xc6; _msgpack_store32(&buf[1], (uint32_t)l);
|
797
|
+
msgpack_pack_append_buffer(x, buf, 5);
|
798
|
+
}
|
799
|
+
}
|
800
|
+
|
801
|
+
msgpack_pack_inline_func(_bin_body)(msgpack_pack_user x, const void* b, size_t l)
|
802
|
+
{
|
803
|
+
msgpack_pack_append_buffer(x, (const unsigned char*)b, l);
|
804
|
+
}
|
805
|
+
|
806
|
+
/*
|
807
|
+
* Ext
|
808
|
+
*/
|
809
|
+
|
810
|
+
msgpack_pack_inline_func(_ext)(msgpack_pack_user x, size_t l, int8_t type)
|
811
|
+
{
|
812
|
+
switch(l) {
|
813
|
+
case 1: {
|
814
|
+
unsigned char buf[2];
|
815
|
+
buf[0] = 0xd4;
|
816
|
+
buf[1] = type;
|
817
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
818
|
+
} break;
|
819
|
+
case 2: {
|
820
|
+
unsigned char buf[2];
|
821
|
+
buf[0] = 0xd5;
|
822
|
+
buf[1] = type;
|
823
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
824
|
+
} break;
|
825
|
+
case 4: {
|
826
|
+
unsigned char buf[2];
|
827
|
+
buf[0] = 0xd6;
|
828
|
+
buf[1] = type;
|
829
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
830
|
+
} break;
|
831
|
+
case 8: {
|
832
|
+
unsigned char buf[2];
|
833
|
+
buf[0] = 0xd7;
|
834
|
+
buf[1] = type;
|
835
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
836
|
+
} break;
|
837
|
+
case 16: {
|
838
|
+
unsigned char buf[2];
|
839
|
+
buf[0] = 0xd8;
|
840
|
+
buf[1] = type;
|
841
|
+
msgpack_pack_append_buffer(x, buf, 2);
|
842
|
+
} break;
|
843
|
+
default:
|
844
|
+
if(l < 256) {
|
845
|
+
unsigned char buf[3];
|
846
|
+
buf[0] = 0xc7;
|
847
|
+
buf[1] = (unsigned char)l;
|
848
|
+
buf[2] = type;
|
849
|
+
msgpack_pack_append_buffer(x, buf, 3);
|
850
|
+
} else if(l < 65536) {
|
851
|
+
unsigned char buf[4];
|
852
|
+
buf[0] = 0xc8;
|
853
|
+
_msgpack_store16(&buf[1], l);
|
854
|
+
buf[3] = type;
|
855
|
+
msgpack_pack_append_buffer(x, buf, 4);
|
856
|
+
} else {
|
857
|
+
unsigned char buf[6];
|
858
|
+
buf[0] = 0xc9;
|
859
|
+
_msgpack_store32(&buf[1], l);
|
860
|
+
buf[5] = type;
|
861
|
+
msgpack_pack_append_buffer(x, buf, 6);
|
862
|
+
}
|
863
|
+
break;
|
864
|
+
}
|
865
|
+
}
|
866
|
+
|
867
|
+
msgpack_pack_inline_func(_ext_body)(msgpack_pack_user x, const void* b, size_t l)
|
868
|
+
{
|
869
|
+
msgpack_pack_append_buffer(x, (const unsigned char*)b, l);
|
774
870
|
}
|
775
871
|
|
776
872
|
#undef msgpack_pack_inline_func
|