From eab742d92a140f6094aaff67cb08fa939138a983 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 18 Jan 2024 13:06:52 +0100 Subject: Decrease macro usage --- src/grab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3