Mercurial > hg-old > index.cgi
diff lwasm/list.c @ 390:027d7fbcdcfc
Basic symbol table output; needs work for non-constant symbols
author | lost@l-w.ca |
---|---|
date | Wed, 14 Jul 2010 22:46:56 -0600 |
parents | fbb7bfed8076 |
children | f792faf877bb |
line wrap: on
line diff
--- a/lwasm/list.c Wed Jul 14 22:33:55 2010 -0600 +++ b/lwasm/list.c Wed Jul 14 22:46:56 2010 -0600 @@ -30,6 +30,8 @@ #include "lwasm.h" #include "instab.h" +void list_symbols(asmstate_t *as, FILE *of); + /* Do listing */ @@ -132,4 +134,7 @@ fprintf(of, "\n"); } } + + if (as -> flags & FLAG_SYMBOLS) + list_symbols(as, of); }