Corrected the most annoying spelling mistake ever: depricated -> deprecated
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4057
This commit is contained in:
parent
b051f32ab6
commit
4a324feac0
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user