1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 22:29:31 +00:00

Handle static functions correctly with %v.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3308 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-11-27 20:52:06 +00:00
parent 626314e4cb
commit d2c8a754db

View File

@ -224,8 +224,8 @@ static void ParseGVarArg (StrBuf* T, unsigned Arg)
}
/* Check for external linkage */
if (Sym->Flags & (SC_EXTERN | SC_STORAGE)) {
/* External linkage */
if (Sym->Flags & (SC_EXTERN | SC_STORAGE | SC_FUNC)) {
/* External linkage or a function */
/* ### FIXME: Asm name should be generated by codegen */
SB_AppendChar (T, '_');
SB_AppendStr (T, Sym->Name);