From: Helmut Eller Date: Mon, 12 Dec 2016 15:36:59 +0000 (+0100) Subject: Use static in definition too, not just in prototype declaration X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/commitdiff_plain/fb2f857a3d824a34b38b8e15619f1844dad6e1bd Use static in definition too, not just in prototype declaration * csrc/pfcompil.c (ffUnSmudge, FindAndCompile): VBCC refuses to compile this unless function with static prototypes also have use static definitions. --- diff --git a/csrc/pfcompil.c b/csrc/pfcompil.c index 9397fa3..04bc000 100644 --- a/csrc/pfcompil.c +++ b/csrc/pfcompil.c @@ -661,7 +661,7 @@ void ffDefer( void ) } /* Unsmudge the word to make it visible. */ -void ffUnSmudge( void ) +static void ffUnSmudge( void ) { *(char*)gVarContext &= ~FLAG_SMUDGE; } @@ -737,7 +737,7 @@ void ffFPLiteral( PF_FLOAT fnum ) #endif /* PF_SUPPORT_FP */ /**************************************************************/ -ThrowCode FindAndCompile( const char *theWord ) +static ThrowCode FindAndCompile( const char *theWord ) { cell_t Flag; ExecToken XT;