Mercurial > hg-old > index.cgi
diff lwasm/main.c @ 329:c15cca3ae6a2
Created first pass of input layer
author | lost |
---|---|
date | Sun, 28 Feb 2010 05:01:31 +0000 |
parents | 591d01b343b9 |
children | 81c005b82775 |
line wrap: on
line diff
--- a/lwasm/main.c Sat Feb 13 06:08:26 2010 +0000 +++ b/lwasm/main.c Sun Feb 28 05:01:31 2010 +0000 @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdlib.h> +#include <lw_alloc.h> #include <lw_string.h> #include <lw_stringlist.h> @@ -168,8 +169,10 @@ program_name = argv[0]; /* initialize assembler state */ + asmstate.include_list = lw_stringlist_create(); asmstate.input_files = lw_stringlist_create(); - asmstate.include_list = lw_stringlist_create(); + asmstate.file_dir = lw_stack_create(lw_free); + input_init(); /* parse command line arguments */ argp_parse(&argp, argc, argv, 0, 0, &asmstate);