/* @(#)sysdep.h	1.5 (mg@ukc.ac.uk) 5/8/90 */
#ifdef THINK_C                                                  /* SYSDEP.H */
#define  SYS5
#define  INT16
#define  SFDIGDES
#define  main(A,B) _main(A,B)
#include <io.h>
#else
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
#endif

#ifdef SYS5
#define  index(A,B) strchr(A,B)
#define  bcopy(A,B,L) memcpy(B,A,L)
#include <fcntl.h>
#include <string.h>
#else
#include <strings.h>
#endif

#ifdef XWINDOWS
#include "dispX11.h"
#else
typedef int DWID;
#endif

#ifdef __STDC__   /* ANSI prototypes */
char *malloc(unsigned), *calloc(unsigned, unsigned);
char *mmalloc(long), *mcalloc(long), *auxalloc(long, char **);
char argtyp(char *);
void display(float *, int, char *, DWID *);
double modf(double, double *);  /* not included in math.h */
#else             /* non-ANSI declarations */
char *malloc(), *calloc();
char *mmalloc(), *mcalloc(), *auxalloc();
char argtyp();
void display();
double modf();
#endif

extern int   inerrcnt, synterrcnt, perferrcnt;
             /* orch control flags */
extern int   odebug, initonly, sfwrite, output_format, msglevel;
extern int   ftdisplay, dsploption;
extern char  *outfile;

extern float esr, ekr, ensmps, hfkprd, onedsr;    /* set in oload */
extern int   ksmps, nchnls;
extern float pi, twopi, tpidsr, mtpdsr, pid100;
extern float sicvt, kicvt, fmaxlen, dv32768;
extern char  sfout[], strmsg[], errmsg[];
