
#include <stdio.h>

/* General routines and things */
#define true    1               /* Pascal constants */
#define false   0
#define null                    /* Empty statement inserted by pxp */
#define chr(c)  (c)             /* These three are easy */
#define round(f)        ((int) (f + (f >= 0 ? 0.5 : -0.5)))
#define ord(c)  (c)
#define eof(f)  feof(f)
#define odd(x)  ((x) & 1)       /* Assuming x is an integer, which it is */
#define free    free_array      /* Avoid conflict with free/malloc */
typedef int     integer;        /* Emulate Pascal types */
typedef int     boolean;
typedef double  real;
#define maxint  (1<<30)

/* I/O */
/* Read is only used on byte (ascii/binary) files */
#define read(f,c)       c=getc(f)
#define inputln         input_ln()

/* Forwards/externs */
boolean eoln(FILE *f);
