X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fasmproc.c;h=fe6fa474fb2f600b88280aafca431ac29238d655;hb=cb6623274360357225526abaf285e5b500dbef97;hp=678f58feaa01535e6ea6cdd6f31750a87acdee1f;hpb=87ccd363f88828840d1bc7c4614ee3b3eb0dba54;p=ia32rtools.git diff --git a/tools/asmproc.c b/tools/asmproc.c index 678f58f..fe6fa47 100644 --- a/tools/asmproc.c +++ b/tools/asmproc.c @@ -193,7 +193,7 @@ int main(int argc, char *argv[]) } } - if (IS_OR3(word, "call", "jmp", "public")) { + if (IS_OR2(word, "call", "jmp")) { ssym.name = word2; sym = bsearch(&ssym, symlist, symlist_cnt, sizeof(symlist[0]), cmp_sym); @@ -206,6 +206,16 @@ int main(int argc, char *argv[]) } } + if (IS(word, "public")) { + ssym.name = word2; + sym = bsearch(&ssym, symlist, symlist_cnt, + sizeof(symlist[0]), cmp_sym); + if (sym != NULL) { + fprintf(fout, "\t\tpublic %s%s", sym_use(sym), p); + continue; + } + } + p = sskip(p); if (*p == 0 || *p == ';') goto pass; // need at least 3 words