Some stuff for recent changes.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4431 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-02-17 15:06:53 +00:00
parent 53f6fd7016
commit 973cc2d43f

View File

@@ -50,8 +50,6 @@
#include <stdlib.h>
#include <stdarg.h>
extern FILE *c_file;
extern FILE *h_file;
extern long base;
extern int number;
extern char *prefix;
@@ -60,4 +58,25 @@ extern char *id_str;
extern char *filename;
extern int numerror;
struct error_code {
unsigned number;
char *name;
char *string;
struct error_code *next, **tail;
};
extern struct error_code *codes;
#define APPEND(L, V) \
do { \
if((L) == NULL) { \
(L) = (V); \
(L)->tail = &(V)->next; \
(L)->next = NULL; \
}else{ \
*(L)->tail = (V); \
(L)->tail = &(V)->next; \
} \
}while(0)
#endif /* __COMPILE_ET_H__ */