]> granicus.if.org Git - onig/commitdiff
remove tabs
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 9 Oct 2018 04:27:55 +0000 (13:27 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 9 Oct 2018 04:27:55 +0000 (13:27 +0900)
src/regcomp.c
src/regparse.c

index 1686bb264b18561ba08cc3b347655fd436f9a680..1bb0070b96e92fe52eb506369731d4fcf0f6a29c 100644 (file)
@@ -3665,9 +3665,9 @@ expand_case_fold_string(Node* node, regex_t* reg)
     is_good = is_good_case_fold_items_for_search(reg->enc, len, n, items);
 
     if (IS_NOT_NULL(snode) ||
-       (is_good &&
-        /* expand single char case: ex. /(?i:a)/ */
-        !(p == start && p + len >= end))) {
+        (is_good &&
+         /* expand single char case: ex. /(?i:a)/ */
+         ! (p == start && p + len >= end))) {
       if (IS_NULL(snode)) {
         if (IS_NULL(root) && IS_NOT_NULL(prev_node)) {
           top_root = root = onig_node_list_add(NULL_NODE, prev_node);
@@ -4620,8 +4620,8 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
 
 static int
 set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand,
-                                         UChar* s, UChar* end,
-                                         UChar skip[], int* roffset)
+                                          UChar* s, UChar* end,
+                                          UChar skip[], int* roffset)
 {
   int i, j, k, len, offset;
   int n, clen;
@@ -4637,8 +4637,8 @@ set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand,
     while (1) {
       len = enclen(enc, p);
       if (p + len >= end) {
-       if (len == 1) offset = 1;
-       else          offset = 0;
+        if (len == 1) offset = 1;
+        else          offset = 0;
         break;
       }
       p += len;
@@ -4675,7 +4675,7 @@ set_sunday_quick_search_or_bmh_skip_table(regex_t* reg, int case_expand,
         ONIGENC_CODE_TO_MBC(enc, items[k].code[0], buf);
         for (j = 0; j < clen; j++) {
           z = len - j + (offset - 1);
-         if (z <= 0) break;
+          if (z <= 0) break;
           if (skip[buf[j]] > z)
             skip[buf[j]] = z;
         }
@@ -5698,7 +5698,7 @@ set_optimize_exact(regex_t* reg, OptStr* e)
                              reg->exact, reg->exact_end,
                              reg->map, &(reg->map_offset));
         if (r != 0) return r;
-       reg->optimize = OPTIMIZE_STR_CASE_FOLD_FAST;
+        reg->optimize = OPTIMIZE_STR_CASE_FOLD_FAST;
       }
     }
   }
index cc4bb0489caffd8ec8d869ae3b48e40d4b3ae6fd..0194bf80ba974555488776b84d360a986a0f8f52 100644 (file)
@@ -7980,7 +7980,7 @@ parse_exp(Node** np, OnigToken* tok, int term, UChar** src, UChar* end,
       int ascii_mode =
         IS_WORD_ASCII(env->options) && IS_WORD_ANCHOR_TYPE(tok->u.anchor) ? 1 : 0;
       *np = onig_node_new_anchor(tok->u.anchor, ascii_mode);
-         CHECK_NULL_RETURN_MEMERR(*np);
+      CHECK_NULL_RETURN_MEMERR(*np);
     }
     break;