From 5687f3741a1e6697a482ceaef6f2f683a3f3cfe9 Mon Sep 17 00:00:00 2001 From: rozlette Date: Tue, 28 Apr 2020 15:11:14 -0500 Subject: [PATCH] Fix variadic function typedef to be legal C --- include/ultraerror.h | 2 +- tools/print_mdebug.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ultraerror.h b/include/ultraerror.h index 4d9cefecea..030b05af68 100644 --- a/include/ultraerror.h +++ b/include/ultraerror.h @@ -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 diff --git a/tools/print_mdebug.py b/tools/print_mdebug.py index 922041a5ca..927b6ef789 100644 --- a/tools/print_mdebug.py +++ b/tools/print_mdebug.py @@ -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)