Corrected the most annoying spelling mistake ever: depricated -> deprecated
authorScott Ehlert <ds@alliedmods.net>
Fri Aug 04 03:41:50 2006 +0000 (2006-08-04)
changeset 5297bdc78041aa
parent 51 41edf76e1889
child 53 805202a58dba
Corrected the most annoying spelling mistake ever: depricated -> deprecated
sourcepawn/compiler/sc.h
sourcepawn/compiler/sc1.c
sourcepawn/compiler/sc2.c
sourcepawn/compiler/sc3.c
sourcepawn/compiler/sc5.scp
sourcepawn/compiler/scvars.c
     1.1 --- a/sourcepawn/compiler/sc.h	Thu Aug 03 23:42:50 2006 +0000
     1.2 +++ b/sourcepawn/compiler/sc.h	Fri Aug 04 03:41:50 2006 +0000
     1.3 @@ -218,7 +218,7 @@
     1.4   */
     1.5  #define uRETNONE  0x10
     1.6  
     1.7 -#define flgDEPRICATED 0x01  /* symbol is depricated (avoid use) */
     1.8 +#define flgDEPRECATED 0x01  /* symbol is deprecated (avoid use) */
     1.9  
    1.10  #define uTAGOF    0x40  /* set in the "hasdefault" field of the arginfo struct */
    1.11  #define uSIZEOF   0x80  /* set in the "hasdefault" field of the arginfo struct */
    1.12 @@ -790,7 +790,7 @@
    1.13  SC_VDECL int rational_digits; /* number of fractional digits */
    1.14  SC_VDECL int sc_allowproccall;/* allow/detect tagnames in lex() */
    1.15  SC_VDECL short sc_is_utf8;    /* is this source file in UTF-8 encoding */
    1.16 -SC_VDECL char *pc_depricate;  /* if non-NULL, mark next declaration as depricated */
    1.17 +SC_VDECL char *pc_deprecate;  /* if non-NULL, mark next declaration as deprecated */
    1.18  SC_VDECL int sc_curstates;    /* ID of the current state list */
    1.19  SC_VDECL int pc_optimize;     /* (peephole) optimization level */
    1.20  SC_VDECL int pc_memflags;     /* special flags for the stack/heap usage */
     2.1 --- a/sourcepawn/compiler/sc1.c	Thu Aug 03 23:42:50 2006 +0000
     2.2 +++ b/sourcepawn/compiler/sc1.c	Fri Aug 04 03:41:50 2006 +0000
     2.3 @@ -612,7 +612,7 @@
     2.4    pc_addlibtable=TRUE;  /* by default, add a "library table" to the output file */
     2.5    sc_alignnext=FALSE;
     2.6    pc_docexpr=FALSE;
     2.7 -  pc_depricate=NULL;
     2.8 +  pc_deprecate=NULL;
     2.9    sc_curstates=0;
    2.10    pc_memflags=0;
    2.11  }
    2.12 @@ -2741,19 +2741,19 @@
    2.13      /* set the required stack size to zero (only for non-native functions) */
    2.14      sym->x.stacksize=1;         /* 1 for PROC opcode */
    2.15    } /* if */
    2.16 -  if (pc_depricate!=NULL) {
    2.17 +  if (pc_deprecate!=NULL) {
    2.18      assert(sym!=NULL);
    2.19 -    sym->flags|=flgDEPRICATED;
    2.20 +    sym->flags|=flgDEPRECATED;
    2.21      if (sc_status==statWRITE) {
    2.22        if (sym->documentation!=NULL) {
    2.23          free(sym->documentation);
    2.24          sym->documentation=NULL;
    2.25        } /* if */
    2.26 -      sym->documentation=pc_depricate;
    2.27 +      sym->documentation=pc_deprecate;
    2.28      } else {
    2.29 -      free(pc_depricate);
    2.30 +      free(pc_deprecate);
    2.31      } /* if */
    2.32 -    pc_depricate=NULL;
    2.33 +    pc_deprecate=NULL;
    2.34    } /* if */
    2.35  
    2.36    return sym;
    2.37 @@ -3273,9 +3273,9 @@
    2.38      cidx=code_idx;
    2.39      glbdecl=glb_declared;
    2.40    } /* if */
    2.41 -  if ((sym->flags & flgDEPRICATED)!=0) {
    2.42 +  if ((sym->flags & flgDEPRECATED)!=0) {
    2.43      char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
    2.44 -    error(234,symbolname,ptr);  /* depricated (probably a public function) */
    2.45 +    error(234,symbolname,ptr);  /* deprecated (probably a public function) */
    2.46    } /* if */
    2.47    begcseg();
    2.48    sym->usage|=uDEFINE;  /* set the definition flag */
     3.1 --- a/sourcepawn/compiler/sc2.c	Thu Aug 03 23:42:50 2006 +0000
     3.2 +++ b/sourcepawn/compiler/sc2.c	Fri Aug 04 03:41:50 2006 +0000
     3.3 @@ -1046,12 +1046,12 @@
     3.4                error(27);          /* invalid character constant */
     3.5              sc_ctrlchar=(char)val;
     3.6            } /* if */
     3.7 -        } else if (strcmp(str,"depricated")==0) {
     3.8 +        } else if (strcmp(str,"deprecated")==0) {
     3.9            while (*lptr<=' ' && *lptr!='\0')
    3.10              lptr++;
    3.11 -          pc_depricate=(char*)malloc(strlen((char*)lptr)+1);
    3.12 -          if (pc_depricate!=NULL)
    3.13 -            strcpy(pc_depricate,(char*)lptr);
    3.14 +          pc_deprecate=(char*)malloc(strlen((char*)lptr)+1);
    3.15 +          if (pc_deprecate!=NULL)
    3.16 +            strcpy(pc_deprecate,(char*)lptr);
    3.17            lptr=(unsigned char*)strchr((char*)lptr,'\0'); /* skip to end (ignore "extra characters on line") */
    3.18          } else if (strcmp(str,"dynamic")==0) {
    3.19            preproc_expr(&pc_stksize,NULL);
     4.1 --- a/sourcepawn/compiler/sc3.c	Thu Aug 03 23:42:50 2006 +0000
     4.2 +++ b/sourcepawn/compiler/sc3.c	Fri Aug 04 03:41:50 2006 +0000
     4.3 @@ -1944,9 +1944,9 @@
     4.4    #endif
     4.5    sc_allowproccall=FALSE;       /* parameters may not use procedure call syntax */
     4.6  
     4.7 -  if ((sym->flags & flgDEPRICATED)!=0) {
     4.8 +  if ((sym->flags & flgDEPRECATED)!=0) {
     4.9      char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
    4.10 -    error(234,sym->name,ptr);   /* depricated (probably a native function) */
    4.11 +    error(234,sym->name,ptr);   /* deprecated (probably a native function) */
    4.12    } /* if */
    4.13  
    4.14    /* run through the arguments */
     5.1 --- a/sourcepawn/compiler/sc5.scp	Thu Aug 03 23:42:50 2006 +0000
     5.2 +++ b/sourcepawn/compiler/sc5.scp	Fri Aug 04 03:41:50 2006 +0000
     5.3 @@ -299,7 +299,7 @@
     5.4  /*231*/  "state specification on forward declaration is ignored\n",
     5.5  /*232*/  "output file is written, but with compact encoding disabled\n",
     5.6  /*233*/  "state variable \"%s\" shadows a global variable\n",
     5.7 -/*234*/  "function is depricated (symbol \"%s\") %s\n",
     5.8 +/*234*/  "function is deprecated (symbol \"%s\") %s\n",
     5.9  /*235*/  "public function lacks forward declaration (symbol \"%s\")\n",
    5.10  /*236*/  "unknown parameter in substitution (incorrect #define pattern)\n"
    5.11  #else
     6.1 --- a/sourcepawn/compiler/scvars.c	Thu Aug 03 23:42:50 2006 +0000
     6.2 +++ b/sourcepawn/compiler/scvars.c	Fri Aug 04 03:41:50 2006 +0000
     6.3 @@ -86,7 +86,7 @@
     6.4  SC_VDEFINE int rational_digits=0;  /* number of fractional digits */
     6.5  SC_VDEFINE int sc_allowproccall=0; /* allow/detect tagnames in lex() */
     6.6  SC_VDEFINE short sc_is_utf8=FALSE; /* is this source file in UTF-8 encoding */
     6.7 -SC_VDEFINE char *pc_depricate=NULL;/* if non-null, mark next declaration as depricated */
     6.8 +SC_VDEFINE char *pc_deprecate=NULL;/* if non-null, mark next declaration as deprecated */
     6.9  SC_VDEFINE int sc_curstates=0;     /* ID of the current state list */
    6.10  SC_VDEFINE int pc_optimize=sOPTIMIZE_NOMACRO; /* (peephole) optimization level */
    6.11  SC_VDEFINE int pc_memflags=0;      /* special flags for the stack/heap usage */