From: Ralph Corderoy Date: Thu, 25 May 2017 13:36:33 +0000 (+0100) Subject: sbr/fmt_compile.c: Delete single-use NEWFMT macro. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/00796ec24ea3589cce262fcad15a23b70576de47?ds=sidebyside;hp=e6c917710e4318949cb4174cabca51a8d1822dbd sbr/fmt_compile.c: Delete single-use NEWFMT macro. Its simple content was to increment a variable; doing that in situ is more clear. --- diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index b0ce6462..6173be33 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -296,9 +296,8 @@ static struct colormap colortable[] = { wantcomp[i] = cm; \ } while (0) -#define NEWFMT (next_fp++) #define NEW_FP(type,fill,wid) do {\ - fp=NEWFMT; fp->f_type=(type); fp->f_fill=(fill); fp->f_width=(wid); \ + fp=next_fp++; fp->f_type=(type); fp->f_fill=(fill); fp->f_width=(wid); \ } while (0) /* Add (possibly new) component to the hash table */