[Groonga-commit] groonga/groonga at 697353d [master] string: unindent

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 1 10:43:35 JST 2016


Kouhei Sutou	2016-02-01 10:43:35 +0900 (Mon, 01 Feb 2016)

  New Revision: 697353d25fb982c0bbcad1fc1f8f80ac988efcdf
  https://github.com/groonga/groonga/commit/697353d25fb982c0bbcad1fc1f8f80ac988efcdf

  Message:
    string: unindent

  Modified files:
    plugins/functions/string.c

  Modified: plugins/functions/string.c (+10 -10)
===================================================================
--- plugins/functions/string.c    2016-02-01 10:42:59 +0900 (df8495f)
+++ plugins/functions/string.c    2016-02-01 10:43:35 +0900 (d03fc62)
@@ -39,16 +39,16 @@ func_string_length(grn_ctx *ctx, int n_args, grn_obj **args,
 
   target = args[0];
   if (target->header.type != GRN_BULK) {
-      grn_obj inspected;
-
-      GRN_TEXT_INIT(&inspected, 0);
-      grn_inspect(ctx, target, &inspected);
-      GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT,
-                       "string_length(): target object must be bulk: <%.*s>",
-                       (int)GRN_TEXT_LEN(&inspected),
-                       GRN_TEXT_VALUE(&inspected));
-      GRN_OBJ_FIN(ctx, &inspected);
-      return NULL;
+    grn_obj inspected;
+
+    GRN_TEXT_INIT(&inspected, 0);
+    grn_inspect(ctx, target, &inspected);
+    GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT,
+                     "string_length(): target object must be bulk: <%.*s>",
+                     (int)GRN_TEXT_LEN(&inspected),
+                     GRN_TEXT_VALUE(&inspected));
+    GRN_OBJ_FIN(ctx, &inspected);
+    return NULL;
   }
 
   {
-------------- next part --------------
HTML����������������������������...
Download 



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