From e74b8bb282721484b06c6beac708916eaa3701dc Mon Sep 17 00:00:00 2001 From: Y_Less Date: Fri, 27 Mar 2020 18:36:07 +0000 Subject: [PATCH] Move declarations. --- source/compiler/sc3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index cf04eab..d304dde 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -194,8 +194,8 @@ static void (*unopers[])(void) = { lneg, neg, user_inc, user_dec }; /* check existance and the proper declaration of this function */ if ((sym->usage & uMISSING)!=0 || (sym->usage & uPROTOTYPED)==0) { char symname[2*sNAMEMAX+16]; /* allow space for user defined operators */ - funcdisplayname(symname,sym->name); char *ptr= (sym->documentation!=NULL) ? sym->documentation : ""; + funcdisplayname(symname,sym->name); if ((sym->usage & uMISSING)!=0) error(4,symname,ptr); /* function not defined */ if ((sym->usage & uPROTOTYPED)==0) @@ -1880,8 +1880,8 @@ restart: } /* if */ } else if ((sym->usage & uMISSING)!=0) { char symname[2*sNAMEMAX+16]; /* allow space for user defined operators */ - funcdisplayname(symname,sym->name); char *ptr= (sym->documentation!=NULL) ? sym->documentation : ""; + funcdisplayname(symname,sym->name); error(4,symname,ptr); /* function not defined */ } /* if */ callfunction(sym,lval1,TRUE);