From 4a324feac0bd8168f6962b0030e94e326778ce56 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 4 Aug 2006 03:41:50 +0000 Subject: [PATCH] Corrected the most annoying spelling mistake ever: depricated -> deprecated --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4057 --- sourcepawn/compiler/sc.h | 4 ++-- sourcepawn/compiler/sc1.c | 16 ++++++++-------- sourcepawn/compiler/sc2.c | 8 ++++---- sourcepawn/compiler/sc3.c | 4 ++-- sourcepawn/compiler/sc5.scp | 2 +- sourcepawn/compiler/scvars.c | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/sourcepawn/compiler/sc.h b/sourcepawn/compiler/sc.h index b4a367a85..4f839169e 100644 --- a/sourcepawn/compiler/sc.h +++ b/sourcepawn/compiler/sc.h @@ -218,7 +218,7 @@ typedef struct s_symbol { */ #define uRETNONE 0x10 -#define flgDEPRICATED 0x01 /* symbol is depricated (avoid use) */ +#define flgDEPRECATED 0x01 /* symbol is deprecated (avoid use) */ #define uTAGOF 0x40 /* set in the "hasdefault" field of the arginfo struct */ #define uSIZEOF 0x80 /* set in the "hasdefault" field of the arginfo struct */ @@ -790,7 +790,7 @@ SC_VDECL int sc_rationaltag; /* tag for rational numbers */ SC_VDECL int rational_digits; /* number of fractional digits */ SC_VDECL int sc_allowproccall;/* allow/detect tagnames in lex() */ SC_VDECL short sc_is_utf8; /* is this source file in UTF-8 encoding */ -SC_VDECL char *pc_depricate; /* if non-NULL, mark next declaration as depricated */ +SC_VDECL char *pc_deprecate; /* if non-NULL, mark next declaration as deprecated */ SC_VDECL int sc_curstates; /* ID of the current state list */ SC_VDECL int pc_optimize; /* (peephole) optimization level */ SC_VDECL int pc_memflags; /* special flags for the stack/heap usage */ diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 0a8e88b3d..bd4ea550d 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -612,7 +612,7 @@ static void resetglobals(void) pc_addlibtable=TRUE; /* by default, add a "library table" to the output file */ sc_alignnext=FALSE; pc_docexpr=FALSE; - pc_depricate=NULL; + pc_deprecate=NULL; sc_curstates=0; pc_memflags=0; } @@ -2741,19 +2741,19 @@ SC_FUNC symbol *fetchfunc(char *name,int tag) /* set the required stack size to zero (only for non-native functions) */ sym->x.stacksize=1; /* 1 for PROC opcode */ } /* if */ - if (pc_depricate!=NULL) { + if (pc_deprecate!=NULL) { assert(sym!=NULL); - sym->flags|=flgDEPRICATED; + sym->flags|=flgDEPRECATED; if (sc_status==statWRITE) { if (sym->documentation!=NULL) { free(sym->documentation); sym->documentation=NULL; } /* if */ - sym->documentation=pc_depricate; + sym->documentation=pc_deprecate; } else { - free(pc_depricate); + free(pc_deprecate); } /* if */ - pc_depricate=NULL; + pc_deprecate=NULL; } /* if */ return sym; @@ -3273,9 +3273,9 @@ 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); /* depricated (probably a public function) */ + error(234,symbolname,ptr); /* deprecated (probably a public function) */ } /* if */ begcseg(); sym->usage|=uDEFINE; /* set the definition flag */ diff --git a/sourcepawn/compiler/sc2.c b/sourcepawn/compiler/sc2.c index 2cf9c1af7..859ec30fd 100644 --- a/sourcepawn/compiler/sc2.c +++ b/sourcepawn/compiler/sc2.c @@ -1046,12 +1046,12 @@ static int command(void) error(27); /* invalid character constant */ sc_ctrlchar=(char)val; } /* if */ - } else if (strcmp(str,"depricated")==0) { + } else if (strcmp(str,"deprecated")==0) { while (*lptr<=' ' && *lptr!='\0') lptr++; - pc_depricate=(char*)malloc(strlen((char*)lptr)+1); - if (pc_depricate!=NULL) - strcpy(pc_depricate,(char*)lptr); + pc_deprecate=(char*)malloc(strlen((char*)lptr)+1); + if (pc_deprecate!=NULL) + strcpy(pc_deprecate,(char*)lptr); lptr=(unsigned char*)strchr((char*)lptr,'\0'); /* skip to end (ignore "extra characters on line") */ } else if (strcmp(str,"dynamic")==0) { preproc_expr(&pc_stksize,NULL); diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index ddb0acc31..9c5df24c0 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -1944,9 +1944,9 @@ 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); /* depricated (probably a native function) */ + error(234,sym->name,ptr); /* deprecated (probably a native function) */ } /* if */ /* run through the arguments */ diff --git a/sourcepawn/compiler/sc5.scp b/sourcepawn/compiler/sc5.scp index 5fef861aa..25e4baa28 100644 --- a/sourcepawn/compiler/sc5.scp +++ b/sourcepawn/compiler/sc5.scp @@ -299,7 +299,7 @@ static char *warnmsg[] = { /*231*/ "state specification on forward declaration is ignored\n", /*232*/ "output file is written, but with compact encoding disabled\n", /*233*/ "state variable \"%s\" shadows a global variable\n", -/*234*/ "function is depricated (symbol \"%s\") %s\n", +/*234*/ "function is deprecated (symbol \"%s\") %s\n", /*235*/ "public function lacks forward declaration (symbol \"%s\")\n", /*236*/ "unknown parameter in substitution (incorrect #define pattern)\n" #else diff --git a/sourcepawn/compiler/scvars.c b/sourcepawn/compiler/scvars.c index 6a1365f80..3efef1294 100644 --- a/sourcepawn/compiler/scvars.c +++ b/sourcepawn/compiler/scvars.c @@ -86,7 +86,7 @@ SC_VDEFINE int sc_rationaltag=0; /* tag for rational numbers */ SC_VDEFINE int rational_digits=0; /* number of fractional digits */ SC_VDEFINE int sc_allowproccall=0; /* allow/detect tagnames in lex() */ SC_VDEFINE short sc_is_utf8=FALSE; /* is this source file in UTF-8 encoding */ -SC_VDEFINE char *pc_depricate=NULL;/* if non-null, mark next declaration as depricated */ +SC_VDEFINE char *pc_deprecate=NULL;/* if non-null, mark next declaration as deprecated */ SC_VDEFINE int sc_curstates=0; /* ID of the current state list */ SC_VDEFINE int pc_optimize=sOPTIMIZE_NOMACRO; /* (peephole) optimization level */ SC_VDEFINE int pc_memflags=0; /* special flags for the stack/heap usage */