X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fasmproc.c;h=fe6fa474fb2f600b88280aafca431ac29238d655;hb=de15d43b1c3c125e7585b59d55e13b134a897f65;hp=678f58feaa01535e6ea6cdd6f31750a87acdee1f;hpb=d53d4cc79a05e833e791effdd14e5209222f483f;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