/*
 * genstubs.h: generates assembler code for the PDC version of Amiga.lib
 *            from Commodore-supplied .fd files on the extras disk.
 *
 * Copyright 1988 by J.A.Lydiatt.  Permission is given to freely distribute
 * this code for non-commercial use.
 * Maintenance Notes:
 *   18Jun88 - V1.0 Created by Jal.
 */
#include <stdio.h>
/*
 * Limits and Definitions used:
 */

#define MAXSTR		32
#define MAXPARMS	10
#define SAME		0

/*
 * Symbols returned by gettok().
 */

#define COMMA		1
#define COMMENT		2
#define DIRECTIVE	3
#define EOL		4
#define ID		5
#define LPAREN		6
#define NUMBER		7
#define RPAREN		8
#define SLASH		9
#define UNKNOWN		10

typedef struct funcinfo {
	int nformal;			/* # of formal parmeters	*/
	int nlists;			/* # lists like D0/D1/D2 defined*/
	unsigned int regmask;		/* bit mask of registers used.	*/
	int nregs[MAXPARMS];		/*  # registers in rlist[i]	*/
	char givenline[128];		/* line where specs drawn from. */
	char name[MAXSTR];		/* name of the function.	*/
	char formal[MAXPARMS][MAXSTR];	/* name of format parameters.	*/
	char reglist[MAXPARMS][MAXSTR];	/* register list like D0/D1/D2  */
} FUNCINFO;

typedef struct token {
	int value;
	char id[MAXSTR];
} TOKEN;

