[Groonga-commit] groonga/groonga at 95a42ea [master] Close accessor for the same value

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 24 22:10:24 JST 2014


Kouhei Sutou	2014-10-24 22:10:24 +0900 (Fri, 24 Oct 2014)

  New Revision: 95a42ea87377861c56f7022b949d56b82665098e
  https://github.com/groonga/groonga/commit/95a42ea87377861c56f7022b949d56b82665098e

  Message:
    Close accessor for the same value

  Modified files:
    lib/ctx.c

  Modified: lib/ctx.c (+18 -18)
===================================================================
--- lib/ctx.c    2014-10-24 21:55:13 +0900 (e5f4ea4)
+++ lib/ctx.c    2014-10-24 22:10:24 +0900 (cb41d40)
@@ -1428,6 +1428,24 @@ grn_ctx_get_command_version(grn_ctx *ctx)
   }
 }
 
+grn_rc
+grn_ctx_set_command_version(grn_ctx *ctx, grn_command_version version)
+{
+  switch (version) {
+  case GRN_COMMAND_VERSION_DEFAULT :
+    ctx->impl->command_version = GRN_COMMAND_VERSION_STABLE;
+    return GRN_SUCCESS;
+  default :
+    if (GRN_COMMAND_VERSION_MIN <= version &&
+        version <= GRN_COMMAND_VERSION_MAX) {
+      ctx->impl->command_version = version;
+      return GRN_SUCCESS;
+    } else {
+      return GRN_UNSUPPORTED_COMMAND_VERSION;
+    }
+  }
+}
+
 grn_content_type
 grn_ctx_get_output_type(grn_ctx *ctx)
 {
@@ -1462,24 +1480,6 @@ grn_ctx_get_mime_type(grn_ctx *ctx)
   }
 }
 
-grn_rc
-grn_ctx_set_command_version(grn_ctx *ctx, grn_command_version version)
-{
-  switch (version) {
-  case GRN_COMMAND_VERSION_DEFAULT :
-    ctx->impl->command_version = GRN_COMMAND_VERSION_STABLE;
-    return GRN_SUCCESS;
-  default :
-    if (GRN_COMMAND_VERSION_MIN <= version &&
-        version <= GRN_COMMAND_VERSION_MAX) {
-      ctx->impl->command_version = version;
-      return GRN_SUCCESS;
-    } else {
-      return GRN_UNSUPPORTED_COMMAND_VERSION;
-    }
-  }
-}
-
 long long int
 grn_ctx_get_match_escalation_threshold(grn_ctx *ctx)
 {
-------------- next part --------------
HTML����������������������������...
下载 



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