From: cuz Date: Sat, 27 Nov 2004 20:52:06 +0000 (+0000) Subject: Handle static functions correctly with %v. X-Git-Tag: V2.12.0~527 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2c8a754db4ecf20b517f9c777b0e86f8617da4b;p=cc65 Handle static functions correctly with %v. git-svn-id: svn://svn.cc65.org/cc65/trunk@3308 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/asmstmt.c b/src/cc65/asmstmt.c index 53afc99b2..be85db461 100644 --- a/src/cc65/asmstmt.c +++ b/src/cc65/asmstmt.c @@ -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);