# HG changeset patch # User Scott Ehlert # Date 1154662910 0 # Node ID 97bdc78041aa5a07233c848ee18cbf5a827aab6b # Parent 41edf76e1889c247c2a3a76f8d18af639ea62b7f Corrected the most annoying spelling mistake ever: depricated -> deprecated diff -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/sc.h --- a/sourcepawn/compiler/sc.h Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/sc.h Fri Aug 04 03:41:50 2006 +0000 @@ -218,7 +218,7 @@ */ #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 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 -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/sc1.c --- a/sourcepawn/compiler/sc1.c Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/sc1.c Fri Aug 04 03:41:50 2006 +0000 @@ -612,7 +612,7 @@ 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 @@ /* 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 @@ 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 -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/sc2.c --- a/sourcepawn/compiler/sc2.c Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/sc2.c Fri Aug 04 03:41:50 2006 +0000 @@ -1046,12 +1046,12 @@ 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 -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/sc3.c --- a/sourcepawn/compiler/sc3.c Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/sc3.c Fri Aug 04 03:41:50 2006 +0000 @@ -1944,9 +1944,9 @@ #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 -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/sc5.scp --- a/sourcepawn/compiler/sc5.scp Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/sc5.scp Fri Aug 04 03:41:50 2006 +0000 @@ -299,7 +299,7 @@ /*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 -r 41edf76e1889 -r 97bdc78041aa sourcepawn/compiler/scvars.c --- a/sourcepawn/compiler/scvars.c Thu Aug 03 23:42:50 2006 +0000 +++ b/sourcepawn/compiler/scvars.c Fri Aug 04 03:41:50 2006 +0000 @@ -86,7 +86,7 @@ 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 */