diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-18 13:06:52 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-18 13:06:52 +0100 |
commit | eab742d92a140f6094aaff67cb08fa939138a983 (patch) | |
tree | 8eaf6da1791b470ff2db7f2876d3d44689286dbb /src | |
parent | 983723379575d212188ac753405d4472512f3c4b (diff) |
Decrease macro usage
Diffstat (limited to 'src')
-rw-r--r-- | src/grab.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |