wdvi

network DVI viewer
Log | Files | Refs

commit fbb7237269d3aa6355345db891682882c5b183a7
parent 4583827e79e61ed31cc368ddcde09eb85f7279e7
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Mon, 13 Mar 2023 20:17:44 +0000

move defines to top of file

Diffstat:
Mutil.h | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/util.h b/util.h @@ -5,6 +5,13 @@ #define ROUNDUP(x,y) (((x)+(y)-1)/(y)) +#define one(fp) ((unsigned char) getc(fp)) +#define sone(fp) ((long) one(fp)) +#define two(fp) num (fp, 2) +#define stwo(fp) snum(fp, 2) +#define four(fp) num (fp, 4) +#define sfour(fp) snum(fp, 4) + struct url { const char *orig_url; @@ -29,10 +36,3 @@ struct url *parse_url(const char[]); unsigned long num(FILE *, int); long snum(FILE *, int); - -#define one(fp) ((unsigned char) getc(fp)) -#define sone(fp) ((long) one(fp)) -#define two(fp) num (fp, 2) -#define stwo(fp) snum(fp, 2) -#define four(fp) num (fp, 4) -#define sfour(fp) snum(fp, 4)