/*
 * Generated by P2C
 * Version 1.00 - Copyright (C) 2002, Benjamin Rosseaux
 */

#ifndef __P2CLIB
#define __P2CLIB

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <STRING.h>
#include <stdarg.h>
#include <dos.h>
#include <conio.h>
#include <math.h>
#include <ctype.h>

#define pred(v) ((v)-1)
#define succ(v) ((v)+1)
#define chr(n) (n)
#define ord(c) (c)
#define sqr(n) (n*n)
#define lo(v) (v & 0xff)
#define hi(v) (v >> 8)
#define inc(v) ++(v)
#define dec(v) --(v)

#define maxint 0x7fff
#define integer int
#define word unsigned
#define longint long
#define byte char
#define real double
#define boolean int
typedef void *pointer;

#define FALSE 0
#define TRUE 1
#define nil NULL

#define delete(s,p,num) strcpy(s+p-1,s+p+num)
#define val(s,res,code) code=0, res=atof(s)

typedef char *charptr;
#define STRSIZ 255

#define paramstr(n) (argv[n])
#define paramcount (argc-1)

typedef FILE *text;
#define kbd stdin
#define input stdin
#define con stdout
#define output stdout

#define assignfile(fd,name) strcpy(_CURNAME,name)
#define assign(fd,name) strcpy(_CURNAME,name)

#define __ -2
#define _E -1

typedef struct {
 char setstub[16];
} setrec;

#define ctos(ch) scat("%c",ch)

#undef atoi
#undef getchar

#define intr Pintr
#define getdate Pgetdate
#define gettime Pgettime
#define setdate Psetdate
#define settime Psettime
#define keep Pkeep

#ifdef __cplusplus
 } /* extern "C" */
#endif

#endif


