rroonga 1.3.1-x86-mingw32 → 2.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Rakefile +2 -7
- data/ext/groonga/rb-grn-column.c +34 -37
- data/ext/groonga/rb-grn-context.c +63 -2
- data/ext/groonga/rb-grn-expression.c +21 -13
- data/ext/groonga/rb-grn-object.c +2 -0
- data/ext/groonga/rb-grn-table.c +57 -51
- data/ext/groonga/rb-grn.h +10 -4
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/schema.rb +75 -46
- data/lib/groonga.rb +9 -6
- data/rroonga-build.rb +2 -2
- data/test/run-test.rb +1 -2
- data/test/test-table-select.rb +0 -5
- data/test/test-type.rb +2 -2
- data/test/test-version.rb +40 -10
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +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-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +113 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +146 -0
- data/vendor/local/include/groonga/groonga.h +18 -18
- data/vendor/local/include/msgpack/object.h +98 -0
- data/vendor/local/include/msgpack/object.hpp +412 -0
- data/vendor/local/include/msgpack/pack.h +143 -0
- data/vendor/local/include/msgpack/pack.hpp +318 -0
- data/vendor/local/include/msgpack/pack_define.h +26 -0
- data/vendor/local/include/msgpack/pack_template.h +766 -0
- data/vendor/local/include/msgpack/sbuffer.h +111 -0
- data/vendor/local/include/msgpack/sbuffer.hpp +112 -0
- data/vendor/local/include/msgpack/sysdep.h +195 -0
- data/vendor/local/include/msgpack/type/bool.hpp +55 -0
- data/vendor/local/include/msgpack/type/define.hpp +3279 -0
- data/vendor/local/include/msgpack/type/deque.hpp +77 -0
- data/vendor/local/include/msgpack/type/fixint.hpp +172 -0
- data/vendor/local/include/msgpack/type/float.hpp +82 -0
- data/vendor/local/include/msgpack/type/int.hpp +211 -0
- data/vendor/local/include/msgpack/type/list.hpp +77 -0
- data/vendor/local/include/msgpack/type/map.hpp +205 -0
- data/vendor/local/include/msgpack/type/nil.hpp +65 -0
- data/vendor/local/include/msgpack/type/pair.hpp +61 -0
- data/vendor/local/include/msgpack/type/raw.hpp +94 -0
- data/vendor/local/include/msgpack/type/set.hpp +122 -0
- data/vendor/local/include/msgpack/type/string.hpp +62 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +129 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +122 -0
- data/vendor/local/include/msgpack/type/tuple.hpp +13691 -0
- data/vendor/local/include/msgpack/type/vector.hpp +81 -0
- data/vendor/local/include/msgpack/type.hpp +16 -0
- data/vendor/local/include/msgpack/unpack.h +260 -0
- data/vendor/local/include/msgpack/unpack.hpp +374 -0
- data/vendor/local/include/msgpack/unpack_define.h +93 -0
- data/vendor/local/include/msgpack/unpack_template.h +409 -0
- data/vendor/local/include/msgpack/version.h +40 -0
- data/vendor/local/include/msgpack/vrefbuffer.h +142 -0
- data/vendor/local/include/msgpack/vrefbuffer.hpp +97 -0
- data/vendor/local/include/msgpack/zbuffer.h +207 -0
- data/vendor/local/include/msgpack/zbuffer.hpp +100 -0
- data/vendor/local/include/msgpack/zone.h +147 -0
- data/vendor/local/include/msgpack/zone.hpp +455 -0
- data/vendor/local/include/msgpack.h +30 -0
- data/vendor/local/include/msgpack.hpp +24 -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/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/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/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +41 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +41 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +4 -4
- 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/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/indexing.html +237 -0
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/log.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +566 -0
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +65 -464
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +215 -0
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/log.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +528 -0
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +62 -425
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference.html +14 -8
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/source/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/source/news.txt +51 -385
- data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/source/spec/search.txt +4 -4
- data/vendor/local/share/license/groonga/COPYING +10 -12
- data/vendor/local/share/license/msgpack/AUTHORS +1 -0
- data/vendor/local/share/license/msgpack/COPYING +14 -0
- data/vendor/local/share/license/msgpack/LICENSE +202 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +113 -5
- data/vendor/local/share/man/man1/groonga.1 +142 -11
- metadata +66 -3
- data/vendor/local/share/doc/groonga/source/update_execution_example.py +0 -141
@@ -0,0 +1,455 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ memory pool
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2010 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_ZONE_HPP__
|
19
|
+
#define MSGPACK_ZONE_HPP__
|
20
|
+
|
21
|
+
#include "zone.h"
|
22
|
+
#include <cstdlib>
|
23
|
+
#include <memory>
|
24
|
+
#include <vector>
|
25
|
+
|
26
|
+
|
27
|
+
namespace msgpack {
|
28
|
+
|
29
|
+
|
30
|
+
class zone : public msgpack_zone {
|
31
|
+
public:
|
32
|
+
zone(size_t chunk_size = MSGPACK_ZONE_CHUNK_SIZE);
|
33
|
+
~zone();
|
34
|
+
|
35
|
+
public:
|
36
|
+
void* malloc(size_t size);
|
37
|
+
void* malloc_no_align(size_t size);
|
38
|
+
|
39
|
+
void push_finalizer(void (*func)(void*), void* data);
|
40
|
+
|
41
|
+
template <typename T>
|
42
|
+
void push_finalizer(std::auto_ptr<T> obj);
|
43
|
+
|
44
|
+
void clear();
|
45
|
+
|
46
|
+
void swap(zone& o);
|
47
|
+
|
48
|
+
|
49
|
+
template <typename T>
|
50
|
+
T* allocate();
|
51
|
+
|
52
|
+
template <typename T, typename A1>
|
53
|
+
T* allocate(A1 a1);
|
54
|
+
|
55
|
+
template <typename T, typename A1, typename A2>
|
56
|
+
T* allocate(A1 a1, A2 a2);
|
57
|
+
|
58
|
+
template <typename T, typename A1, typename A2, typename A3>
|
59
|
+
T* allocate(A1 a1, A2 a2, A3 a3);
|
60
|
+
|
61
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4>
|
62
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4);
|
63
|
+
|
64
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5>
|
65
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5);
|
66
|
+
|
67
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
|
68
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6);
|
69
|
+
|
70
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
|
71
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7);
|
72
|
+
|
73
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
|
74
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8);
|
75
|
+
|
76
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
|
77
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9);
|
78
|
+
|
79
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10>
|
80
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10);
|
81
|
+
|
82
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11>
|
83
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11);
|
84
|
+
|
85
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12>
|
86
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12);
|
87
|
+
|
88
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13>
|
89
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13);
|
90
|
+
|
91
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13, typename A14>
|
92
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13, A14 a14);
|
93
|
+
|
94
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13, typename A14, typename A15>
|
95
|
+
T* allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13, A14 a14, A15 a15);
|
96
|
+
|
97
|
+
|
98
|
+
private:
|
99
|
+
void undo_malloc(size_t size);
|
100
|
+
|
101
|
+
template <typename T>
|
102
|
+
static void object_destructor(void* obj);
|
103
|
+
|
104
|
+
typedef msgpack_zone base;
|
105
|
+
|
106
|
+
private:
|
107
|
+
zone(const zone&);
|
108
|
+
};
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
inline zone::zone(size_t chunk_size)
|
113
|
+
{
|
114
|
+
msgpack_zone_init(this, chunk_size);
|
115
|
+
}
|
116
|
+
|
117
|
+
inline zone::~zone()
|
118
|
+
{
|
119
|
+
msgpack_zone_destroy(this);
|
120
|
+
}
|
121
|
+
|
122
|
+
inline void* zone::malloc(size_t size)
|
123
|
+
{
|
124
|
+
void* ptr = msgpack_zone_malloc(this, size);
|
125
|
+
if(!ptr) {
|
126
|
+
throw std::bad_alloc();
|
127
|
+
}
|
128
|
+
return ptr;
|
129
|
+
}
|
130
|
+
|
131
|
+
inline void* zone::malloc_no_align(size_t size)
|
132
|
+
{
|
133
|
+
void* ptr = msgpack_zone_malloc_no_align(this, size);
|
134
|
+
if(!ptr) {
|
135
|
+
throw std::bad_alloc();
|
136
|
+
}
|
137
|
+
return ptr;
|
138
|
+
}
|
139
|
+
|
140
|
+
inline void zone::push_finalizer(void (*func)(void*), void* data)
|
141
|
+
{
|
142
|
+
if(!msgpack_zone_push_finalizer(this, func, data)) {
|
143
|
+
throw std::bad_alloc();
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
template <typename T>
|
148
|
+
inline void zone::push_finalizer(std::auto_ptr<T> obj)
|
149
|
+
{
|
150
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, obj.get())) {
|
151
|
+
throw std::bad_alloc();
|
152
|
+
}
|
153
|
+
obj.release();
|
154
|
+
}
|
155
|
+
|
156
|
+
inline void zone::clear()
|
157
|
+
{
|
158
|
+
msgpack_zone_clear(this);
|
159
|
+
}
|
160
|
+
|
161
|
+
inline void zone::swap(zone& o)
|
162
|
+
{
|
163
|
+
msgpack_zone_swap(this, &o);
|
164
|
+
}
|
165
|
+
|
166
|
+
template <typename T>
|
167
|
+
void zone::object_destructor(void* obj)
|
168
|
+
{
|
169
|
+
reinterpret_cast<T*>(obj)->~T();
|
170
|
+
}
|
171
|
+
|
172
|
+
inline void zone::undo_malloc(size_t size)
|
173
|
+
{
|
174
|
+
base::chunk_list.ptr -= size;
|
175
|
+
base::chunk_list.free += size;
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
template <typename T>
|
180
|
+
T* zone::allocate()
|
181
|
+
{
|
182
|
+
void* x = malloc(sizeof(T));
|
183
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
184
|
+
undo_malloc(sizeof(T));
|
185
|
+
throw std::bad_alloc();
|
186
|
+
}
|
187
|
+
try {
|
188
|
+
return new (x) T();
|
189
|
+
} catch (...) {
|
190
|
+
--base::finalizer_array.tail;
|
191
|
+
undo_malloc(sizeof(T));
|
192
|
+
throw;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
template <typename T, typename A1>
|
197
|
+
T* zone::allocate(A1 a1)
|
198
|
+
{
|
199
|
+
void* x = malloc(sizeof(T));
|
200
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
201
|
+
undo_malloc(sizeof(T));
|
202
|
+
throw std::bad_alloc();
|
203
|
+
}
|
204
|
+
try {
|
205
|
+
return new (x) T(a1);
|
206
|
+
} catch (...) {
|
207
|
+
--base::finalizer_array.tail;
|
208
|
+
undo_malloc(sizeof(T));
|
209
|
+
throw;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
template <typename T, typename A1, typename A2>
|
214
|
+
T* zone::allocate(A1 a1, A2 a2)
|
215
|
+
{
|
216
|
+
void* x = malloc(sizeof(T));
|
217
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
218
|
+
undo_malloc(sizeof(T));
|
219
|
+
throw std::bad_alloc();
|
220
|
+
}
|
221
|
+
try {
|
222
|
+
return new (x) T(a1, a2);
|
223
|
+
} catch (...) {
|
224
|
+
--base::finalizer_array.tail;
|
225
|
+
undo_malloc(sizeof(T));
|
226
|
+
throw;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
template <typename T, typename A1, typename A2, typename A3>
|
231
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3)
|
232
|
+
{
|
233
|
+
void* x = malloc(sizeof(T));
|
234
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
235
|
+
undo_malloc(sizeof(T));
|
236
|
+
throw std::bad_alloc();
|
237
|
+
}
|
238
|
+
try {
|
239
|
+
return new (x) T(a1, a2, a3);
|
240
|
+
} catch (...) {
|
241
|
+
--base::finalizer_array.tail;
|
242
|
+
undo_malloc(sizeof(T));
|
243
|
+
throw;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
|
247
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4>
|
248
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4)
|
249
|
+
{
|
250
|
+
void* x = malloc(sizeof(T));
|
251
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
252
|
+
undo_malloc(sizeof(T));
|
253
|
+
throw std::bad_alloc();
|
254
|
+
}
|
255
|
+
try {
|
256
|
+
return new (x) T(a1, a2, a3, a4);
|
257
|
+
} catch (...) {
|
258
|
+
--base::finalizer_array.tail;
|
259
|
+
undo_malloc(sizeof(T));
|
260
|
+
throw;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5>
|
265
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
|
266
|
+
{
|
267
|
+
void* x = malloc(sizeof(T));
|
268
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
269
|
+
undo_malloc(sizeof(T));
|
270
|
+
throw std::bad_alloc();
|
271
|
+
}
|
272
|
+
try {
|
273
|
+
return new (x) T(a1, a2, a3, a4, a5);
|
274
|
+
} catch (...) {
|
275
|
+
--base::finalizer_array.tail;
|
276
|
+
undo_malloc(sizeof(T));
|
277
|
+
throw;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
|
282
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
|
283
|
+
{
|
284
|
+
void* x = malloc(sizeof(T));
|
285
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
286
|
+
undo_malloc(sizeof(T));
|
287
|
+
throw std::bad_alloc();
|
288
|
+
}
|
289
|
+
try {
|
290
|
+
return new (x) T(a1, a2, a3, a4, a5, a6);
|
291
|
+
} catch (...) {
|
292
|
+
--base::finalizer_array.tail;
|
293
|
+
undo_malloc(sizeof(T));
|
294
|
+
throw;
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7>
|
299
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
|
300
|
+
{
|
301
|
+
void* x = malloc(sizeof(T));
|
302
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
303
|
+
undo_malloc(sizeof(T));
|
304
|
+
throw std::bad_alloc();
|
305
|
+
}
|
306
|
+
try {
|
307
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7);
|
308
|
+
} catch (...) {
|
309
|
+
--base::finalizer_array.tail;
|
310
|
+
undo_malloc(sizeof(T));
|
311
|
+
throw;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8>
|
316
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
|
317
|
+
{
|
318
|
+
void* x = malloc(sizeof(T));
|
319
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
320
|
+
undo_malloc(sizeof(T));
|
321
|
+
throw std::bad_alloc();
|
322
|
+
}
|
323
|
+
try {
|
324
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8);
|
325
|
+
} catch (...) {
|
326
|
+
--base::finalizer_array.tail;
|
327
|
+
undo_malloc(sizeof(T));
|
328
|
+
throw;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9>
|
333
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
|
334
|
+
{
|
335
|
+
void* x = malloc(sizeof(T));
|
336
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
337
|
+
undo_malloc(sizeof(T));
|
338
|
+
throw std::bad_alloc();
|
339
|
+
}
|
340
|
+
try {
|
341
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
342
|
+
} catch (...) {
|
343
|
+
--base::finalizer_array.tail;
|
344
|
+
undo_malloc(sizeof(T));
|
345
|
+
throw;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10>
|
350
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10)
|
351
|
+
{
|
352
|
+
void* x = malloc(sizeof(T));
|
353
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
354
|
+
undo_malloc(sizeof(T));
|
355
|
+
throw std::bad_alloc();
|
356
|
+
}
|
357
|
+
try {
|
358
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
|
359
|
+
} catch (...) {
|
360
|
+
--base::finalizer_array.tail;
|
361
|
+
undo_malloc(sizeof(T));
|
362
|
+
throw;
|
363
|
+
}
|
364
|
+
}
|
365
|
+
|
366
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11>
|
367
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11)
|
368
|
+
{
|
369
|
+
void* x = malloc(sizeof(T));
|
370
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
371
|
+
undo_malloc(sizeof(T));
|
372
|
+
throw std::bad_alloc();
|
373
|
+
}
|
374
|
+
try {
|
375
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
|
376
|
+
} catch (...) {
|
377
|
+
--base::finalizer_array.tail;
|
378
|
+
undo_malloc(sizeof(T));
|
379
|
+
throw;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12>
|
384
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12)
|
385
|
+
{
|
386
|
+
void* x = malloc(sizeof(T));
|
387
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
388
|
+
undo_malloc(sizeof(T));
|
389
|
+
throw std::bad_alloc();
|
390
|
+
}
|
391
|
+
try {
|
392
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
|
393
|
+
} catch (...) {
|
394
|
+
--base::finalizer_array.tail;
|
395
|
+
undo_malloc(sizeof(T));
|
396
|
+
throw;
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13>
|
401
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13)
|
402
|
+
{
|
403
|
+
void* x = malloc(sizeof(T));
|
404
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
405
|
+
undo_malloc(sizeof(T));
|
406
|
+
throw std::bad_alloc();
|
407
|
+
}
|
408
|
+
try {
|
409
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);
|
410
|
+
} catch (...) {
|
411
|
+
--base::finalizer_array.tail;
|
412
|
+
undo_malloc(sizeof(T));
|
413
|
+
throw;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13, typename A14>
|
418
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13, A14 a14)
|
419
|
+
{
|
420
|
+
void* x = malloc(sizeof(T));
|
421
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
422
|
+
undo_malloc(sizeof(T));
|
423
|
+
throw std::bad_alloc();
|
424
|
+
}
|
425
|
+
try {
|
426
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
|
427
|
+
} catch (...) {
|
428
|
+
--base::finalizer_array.tail;
|
429
|
+
undo_malloc(sizeof(T));
|
430
|
+
throw;
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
template <typename T, typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10, typename A11, typename A12, typename A13, typename A14, typename A15>
|
435
|
+
T* zone::allocate(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, A10 a10, A11 a11, A12 a12, A13 a13, A14 a14, A15 a15)
|
436
|
+
{
|
437
|
+
void* x = malloc(sizeof(T));
|
438
|
+
if(!msgpack_zone_push_finalizer(this, &zone::object_destructor<T>, x)) {
|
439
|
+
undo_malloc(sizeof(T));
|
440
|
+
throw std::bad_alloc();
|
441
|
+
}
|
442
|
+
try {
|
443
|
+
return new (x) T(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);
|
444
|
+
} catch (...) {
|
445
|
+
--base::finalizer_array.tail;
|
446
|
+
undo_malloc(sizeof(T));
|
447
|
+
throw;
|
448
|
+
}
|
449
|
+
}
|
450
|
+
|
451
|
+
|
452
|
+
} // namespace msgpack
|
453
|
+
|
454
|
+
#endif /* msgpack/zone.hpp */
|
455
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/*
|
2
|
+
* MessagePack for C
|
3
|
+
*
|
4
|
+
* Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
*
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
* you may not use this file except in compliance with the License.
|
8
|
+
* You may obtain a copy of the License at
|
9
|
+
*
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
*
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
* See the License for the specific language governing permissions and
|
16
|
+
* limitations under the License.
|
17
|
+
*/
|
18
|
+
/**
|
19
|
+
* @defgroup msgpack MessagePack C
|
20
|
+
* @{
|
21
|
+
* @}
|
22
|
+
*/
|
23
|
+
#include "msgpack/object.h"
|
24
|
+
#include "msgpack/zone.h"
|
25
|
+
#include "msgpack/pack.h"
|
26
|
+
#include "msgpack/unpack.h"
|
27
|
+
#include "msgpack/sbuffer.h"
|
28
|
+
#include "msgpack/vrefbuffer.h"
|
29
|
+
#include "msgpack/version.h"
|
30
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#include "msgpack/object.hpp"
|
19
|
+
#include "msgpack/zone.hpp"
|
20
|
+
#include "msgpack/pack.hpp"
|
21
|
+
#include "msgpack/unpack.hpp"
|
22
|
+
#include "msgpack/sbuffer.hpp"
|
23
|
+
#include "msgpack/vrefbuffer.hpp"
|
24
|
+
#include "msgpack.h"
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# suggest.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library='suggest.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la -lws2_32'
|
20
|
+
dependency_libs=' /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib -lws2_32 /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# mecab.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library='mecab.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la -lws2_32'
|
20
|
+
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmecab.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# libgroonga.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4 Debian-2.4-
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library='libgroonga.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -lws2_32'
|
20
|
+
dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la -lws2_32'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
data/vendor/local/lib/libmecab.a
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libmsgpack.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='../bin/libmsgpack-3.dll'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libmsgpack.dll.a'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library='libmsgpack.a'
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=''
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=''
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libmsgpack.
|
26
|
+
current=3
|
27
|
+
age=0
|
28
|
+
revision=0
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=no
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib'
|
Binary file
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# libmsgpackc.la - a libtool library file
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1
|
3
|
+
#
|
4
|
+
# Please DO NOT delete this file!
|
5
|
+
# It is necessary for linking the library.
|
6
|
+
|
7
|
+
# The name that we can dlopen(3).
|
8
|
+
dlname='../bin/libmsgpackc-2.dll'
|
9
|
+
|
10
|
+
# Names of this library.
|
11
|
+
library_names='libmsgpackc.dll.a'
|
12
|
+
|
13
|
+
# The name of the static archive.
|
14
|
+
old_library='libmsgpackc.a'
|
15
|
+
|
16
|
+
# Linker flags that can not go in dependency_libs.
|
17
|
+
inherited_linker_flags=''
|
18
|
+
|
19
|
+
# Libraries that this one depends upon.
|
20
|
+
dependency_libs=''
|
21
|
+
|
22
|
+
# Names of additional weak libraries provided by this library
|
23
|
+
weak_library_names=''
|
24
|
+
|
25
|
+
# Version information for libmsgpackc.
|
26
|
+
current=2
|
27
|
+
age=0
|
28
|
+
revision=0
|
29
|
+
|
30
|
+
# Is this an already installed library?
|
31
|
+
installed=yes
|
32
|
+
|
33
|
+
# Should we warn about portability when linking against -modules?
|
34
|
+
shouldnotlink=no
|
35
|
+
|
36
|
+
# Files to dlopen/dlpreopen
|
37
|
+
dlopen=''
|
38
|
+
dlpreopen=''
|
39
|
+
|
40
|
+
# Directory that this library needs to be installed in:
|
41
|
+
libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib'
|