typedef int boolean;
#define TRUE 1
#define FALSE 0
#define true 1
#define false 0
#define INUNKNOWN 0
#define INCPP 1
#define INCC 2
#define INAS 3
#define INLD 4
#define INLINT 5
#define INF77 6
#define INPI 7
#define INPC 8
#define INFRANZ 9
#define INLISP 10
#define INVAXIMA 11
#define INRATFOR 12
#define INLEX 13
#define INYACC 14
#define INAPL 15
#define INMAKE 16
#define INRI 17
#define INTROFF 18
#define INMOD2 19
extern int language;
typedef int Errorclass;
#define C_FIRST 0
#define C_UNKNOWN 0
#define C_IGNORE 1
#define C_SYNC 2
#define C_DISCARD 3
#define C_NONSPEC 4
#define C_THISFILE 5
#define C_NULLED 6
#define C_TRUE 7
#define C_DUPL 8
#define C_LAST 9
#define SORTABLE(x) (!(NOTSORTABLE(x)))
#define NOTSORTABLE(x) (x <= C_NONSPEC)
extern char *class_table[];
extern int class_count[];
#define nunknown class_count[C_UNKNOWN]
#define nignore class_count[C_IGNORE]
#define nsyncerrors class_count[C_SYNC]
#define ndiscard class_count[C_DISCARD]
#define nnonspec class_count[C_NONSPEC]
#define nthisfile class_count[C_THISFILE]
#define nnulled class_count[C_NULLED]
#define ntrue class_count[C_TRUE]
#define ndupl class_count[C_DUPL]
#define TOTHEFILE 1
#define TOSTDOUT 2
extern FILE *errorfile;
extern FILE *queryfile;
extern char *currentfilename;
extern char *processname;
extern char *scriptname;
extern boolean query;
extern boolean terse;
int inquire __P((char *, ...));
#define Q_NO 1
#define Q_no 2
#define Q_YES 3
#define Q_yes 4
int probethisfile __P((char *));
#define F_NOTEXIST 1
#define F_NOTREAD 2
#define F_NOTWRITE 3
#define F_TOUCHIT 4
struct lang_desc{
char *lang_name;
char *lang_incomment;
char *lang_outcomment;
};
extern struct lang_desc lang_table[];
#define CINCOMMENT "/*###"
#define COUTCOMMENT "%%%*/\n"
#define FINCOMMENT "C###"
#define FOUTCOMMENT "%%%\n"
#define NEWLINE "%%%\n"
#define PIINCOMMENT "(*###"
#define PIOUTCOMMENT "%%%*)\n"
#define LISPINCOMMENT ";###"
#define ASINCOMMENT "####"
#define RIINCOMMENT CINCOMMENT
#define RIOUTCOMMENT COUTCOMMENT
#define TROFFINCOMMENT ".\\\"###"
#define TROFFOUTCOMMENT NEWLINE
#define MOD2INCOMMENT "(*###"
#define MOD2OUTCOMMENT "%%%*)\n"
#define ERRORNAME "/.errorrc"
extern int nignored;
extern char **names_ignored;
typedef struct edesc Edesc;
typedef Edesc *Eptr;
struct edesc{
Eptr error_next;
int error_lgtext;
char **error_text;
Errorclass error_e_class;
Errorclass error_s_class;
int error_language;
int error_position;
int error_line;
int error_no;
};
extern int nerrors;
extern Eptr er_head;
#ifdef __APPLE__
__private_extern__
#else
extern
#endif
Eptr *errors;
extern int nfiles;
extern Eptr **files;
extern boolean *touchedfiles;
extern int language;
extern char *currentfilename;
void arrayify __P((int *, Eptr **, Eptr));
char *Calloc __P((int, int));
void clob_last __P((char *, char));
int countfiles __P((Eptr *));
Errorclass discardit __P((Eptr));
void diverterrors __P((char *, int, Eptr **, int, boolean, int));
void eaterrors __P((int *, Eptr **));
boolean edit __P((char *));
void erroradd __P((int, char **, Errorclass, Errorclass));
void errorprint __P((FILE *, Eptr, boolean));
void execvarg __P((int, int *, char ***));
void filenames __P((int, Eptr **));
void findfiles __P((int, Eptr *, int *, Eptr ***));
char firstchar __P((char *));
void getignored __P((char *));
void hackfile __P((char *, Eptr **, int, int));
void insert __P((int));
char lastchar __P((char *));
int mustoverwrite __P((FILE *, FILE *));
int mustwrite __P((char *, int, FILE *));
char next_lastchar __P((char *));
int nopertain __P((Eptr **));
int oktotouch __P((char *));
void onintr __P((int));
boolean persperdexplode __P((char *, char **, char **));
int position __P((char *, char));
boolean preview __P((char *, int, Eptr **, int));
void printerrors __P((boolean, int, Eptr []));
char *plural __P((int));
boolean qpersperdexplode __P((char *, char **, char **));
int settotouch __P((char *));
char *strsave __P((char *));
char *substitute __P((char *, char, char));
void text __P((Eptr, boolean));
boolean touchfiles __P((int, Eptr **, int *, char ***));
char *verbform __P((int));
void wordvbuild __P((char *, int*, char ***));
int wordvcmp __P((char **, int, char **));
void wordvprint __P((FILE *, int, char **));
char **wordvsplice __P((int, int, char **));
boolean writetouched __P((int));