Kouhei Sutou 2019-02-14 16:12:26 +0900 (Thu, 14 Feb 2019) Revision: 91f05f8abc0e620741e36d592ff6f8458aa0dab9 https://github.com/groonga/groonga/commit/91f05f8abc0e620741e36d592ff6f8458aa0dab9 Message: ii: remove confused "struct grn_ii_buffer" There are "struct _grn_ii_buffer" and "grn_ii_buffer" types. Modified files: lib/ii.c Modified: lib/ii.c (+3 -5) =================================================================== --- lib/ii.c 2019-02-14 16:06:21 +0900 (793f2b119) +++ lib/ii.c 2019-02-14 16:12:26 +0900 (b8c041e7c) @@ -2216,12 +2216,10 @@ typedef struct { uint16_t nterms_void; } buffer_header; -struct grn_ii_buffer { +typedef struct { buffer_header header; buffer_term terms[(S_SEGMENT - sizeof(buffer_header))/sizeof(buffer_term)]; -}; - -typedef struct grn_ii_buffer buffer; +} buffer; grn_inline static uint32_t buffer_open(grn_ctx *ctx, grn_ii *ii, uint32_t pos, buffer_term **bt, buffer **b) @@ -5845,7 +5843,7 @@ struct _grn_ii_cursor { uint8_t *cpe; datavec rdv[MAX_N_ELEMENTS + 1]; - struct grn_ii_buffer *buf; + buffer *buf; uint16_t stat; uint16_t nextb; uint32_t buffer_pseg; -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190214/fee86b88/attachment.html>