aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2024-01-18 13:06:52 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2024-01-18 13:06:52 +0100
commiteab742d92a140f6094aaff67cb08fa939138a983 (patch)
tree8eaf6da1791b470ff2db7f2876d3d44689286dbb
parent983723379575d212188ac753405d4472512f3c4b (diff)
Decrease macro usage
-rw-r--r--src/grab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/grab.c b/src/grab.c
index aa95442..cf5ff6f 100644
--- a/src/grab.c
+++ b/src/grab.c
@@ -218,11 +218,11 @@ main(int argc, char **argv)
struct ops
comppat(char *s)
{
-#define skip_ws(p) for (; *(p) && xisspace(*(p)); (p)++)
struct ops ops;
dainit(&ops, 8);
- skip_ws(s);
+ while (*s && xisspace(*s))
+ s++;
if (!*s)
diex(EEARLY);
@@ -244,11 +244,11 @@ comppat(char *s)
if (*s)
s++;
- skip_ws(s);
+ while (*s && xisspace(*s))
+ s++;
} while (*s && *(s + 1));
return ops;
-#undef skip_ws
}
void