all tags get exported now

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40695
This commit is contained in:
David Anderson 2007-04-12 20:48:33 +00:00
parent f3da8efe10
commit 7125585125

View File

@ -745,11 +745,11 @@ SC_FUNC int assemble(FILE *fout,FILE *fin)
/* count number of public tags */ /* count number of public tags */
numtags=0; numtags=0;
for (constptr=tagname_tab.next; constptr!=NULL; constptr=constptr->next) { for (constptr=tagname_tab.next; constptr!=NULL; constptr=constptr->next) {
if ((constptr->value & PUBLICTAG)!=0) { /*if ((constptr->value & PUBLICTAG)!=0) {*/
assert(strlen(constptr->name)>0); assert(strlen(constptr->name)>0);
numtags++; numtags++;
nametablesize+=strlen(constptr->name)+1; nametablesize+=strlen(constptr->name)+1;
} /* if */ /*} if */
} /* for */ } /* for */
/* pad the header to sc_dataalign /* pad the header to sc_dataalign
@ -915,7 +915,7 @@ SC_FUNC int assemble(FILE *fout,FILE *fin)
/* write the public tagnames table */ /* write the public tagnames table */
count=0; count=0;
for (constptr=tagname_tab.next; constptr!=NULL; constptr=constptr->next) { for (constptr=tagname_tab.next; constptr!=NULL; constptr=constptr->next) {
if ((constptr->value & PUBLICTAG)!=0) { /*if ((constptr->value & PUBLICTAG)!=0) {*/
assert(strlen(constptr->name)>0); assert(strlen(constptr->name)>0);
func.address=constptr->value & TAGMASK; func.address=constptr->value & TAGMASK;
func.nameofs=nameofs; func.nameofs=nameofs;
@ -929,7 +929,7 @@ SC_FUNC int assemble(FILE *fout,FILE *fin)
pc_writebin(fout,constptr->name,strlen(constptr->name)+1); pc_writebin(fout,constptr->name,strlen(constptr->name)+1);
nameofs+=strlen(constptr->name)+1; nameofs+=strlen(constptr->name)+1;
count++; count++;
} /* if */ /*} if */
} /* for */ } /* for */
/* write the "maximum name length" field in the name table */ /* write the "maximum name length" field in the name table */