

UWORD	ScrDepth;

struct	Options TempOptions, Options, NewOptions, PrintOptions, IffOptions,
			DefaultOptions = 
{
	"POST", sizeof(struct Options), FALSE, BUFSIZ, STD_TEMPPATH, "", "",
	{NULL, NULL, NULL, 0, 0},
	{640, 400, OSCAN_TEXT, DEFAULT_MONITOR_ID | HIRESLACE_KEY, FALSE, FALSE, STD_PUBSCREEN},
	{0, 0, 620, 876, 0, 0, 100, 100},
	{620, 876, 0, 0, 75, 75, defmemflen, defmemhlen, defmemvlen, defmemllen,
	 1, STD_IFFNAME, 7, FALSE, TRUE, TRUE, FALSE, 0, 0, 300}
};

BOOL	argprint = 0, argwindow = 0, argiff = 0,
		argcon = 0, bandrendering = 0,
		os_3 = 0, argfile = 0;
BOOL	breakset = FALSE, ftrapset = FALSE, pause = TRUE, running = FALSE,
		paused = FALSE, blit_to_window = FALSE, interactive = FALSE,
		arexx = FALSE, startup = FALSE, argverbose = FALSE;
int	arglen, number_of_pages = 0, page_number, post_count = 0;


BPTR	errfh = NULL, confh = NULL;



char	pubscreenname[MAXPUBSCREENNAME+1], postpubscrname[MAXPUBSCREENNAME+1],
		undobuff[MAXFILENAME], windowtitle[80], *errstr = NULL, startdir[256];
struct	MsgPort *prport=NULL;


/* External data (initialised to zero) */

int	retcode = 0, ioerror;
int	arec;

struct	PSparm parm;
struct	PSmessage menumsg;
struct	IntuiMessage *intmsg;

struct	Library *AslBase = NULL, *GadToolsBase = NULL, *IconBase = NULL,
						*PSbase = NULL, *UtilityBase = NULL;
struct	IntuitionBase *IntuitionBase = NULL;
struct	GfxBase *GfxBase = NULL;
struct	DosLibrary *DOSBase = NULL;
struct	FileRequester *filereq = NULL, *filerequester = NULL, *fontrequester = NULL;

struct	MsgPort *mainport, *renderport;
struct	Process *rendertask;
struct	Task *maintask;
struct	Screen *custscreen = NULL, *screen = NULL;
struct	Window *OutputWnd=NULL;
struct	BitMap bitmap, output_bitmap;
struct	ColorMap colormap;

struct	startupnode defaultstartup;
struct	PubScrContext	pubscrcontext = {NULL, FALSE, FALSE, FALSE};

APTR		my_VisualInfo=NULL;

int	winxbase, winybase, winxsize, winysize, winxpos = 0, winypos = 0;

static	UWORD	bcolors[16] =				/* Black and white */
{
		0xfff, 0x000, 0xf0f, 0x00f,		/* White   black   magenta blue */
		0xff0, 0x0f0, 0xf00, 0x000,		/* Yellow  green   red     black */
		0x000, 0x000, 0x000, 0x000,		/* Black */
		0xbbb, 0x888, 0x333, 0x000			/* lt-gray med-gray dk-gray Black */
};

static	UWORD	ccolors[16] =				/* Colour (RGB or CMYK) */
{
		0xfff, 0x0ff, 0xf0f, 0x00f,		/* White   cyan    magenta blue */
		0xff0, 0x0f0, 0xf00, 0x000,		/* Yellow  green   red     black */
		0x000, 0x000, 0x000, 0x000,		/* Black */
		0xbbb, 0x888, 0x333, 0x000			/* lt-gray med-gray dk-gray Black */
};

AREXXCONTEXT	RexxStuff;
struct			RexxMsg	*rmsg = NULL;
ULONG				signals, pause_signal, create_signal;

char	titlewait[]		= "Waiting";
char	titlestart[]	= "Startup";
char	titlerunning[]	= "Running";
char	titleinter[]	= "Interactive";
char	titlepaused[]	= "Paused";
char	titlearexx[]	= "ARexx";

/* Version string */

char	version[] = "$VER: Post 2.00  (" __DATE__ ")";
