Mercurial > hg-old > index.cgi
diff src/lwasm.h @ 85:918be0c02239
Started adding object target output
author | lost |
---|---|
date | Fri, 16 Jan 2009 05:14:49 +0000 |
parents | 03be43ae19cf |
children | 033a328a10ae |
line wrap: on
line diff
--- a/src/lwasm.h Wed Jan 14 07:04:45 2009 +0000 +++ b/src/lwasm.h Fri Jan 16 05:14:49 2009 +0000 @@ -41,6 +41,9 @@ int offset; // current offset in the section int flags; // section flags sectiontab_t *next; // next section + unsigned char *obytes; // output bytes + int oblen; // how many bytes output so far? + int obsize; // how big is output buffer so far? }; // structure for tracking macros @@ -91,6 +94,8 @@ lwasm_expr_stack_t *exprs[4]; // non-constant expression values int exprvals[4]; // constant expression values char *exprends[4]; // pointer to character after end of expression + + sectiontab_t *sect; // which section is the line in? }; // for keeping track of symbols