]> granicus.if.org Git - graphviz/commitdiff
strgrpmatch: reflow some text
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 11 Aug 2021 00:36:10 +0000 (17:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 01:31:32 +0000 (18:31 -0700)
lib/ast/strmatch.c

index 4fa5881dc8c5bfe4481d8a055a71c4b9f4149d6e..362d0603075fc802c2fddecdfc15033e06a18362 100644 (file)
@@ -596,18 +596,15 @@ int strgrpmatch(const char *b, const char *p, int *sub, int n, int flags)
        match.best.next_s = 0;
        match.current.groups = 0;
        match.current.beg[0] = 0;
-       if ((i = grpmatch(&match, 0, s, (char *) p, e, flags))
-           || match.best.next_s) {
+       if ((i = grpmatch(&match, 0, s, (char *) p, e, flags)) || match.best.next_s) {
            if (!(flags & STR_RIGHT) || (match.current.next_s == e)) {
                if (!i)
                    match.current = match.best;
                match.current.groups++;
                match.current.end[0] = match.current.next_s;
 #ifdef _DEBUG_MATCH
-               error(-1,
-                     "match i=%d s=\"%s\" p=\"%s\" flags=%o groups=%d next=\"%s\"",
-                     i, s, p, flags, match.current.groups,
-                     match.current.next_s);
+               error(-1, "match i=%d s=\"%s\" p=\"%s\" flags=%o groups=%d next=\"%s\"",
+                     i, s, p, flags, match.current.groups, match.current.next_s);
 #endif
                break;
            }
@@ -626,8 +623,7 @@ int strgrpmatch(const char *b, const char *p, int *sub, int n, int flags)
        n = match.current.groups;
     for (i = 0; i < n; i++) {
        sub[i * 2] = match.current.end[i] ? match.current.beg[i] - s : 0;
-       sub[i * 2 + 1] =
-           match.current.end[i] ? match.current.end[i] - s : 0;
+       sub[i * 2 + 1] = match.current.end[i] ? match.current.end[i] - s : 0;
     }
     return n;
 }