From 3f8c9a83adae3bf16eb25027e7415293b0bad876 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 14 Jul 2006 06:21:07 +0000 Subject: [PATCH] fixed public functions requiring a forward --HG-- branch : dvander extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/dvander%4014 --- compiler-init/sc1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-init/sc1.c b/compiler-init/sc1.c index fd0b7452..95913675 100644 --- a/compiler-init/sc1.c +++ b/compiler-init/sc1.c @@ -3226,11 +3226,13 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int stoc sc_status=curstatus; sc_reparse=TRUE; /* must add another pass to "initial scan" phase */ } /* if */ +#if 0 /* Not used for SourceMod */ /* we want public functions to be explicitly prototyped, as they are called * from the outside */ if (fpublic && (sym->usage & uFORWARD)==0) error(235,symbolname); +#endif /* declare all arguments */ argcnt=declargs(sym,TRUE); opererror=!operatoradjust(opertok,sym,symbolname,tag);