summaryrefslogtreecommitdiffstats
path: root/kdvi/xdvi.h
blob: d360216406b662adcf7cd3dde4852c27b3f457a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _xdvi_h
#define _xdvi_h

#include <stdio.h>

/*
 *	Written by Eric C. Cooper, CMU
 */

#define ROUNDUP(x,y) (((x)+(y)-1)/(y))

extern  unsigned long   num (FILE *, int);
extern  long    snum(FILE *, int);
extern	struct WindowRec mane, currwin;

#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)

#endif /* _xdvi_h */