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:
@@ -50,8 +50,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
extern FILE *c_file;
|
|
||||||
extern FILE *h_file;
|
|
||||||
extern long base;
|
extern long base;
|
||||||
extern int number;
|
extern int number;
|
||||||
extern char *prefix;
|
extern char *prefix;
|
||||||
@@ -60,4 +58,25 @@ extern char *id_str;
|
|||||||
extern char *filename;
|
extern char *filename;
|
||||||
extern int numerror;
|
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__ */
|
#endif /* __COMPILE_ET_H__ */
|
||||||
|
Reference in New Issue
Block a user