Remove uses of prototype argument hiding macros

Modern compilers don't use accept them, they _want_ complete prototypes.
This commit is contained in:
Patrick Georgi
2025-09-19 20:36:06 +02:00
parent de2c06c54d
commit 1b852f19a5
10 changed files with 118 additions and 156 deletions

View File

@@ -114,7 +114,7 @@ void d_free(CHAR_P *p)
}
static int NewInit(P1(LL_P *));
static int NewInit(LL_P *);
/* Resets pointer to current element and checks for an empty list
*/

View File

@@ -50,8 +50,7 @@
#include "dbtype.h"
/* Internal function Prototypes */
static int sortcmp(P1(SET_ENTRY *) Pi(char *)
Pi(char *));
static int sortcmp(SET_ENTRY *, char *, char *);
/* set pointer structure definition */
typedef struct {

View File

@@ -51,8 +51,7 @@
#include "dbtype.h"
/* Internal function prototypes */
static void chk_desc_key(P1(int) Pi(FIELD_ENTRY *)
Pi(const char *) Pi(char *));
static void chk_desc_key(int, FIELD_ENTRY *, const char *, char *);
/* Find record thru key field
*/

View File

@@ -63,10 +63,8 @@
#include "dbtype.h"
/* Internal function prototypes */
static int rec_okay(P1(int) Pi(int *)
Pi(RECORD_ENTRY * *));
static int ctblcmp(P1(const unsigned char *)
Pi(const unsigned char *) Pi(int));
static int rec_okay(int, int *, RECORD_ENTRY * *);
static int ctblcmp(const unsigned char *, const unsigned char *, int);
/* Check for valid db number and set curr_db, curr_db_table and curr_rn_table
*/

View File

@@ -70,8 +70,8 @@ static int cptr = -1;
static int buflen;
/* ********************** LOCAL FUNCTION DECLARATIONS **************** */
static void bgets(P1(char *) Pi(int) Pi(int));
static int nextc(P1(int));
static void bgets(char *, int, int);
static int nextc(int);
/* Map ASCII-Characters for output and sorting
*/

View File

@@ -81,11 +81,11 @@
/* ********************** FUNCTION PROTOTYPES ************************ */
static int isabs(P1(char *));
static int isabs(char *);
/* TRUE if path is absolute */
static char * remdrv(P1(char *));
static char * remdrv(char *);
/* Removes drive spec from path */
static char * remfile(P1(char *));
static char * remfile(char *);
/* Removes file from path */
/* ======================================================================