Fix variadic function typedef to be legal C

This commit is contained in:
rozlette 2020-04-28 15:11:14 -05:00
parent 01c86ec621
commit 5687f3741a
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#ifndef _ULTRAERROR_H_
#define _ULTRAERROR_H_
typedef void (*OSErrorHandler)(... /* ECOFF does not store param types */);
typedef void (*OSErrorHandler)(/* ECOFF does not store param types */);
#endif

View File

@ -207,7 +207,7 @@ def get_type_string(file_data, fd, symbolic_header, aux_num, name, search_for_ty
ret += '*'
elif tq == 2: # tqProc
last_was_proc = True
name = '(*%s)(... /* ECOFF does not store param types */)' % name
name = '(*%s)(/* ECOFF does not store param types */)' % name
elif tq == 3: # tqArray
next_aux += 2 # todo what does this skip over? (Apparantly the type of the index, so always int for C)
array_low_aux = read_auxiliary_symbol(file_data, symbolic_header.cbAuxOffset - OFFSET + (fd.iauxBase + next_aux)*4)