* src/pic/glue.h,src/pic16/glue.h: added prototypes
[fw/sdcc] / src / pic / gen.c
index 931f82d364af143c72046511004cb05caf370fa4..bed1cb46ace620fd0be27d8e0ae33c9f46111ef0 100644 (file)
@@ -2886,6 +2886,9 @@ static void genFunction (iCode *ic)
        pic14_emitcode(";"," function %s",(sym = OP_SYMBOL(IC_LEFT(ic)))->name);
        pic14_emitcode(";","-----------------------------------------");
        
+       /* prevent this symbol from being emitted as 'extern' */
+       pic14_stringInSet(sym->rname, &pic14_localFunctions, 1);
+
        pic14_emitcode("","%s:",sym->rname);
        addpCode2pBlock(pb,newpCodeFunction(NULL,sym->rname,!IS_STATIC (sym->etype)));