rename flgDEPRECATED
to flagDEPRECATED
This commit is contained in:
parent
a9970bb452
commit
dadc182aba
@ -238,7 +238,7 @@ typedef struct s_symbol {
|
|||||||
*/
|
*/
|
||||||
#define uRETNONE 0x10
|
#define uRETNONE 0x10
|
||||||
|
|
||||||
#define flgDEPRECATED 0x01 /* symbol is deprecated (avoid use) */
|
#define flagDEPRECATED 0x01 /* symbol is deprecated (avoid use) */
|
||||||
#define flagNAKED 0x10 /* function is naked */
|
#define flagNAKED 0x10 /* function is naked */
|
||||||
#define flagPREDEF 0x20 /* symbol is pre-defined; successor of uPREDEF */
|
#define flagPREDEF 0x20 /* symbol is pre-defined; successor of uPREDEF */
|
||||||
|
|
||||||
|
@ -3171,7 +3171,7 @@ SC_FUNC symbol *fetchfunc(char *name,int tag)
|
|||||||
} /* if */
|
} /* if */
|
||||||
if (pc_deprecate!=NULL) {
|
if (pc_deprecate!=NULL) {
|
||||||
assert(sym!=NULL);
|
assert(sym!=NULL);
|
||||||
sym->flags|=flgDEPRECATED;
|
sym->flags|=flagDEPRECATED;
|
||||||
if (sc_status==statWRITE) {
|
if (sc_status==statWRITE) {
|
||||||
if (sym->documentation!=NULL) {
|
if (sym->documentation!=NULL) {
|
||||||
free(sym->documentation);
|
free(sym->documentation);
|
||||||
@ -3785,7 +3785,7 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int stoc
|
|||||||
cidx=code_idx;
|
cidx=code_idx;
|
||||||
glbdecl=glb_declared;
|
glbdecl=glb_declared;
|
||||||
} /* if */
|
} /* if */
|
||||||
if ((sym->flags & flgDEPRECATED)!=0) {
|
if ((sym->flags & flagDEPRECATED)!=0) {
|
||||||
char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
|
char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
|
||||||
error(234,symbolname,ptr); /* deprecated (probably a public function) */
|
error(234,symbolname,ptr); /* deprecated (probably a public function) */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
@ -2031,7 +2031,7 @@ static int nesting=0;
|
|||||||
#endif
|
#endif
|
||||||
sc_allowproccall=FALSE; /* parameters may not use procedure call syntax */
|
sc_allowproccall=FALSE; /* parameters may not use procedure call syntax */
|
||||||
|
|
||||||
if ((sym->flags & flgDEPRECATED)!=0) {
|
if ((sym->flags & flagDEPRECATED)!=0) {
|
||||||
char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
|
char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
|
||||||
error(234,sym->name,ptr); /* deprecated (probably a native function) */
|
error(234,sym->name,ptr); /* deprecated (probably a native function) */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user