]> diplodocus.org Git - nmh/commitdiff
sbr/fmt_compile.c: Delete single-use NEWFMT macro.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 13:36:33 +0000 (14:36 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 15:33:28 +0000 (16:33 +0100)
Its simple content was to increment a variable;  doing that in situ is
more clear.

sbr/fmt_compile.c

index b0ce64626b7a1a7fd721a05d4096ffe03b98ec3e..6173be33438385f025796c5f6b6a725529493f90 100644 (file)
@@ -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 */