@@ -3777,9 +3777,6 @@ static void funcstub(int fnative)
3777
3777
sym -> usage = (short )(uNATIVE | uRETVALUE | uDEFINE | (sym -> usage & uPROTOTYPED ));
3778
3778
sym -> x .lib = curlibrary ;
3779
3779
} else {
3780
- if (((sym -> usage & uDECLPUBLIC )!= 0 && !fpublic ) || ((sym -> usage & uDECLSTATIC )!= 0 && !fstatic )
3781
- || ((sym -> usage & uSTOCK )!= 0 && !fstock ))
3782
- error (25 ); /* function heading differs from prototype */
3783
3780
if ((sym -> usage & uDEFINE )!= 0 ) {
3784
3781
/* if the function has already been defined ("finalized"), we can't accept
3785
3782
* any new class specifiers */
@@ -3938,9 +3935,6 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int fsto
3938
3935
sym = fetchfunc (symbolname ,tag );/* get a pointer to the function entry */
3939
3936
if (sym == NULL || (sym -> usage & uNATIVE )!= 0 )
3940
3937
return TRUE; /* it was recognized as a function declaration, but not as a valid one */
3941
- if (((sym -> usage & uDECLPUBLIC )!= 0 && !fpublic ) || ((sym -> usage & uDECLSTATIC )!= 0 && !fstatic )
3942
- || ((sym -> usage & uSTOCK )!= 0 && !fstock ))
3943
- error (25 ); /* function heading differs from prototype */
3944
3938
if (fpublic && opertok == 0 )
3945
3939
sym -> usage |= (uPUBLIC | uDECLPUBLIC );
3946
3940
if (fstatic ) {
@@ -3991,6 +3985,9 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int fsto
3991
3985
return TRUE;
3992
3986
} /* if */
3993
3987
/* so it is not a prototype, proceed */
3988
+ if (((sym -> usage & uDECLPUBLIC )!= 0 && !fpublic ) || ((sym -> usage & uDECLSTATIC )!= 0 && !fstatic )
3989
+ || ((sym -> usage & uSTOCK )!= 0 && !fstock ))
3990
+ error (25 ); /* function heading differs from prototype */
3994
3991
/* if this is a function that is not referred to (this can only be detected
3995
3992
* in the second stage), shut code generation off */
3996
3993
if (sc_status == statWRITE && (sym -> usage & uREAD )== 0 && !fpublic ) {
0 commit comments