From d2c8a754db4ecf20b517f9c777b0e86f8617da4b Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 27 Nov 2004 20:52:06 +0000 Subject: [PATCH] Handle static functions correctly with %v. git-svn-id: svn://svn.cc65.org/cc65/trunk@3308 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/asmstmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5