[Groonga-commit] groonga/groonga at bda7f8b [master] Add missing grn_ctx initialization fields

Back to archive index
Kouhei Sutou null+****@clear*****
Sun May 12 06:45:39 JST 2019


Kouhei Sutou	2019-05-12 06:45:39 +0900 (Sun, 12 May 2019)

  Revision: bda7f8b63c62c41b037110823c9ac035cc7efd92
  https://github.com/groonga/groonga/commit/bda7f8b63c62c41b037110823c9ac035cc7efd92

  Message:
    Add missing grn_ctx initialization fields

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+21 -3)
===================================================================
--- lib/ctx.c    2019-05-12 06:45:11 +0900 (23bd743ee)
+++ lib/ctx.c    2019-05-12 06:45:39 +0900 (ec66840e7)
@@ -51,9 +51,27 @@
 # include <netinet/in.h>
 #endif /* WIN32 */
 
-#define GRN_CTX_INITIALIZER(enc) \
-  { GRN_SUCCESS, 0, enc, 0, GRN_LOG_NOTICE,\
-    GRN_CTX_FIN, 0, 0, 0, 0, {0}, NULL, NULL, NULL, NULL, NULL }
+#define GRN_CTX_INITIALIZER(enc)                \
+  {                                             \
+    /* rc */ GRN_SUCCESS,                       \
+    /* flags */ 0,                              \
+    /* encoding */ enc,                         \
+    /* ntrace */ 0,                             \
+    /* errlvl */ GRN_LOG_NOTICE,                \
+    /* stat */ GRN_CTX_FIN,                     \
+    /* seqno */ 0,                              \
+    /* subno */ 0,                              \
+    /* seqno2 */ 0,                             \
+    /* errline */ 0,                            \
+    /* user_data */ {0},                        \
+    /* prev */ NULL,                            \
+    /* next */ NULL,                            \
+    /* errfile */ NULL,                         \
+    /* errfunc */ NULL,                         \
+    /* impl */ NULL,                            \
+    /* trace */ {0},                            \
+    /* errbuf */ {0}                            \
+  }
 
 #define GRN_CTX_CLOSED(ctx) ((ctx)->stat == GRN_CTX_FIN)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190512/fc5af4fb/attachment-0001.html>


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