[Groonga-commit] groonga/groonga at 08bf25d [master] Break a long line

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 17 21:20:45 JST 2014


Kouhei Sutou	2014-11-17 21:20:45 +0900 (Mon, 17 Nov 2014)

  New Revision: 08bf25d76207d86c52559f9215f4e486e8f528a8
  https://github.com/groonga/groonga/commit/08bf25d76207d86c52559f9215f4e486e8f528a8

  Message:
    Break a long line

  Modified files:
    lib/token_cursor.c

  Modified: lib/token_cursor.c (+10 -3)
===================================================================
--- lib/token_cursor.c    2014-11-17 21:19:44 +0900 (ff2135a)
+++ lib/token_cursor.c    2014-11-17 21:20:45 +0900 (3034a69)
@@ -212,7 +212,9 @@ grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor)
         }
       }
 #undef SKIP_FLAGS
-      if (status & GRN_TOKENIZER_TOKEN_FORCE_PREFIX) { token_cursor->force_prefix = GRN_TRUE; }
+      if (status & GRN_TOKENIZER_TOKEN_FORCE_PREFIX) {
+        token_cursor->force_prefix = GRN_TRUE;
+      }
       if (token_cursor->curr_size == 0) {
         char tokenizer_name[GRN_TABLE_MAX_KEY_SIZE];
         int tokenizer_name_length;
@@ -236,9 +238,14 @@ grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor)
       }
       if (status & GRN_TOKENIZER_TOKEN_UNMATURED) {
         if (status & GRN_TOKENIZER_TOKEN_OVERLAP) {
-          if (token_cursor->mode == GRN_TOKEN_GET) { token_cursor->pos++; continue; }
+          if (token_cursor->mode == GRN_TOKEN_GET) {
+            token_cursor->pos++;
+            continue;
+          }
         } else {
-          if (status & GRN_TOKENIZER_TOKEN_LAST) { token_cursor->force_prefix = GRN_TRUE; }
+          if (status & GRN_TOKENIZER_TOKEN_LAST) {
+            token_cursor->force_prefix = GRN_TRUE;
+          }
         }
       }
     } else {
-------------- next part --------------
HTML����������������������������...
下載 



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