]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Cleanup syntax.
authorBruno Haible <bruno@clisp.org>
Mon, 24 May 2010 08:49:53 +0000 (10:49 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jun 2010 13:03:47 +0000 (15:03 +0200)
gettext-tools/libgrep/ChangeLog
gettext-tools/libgrep/m-regex.c

index 8804b00d7d1b6dbf84b640e719feaf7055092f19..a229582f6f20e5dc8e8aa9f38ac2169b7d77480f 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-24  Bruno Haible  <bruno@clisp.org>
+
+       Cleanup syntax.
+       * m-regex.c (compile, EGexecute): Remove useless parentheses.
+
 2010-05-24  Bruno Haible  <bruno@clisp.org>
 
        Tiny optimization.
index 4b93a823bb9027399677a1fe836971ca4abafa21..d4b49b98cf0d209598fbeccc544596a6412a10d9 100644 (file)
@@ -105,7 +105,7 @@ compile (const char *pattern, size_t pattern_size,
         memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns));
 
         if ((err = re_compile_pattern (motif, len,
-                                       &(cregex->patterns[cregex->pcount].regexbuf))) != NULL)
+                                       &cregex->patterns[cregex->pcount].regexbuf)) != NULL)
           error (exit_failure, 0, err);
         cregex->pcount++;
 
@@ -169,9 +169,9 @@ EGexecute (const void *compiled_pattern,
           int start, len;
 
           cregex->patterns[i].regexbuf.not_eol = 0;
-          if (0 <= (start = re_search (&(cregex->patterns[i].regexbuf), beg,
+          if (0 <= (start = re_search (&cregex->patterns[i].regexbuf, beg,
                                        end - beg, 0,
-                                       end - beg, &(cregex->patterns[i].regs))))
+                                       end - beg, &cregex->patterns[i].regs)))
             {
               len = cregex->patterns[i].regs.end[0] - start;
               if (exact)
@@ -201,9 +201,9 @@ EGexecute (const void *compiled_pattern,
                         /* Try a shorter length anchored at the same place. */
                         --len;
                         cregex->patterns[i].regexbuf.not_eol = 1;
-                        len = re_match (&(cregex->patterns[i].regexbuf), beg,
+                        len = re_match (&cregex->patterns[i].regexbuf, beg,
                                         start + len, start,
-                                        &(cregex->patterns[i].regs));
+                                        &cregex->patterns[i].regs);
                       }
                     if (len <= 0)
                       {
@@ -212,10 +212,10 @@ EGexecute (const void *compiled_pattern,
                           break;
                         ++start;
                         cregex->patterns[i].regexbuf.not_eol = 0;
-                        start = re_search (&(cregex->patterns[i].regexbuf), beg,
+                        start = re_search (&cregex->patterns[i].regexbuf, beg,
                                            end - beg,
                                            start, end - beg - start,
-                                           &(cregex->patterns[i].regs));
+                                           &cregex->patterns[i].regs);
                         len = cregex->patterns[i].regs.end[0] - start;
                       }
                   }