xcc.h


    1 #ifndef XCC_SCC_H
    2 #define XCC_SCC_H
    3 #include <stdio.h>
    4 #include <stddef.h>
    5 #include "AST.h"
    6 #define YYSTYPE struct AST*
    7 #define ROUNDUP(p, n) ((((unsigned int)p)+((n)-1)) & ~((n)-1))
    8 
    9 int yyerror(char *mesg);
   10 void *emalloc(size_t size);
   11 void efree(void *ptr);
   12 
   13 extern int line_index;
   14 extern char *yytext;
   15 extern FILE *yyin;
   16 extern char string_buf[];
   17 extern struct AST *ast_root;
   18 extern int AST_is_local;
   19 extern FILE *xcc_out;
   20 #endif /* XCC_SCC_H */