mirror of https://github.com/zeldaret/mm.git
Fix variadic function typedef to be legal C
This commit is contained in:
parent
01c86ec621
commit
5687f3741a
|
@ -1,6 +1,6 @@
|
||||||
#ifndef _ULTRAERROR_H_
|
#ifndef _ULTRAERROR_H_
|
||||||
#define _ULTRAERROR_H_
|
#define _ULTRAERROR_H_
|
||||||
|
|
||||||
typedef void (*OSErrorHandler)(... /* ECOFF does not store param types */);
|
typedef void (*OSErrorHandler)(/* ECOFF does not store param types */);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -207,7 +207,7 @@ def get_type_string(file_data, fd, symbolic_header, aux_num, name, search_for_ty
|
||||||
ret += '*'
|
ret += '*'
|
||||||
elif tq == 2: # tqProc
|
elif tq == 2: # tqProc
|
||||||
last_was_proc = True
|
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
|
elif tq == 3: # tqArray
|
||||||
next_aux += 2 # todo what does this skip over? (Apparantly the type of the index, so always int for C)
|
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)
|
array_low_aux = read_auxiliary_symbol(file_data, symbolic_header.cbAuxOffset - OFFSET + (fd.iauxBase + next_aux)*4)
|
||||||
|
|
Loading…
Reference in New Issue