[Groonga-commit] groonga/groonga at fe418ed [master] Export GRN_BULK_INCR_LEN

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Aug 19 15:43:07 JST 2016


Kouhei Sutou	2016-08-19 15:43:07 +0900 (Fri, 19 Aug 2016)

  New Revision: fe418ed38a2539570cb8c3eb4755e3beeb79a258
  https://github.com/groonga/groonga/commit/fe418ed38a2539570cb8c3eb4755e3beeb79a258

  Message:
    Export GRN_BULK_INCR_LEN

  Modified files:
    include/groonga/groonga.h
    lib/grn_str.h

  Modified: include/groonga/groonga.h (+7 -0)
===================================================================
--- include/groonga/groonga.h    2016-08-19 15:40:49 +0900 (774f82a)
+++ include/groonga/groonga.h    2016-08-19 15:43:07 +0900 (a79c1ae)
@@ -1143,6 +1143,13 @@ GRN_API off_t grn_default_query_logger_get_rotate_threshold_size(void);
     }\
   }\
 } while (0)
+#define GRN_BULK_INCR_LEN(bulk,len) do {\
+  if (GRN_BULK_OUTP(bulk)) {\
+    (bulk)->u.b.curr += (len);\
+  } else {\
+    (bulk)->header.flags += (grn_obj_flags)(len);\
+  }\
+} while (0)
 #define GRN_BULK_WSIZE(bulk) \
   (GRN_BULK_OUTP(bulk)\
    ? ((bulk)->u.b.tail - (bulk)->u.b.head)\

  Modified: lib/grn_str.h (+0 -8)
===================================================================
--- lib/grn_str.h    2016-08-19 15:40:49 +0900 (d856f2c)
+++ lib/grn_str.h    2016-08-19 15:43:07 +0900 (61711aa)
@@ -75,14 +75,6 @@ grn_rc grn_substring(grn_ctx *ctx, char **str, char **str_end, int start, int en
 GRN_API int grn_charlen_(grn_ctx *ctx, const char *str, const char *end, grn_encoding encoding);
 GRN_API grn_str *grn_str_open_(grn_ctx *ctx, const char *str, unsigned int str_len, int flags, grn_encoding encoding);
 
-#define GRN_BULK_INCR_LEN(buf,len) do {\
-  if (GRN_BULK_OUTP(buf)) {\
-    (buf)->u.b.curr += (len);\
-  } else {\
-    (buf)->header.flags += (grn_obj_flags)(len);\
-  }\
-} while (0)
-
 #define GRN_BULK_SET_CURR(buf,p) do {\
   if (GRN_BULK_OUTP(buf)) {\
     (buf)->u.b.curr = (char *)(p);\
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index