X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=src%2Fapc.c;h=cea384743f0377d264eaa7145ddc7bf50fefdb6d;hp=a4ae543f9f941a1712644f0f67115333740e8fc1;hb=d47bdba72dd5fef398bc485067fdc59147303253;hpb=55eb5697b20b577ecb4a3c6355c1ee4695f016cd diff --git a/src/apc.c b/src/apc.c index a4ae543..cea3847 100644 --- a/src/apc.c +++ b/src/apc.c @@ -28,7 +28,9 @@ int main(int, char*[]); extern //bison int yyparse(void); extern //lexer.c -int lexer_init(void); +int lexer_init(void); +extern //ir.c +int ir_init(void); extern //apc/parser.tab.c YYSTYPE yylval; @@ -74,8 +76,8 @@ int main printf(USAGE_LONG); exit(EXIT_SUCCESS); } - if (lexer_init()) - { perror("lexer"); + if (lexer_init() || ir_init()) + { perror("init"); exit(EXIT_FAILURE); } yyparse();