From 69f1ec61f9a50183d48b75c5b1635e704e765f05 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sat, 21 Jan 2017 14:33:46 +0600 Subject: [PATCH] Fix typo in constant name (DEPRICATED -> DEPRECATED) --- source/compiler/sc.h | 2 +- source/compiler/sc1.c | 4 ++-- source/compiler/sc3.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/compiler/sc.h b/source/compiler/sc.h index e6842b8..3313ce3 100644 --- a/source/compiler/sc.h +++ b/source/compiler/sc.h @@ -218,7 +218,7 @@ typedef struct s_symbol { */ #define uRETNONE 0x10 -#define flgDEPRICATED 0x01 /* symbol is deprecated (avoid use) */ +#define flgDEPRECATED 0x01 /* symbol is deprecated (avoid use) */ #define flagNAKED 0x10 /* function is naked */ #define uTAGOF 0x40 /* set in the "hasdefault" field of the arginfo struct */ diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 2795320..b5070de 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -3040,7 +3040,7 @@ SC_FUNC symbol *fetchfunc(char *name,int tag) } /* if */ if (pc_deprecate!=NULL) { assert(sym!=NULL); - sym->flags|=flgDEPRICATED; + sym->flags|=flgDEPRECATED; if (sc_status==statWRITE) { if (sym->documentation!=NULL) { free(sym->documentation); @@ -3572,7 +3572,7 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int stoc cidx=code_idx; glbdecl=glb_declared; } /* if */ - if ((sym->flags & flgDEPRICATED)!=0) { + if ((sym->flags & flgDEPRECATED)!=0) { char *ptr= (sym->documentation!=NULL) ? sym->documentation : ""; error(234,symbolname,ptr); /* deprecated (probably a public function) */ } /* if */ diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index 89d5c66..8dde140 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -2001,7 +2001,7 @@ static int nesting=0; #endif sc_allowproccall=FALSE; /* parameters may not use procedure call syntax */ - if ((sym->flags & flgDEPRICATED)!=0) { + if ((sym->flags & flgDEPRECATED)!=0) { char *ptr= (sym->documentation!=NULL) ? sym->documentation : ""; error(234,sym->name,ptr); /* deprecated (probably a native function) */ } /* if */