AltairZ80: Add void when missing in function declaration

This commit is contained in:
Peter Schorn 2023-04-05 16:28:15 +02:00
parent cc23adf6fd
commit 8b1b5eaeb7
10 changed files with 26 additions and 26 deletions

View file

@ -243,7 +243,7 @@ static int32 currentNameIndex = 0;
static int32 lastPathSeparatorIndex = 0; static int32 lastPathSeparatorIndex = 0;
static int32 firstPathCharacterIndex = 0; static int32 firstPathCharacterIndex = 0;
static void deleteNameList() { static void deleteNameList(void) {
while (nameListHead != NULL) { while (nameListHead != NULL) {
NameNode_t *next = nameListHead -> next; NameNode_t *next = nameListHead -> next;
free(nameListHead -> name); free(nameListHead -> name);

View file

@ -3758,7 +3758,7 @@ static int oplookup(const char* s)
static void init_ophash() static void init_ophash(void)
{ {
@ -3792,7 +3792,7 @@ static char* yystream;
static int yylex() static int yylex(void)
{ {

View file

@ -1151,7 +1151,7 @@ void m68k_pulse_halt(void)
/* Get and set the current CPU context */ /* Get and set the current CPU context */
/* This is to allow for multiple CPUs */ /* This is to allow for multiple CPUs */
unsigned int m68k_context_size() unsigned int m68k_context_size(void)
{ {
return sizeof(m68ki_cpu_core); return sizeof(m68ki_cpu_core);
} }

View file

@ -1479,7 +1479,7 @@ static void fmovem(uint16 w2)
} }
} }
static void fscc() static void fscc(void)
{ {
// added by JFF, this seems to work properly now // added by JFF, this seems to work properly now
int condition = OPER_I_16() & 0x3f; int condition = OPER_I_16() & 0x3f;
@ -1549,7 +1549,7 @@ static void fbcc32(void)
} }
void m68040_fpu_op0() void m68040_fpu_op0(void)
{ {
m68ki_cpu.fpu_just_reset = 0; m68ki_cpu.fpu_just_reset = 0;
@ -1638,7 +1638,7 @@ static void perform_fsave(uint32 addr, int inc)
} }
// FRESTORE on a NULL frame reboots the FPU - all registers to NaN, the 3 status regs to 0 // FRESTORE on a NULL frame reboots the FPU - all registers to NaN, the 3 status regs to 0
static void do_frestore_null() static void do_frestore_null(void)
{ {
int i; int i;
@ -1656,7 +1656,7 @@ static void do_frestore_null()
m68ki_cpu.fpu_just_reset = 1; m68ki_cpu.fpu_just_reset = 1;
} }
void m68040_fpu_op1() void m68040_fpu_op1(void)
{ {
int ea = REG_IR & 0x3f; int ea = REG_IR & 0x3f;
int mode = (ea >> 3) & 0x7; int mode = (ea >> 3) & 0x7;

View file

@ -324,7 +324,7 @@ static uint32 MC6850_data_read(void) {
return (((ch > 0) && (!stop_cpu)) ? ch & 0xff : 0xff); return (((ch > 0) && (!stop_cpu)) ? ch & 0xff : 0xff);
} }
static int MC6850_status_read() { static int MC6850_status_read(void) {
return m68k_MC6850_status; return m68k_MC6850_status;
} }

View file

@ -3436,7 +3436,7 @@ static int32 mmddev(int32 Addr, int32 rw, int32 data)
} }
} }
static void intZ80() static void intZ80(void)
{ {
if (mmd_ctx->MMD.intenable) { if (mmd_ctx->MMD.intenable) {
vectorInterrupt |= (1 << mmd_ctx->MMD.intvec); vectorInterrupt |= (1 << mmd_ctx->MMD.intvec);
@ -3502,7 +3502,7 @@ static uint8 MMD_Dev_Read(uint32 Addr)
return (cData); return (cData);
} }
static uint8 MMD_FDC_Read_Data() static uint8 MMD_FDC_Read_Data(void)
{ {
uint8 cData = 0xff; uint8 cData = 0xff;
@ -3659,7 +3659,7 @@ static void MMD_Command_Stack(int32 Data)
} }
} }
static void MMD_Command_Proc() static void MMD_Command_Proc(void)
{ {
switch (mmd_ctx->MMD.cmd) { switch (mmd_ctx->MMD.cmd) {
@ -3811,7 +3811,7 @@ static const char * MMD_Command_String(int32 command)
return string; return string;
} }
static uint8 MMD_Result_Stack() static uint8 MMD_Result_Stack(void)
{ {
uint8 cData; uint8 cData;
@ -3825,7 +3825,7 @@ static uint8 MMD_Result_Stack()
return cData; return cData;
} }
static uint8 MMD_Exec_Format() static uint8 MMD_Exec_Format(void)
{ {
uint8 drive = mmd_ctx->drive; uint8 drive = mmd_ctx->drive;
@ -3853,7 +3853,7 @@ static uint8 MMD_Exec_Format()
return 0; return 0;
} }
static uint8 MMD_Exec_Read() static uint8 MMD_Exec_Read(void)
{ {
uint8 cData; uint8 cData;
uint8 drive = mmd_ctx->drive; uint8 drive = mmd_ctx->drive;
@ -3920,7 +3920,7 @@ static uint8 MMD_Exec_Write(int32 Data)
return Data; return Data;
} }
static uint8 MMD_Term_Count() static uint8 MMD_Term_Count(void)
{ {
if (mmd_ctx->MMD.status & MMD_STAT_EXM) { if (mmd_ctx->MMD.status & MMD_STAT_EXM) {
mmd_ctx->MMD.tc = TRUE; mmd_ctx->MMD.tc = TRUE;
@ -4002,7 +4002,7 @@ static uint8 MMD_Write_Sector(uint8 drive)
return r; return r;
} }
static void MMD_Dump_Sector() { static void MMD_Dump_Sector(void) {
int32 i; int32 i;
for (i = 0; i < 32; i++) { for (i = 0; i < 32; i++) {

View file

@ -1494,7 +1494,7 @@ static t_stat dj2d_show_baud(FILE *st, UNIT *uptr, int32 value, const void *desc
return SCPE_OK; return SCPE_OK;
} }
static t_stat dj2d_config_line() static t_stat dj2d_config_line(void)
{ {
char config[20]; char config[20];
const char *fmt; const char *fmt;

View file

@ -995,7 +995,7 @@ static int32 icomdev(int32 Addr, int32 rw, int32 data)
} }
} }
static void showReadSec() static void showReadSec(void)
{ {
int i; int i;
ICOM_REG *pICOM; ICOM_REG *pICOM;
@ -1015,7 +1015,7 @@ static void showReadSec()
} }
} }
static void showWriteSec() static void showWriteSec(void)
{ {
int i; int i;
ICOM_REG *pICOM; ICOM_REG *pICOM;

View file

@ -780,7 +780,7 @@ static void showsector(uint8 drive, uint8 isRead, uint8 *buf) {
sim_debug(RD_DATA_DETAIL_MSG|WR_DATA_DETAIL_MSG, &jade_dev, "\n"); sim_debug(RD_DATA_DETAIL_MSG|WR_DATA_DETAIL_MSG, &jade_dev, "\n");
} }
static void showcb() static void showcb(void)
{ {
DBG_PRINT((JADE_SNAME DBG_PRINT((JADE_SNAME
" cmd=0x%02X drv=%d trk=%02d sec=%02d mod=0x%02X sts=0x%02X lad=%04X lng=%04X\n", " cmd=0x%02X drv=%d trk=%02d sec=%02d mod=0x%02X sts=0x%02X lad=%04X lng=%04X\n",
@ -953,7 +953,7 @@ static uint8 PROM_Boot(JADE_INFO *info)
** Boot Loader Transient (BLT) module into the sector buffer. ** Boot Loader Transient (BLT) module into the sector buffer.
** The BLT is emulated with DCM_DBSLdr() function. ** The BLT is emulated with DCM_DBSLdr() function.
*/ */
static void DCM_Init() static void DCM_Init(void)
{ {
/* Move Bank 1 to Bank 0 */ /* Move Bank 1 to Bank 0 */
memcpy(bank0, bank1, JADE_BANK_SIZE); memcpy(bank0, bank1, JADE_BANK_SIZE);
@ -985,7 +985,7 @@ static void DCM_Init()
#define LNG_1K 1024 #define LNG_1K 1024
#define SEC_BG 4 /* First BIOS sector */ #define SEC_BG 4 /* First BIOS sector */
static void DCM_DBSLdr() static void DCM_DBSLdr(void)
{ {
uint8 sec = SEC_BG; uint8 sec = SEC_BG;
uint16 d = LNG_1K; uint16 d = LNG_1K;
@ -1022,7 +1022,7 @@ static void DCM_DBSLdr()
* THIS FUNCTION HANDLES TO THE INDIVIDUAL COMMAND * * THIS FUNCTION HANDLES TO THE INDIVIDUAL COMMAND *
* ROUTINES. * * ROUTINES. *
********************************************************/ ********************************************************/
static uint8 DCM_Execute() static uint8 DCM_Execute(void)
{ {
uint8 sts; uint8 sts;

View file

@ -465,7 +465,7 @@ const char *vdm1_description (DEVICE *dptr)
/* /*
* Draw and refresh the screen in the video window * Draw and refresh the screen in the video window
*/ */
static void vdm1_refresh() { static void vdm1_refresh(void) {
if (vdm1_active) { if (vdm1_active) {
vdm1_render(); vdm1_render();
vid_draw_window(vdm1_vptr, VDM1_MARGIN, VDM1_MARGIN, VDM1_XSIZE, VDM1_YSIZE, vdm1_surface); vid_draw_window(vdm1_vptr, VDM1_MARGIN, VDM1_MARGIN, VDM1_XSIZE, VDM1_YSIZE, vdm1_surface);
@ -477,7 +477,7 @@ static void vdm1_refresh() {
* The VDM-1 display is make up of 16 64-character rows. Each character occupies * The VDM-1 display is make up of 16 64-character rows. Each character occupies
* 1 byte in memory from CC00-CFFF. * 1 byte in memory from CC00-CFFF.
*/ */
static void vdm1_render() static void vdm1_render(void)
{ {
uint8 x,y,s,c,c1; uint8 x,y,s,c,c1;
int addr = 0; int addr = 0;