From 045c9185f8c5f822c2d084222d95c70dfc6ff1d9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 27 Feb 2024 10:42:30 +0100 Subject: [PATCH] xfree86: x86emu: drop unnecessary extern C from debug.h Since we're not using C++ code, thus no trouble w/ name mangling, we don't need explicit extern "C" { ... } sections in the code. (If we would, we have to have it in many other places, too) Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/x86emu/x86emu/debug.h | 35 ++++++++++++-------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/hw/xfree86/x86emu/x86emu/debug.h b/hw/xfree86/x86emu/x86emu/debug.h index 8660ebcb6..c32743c6a 100644 --- a/hw/xfree86/x86emu/x86emu/debug.h +++ b/hw/xfree86/x86emu/x86emu/debug.h @@ -182,27 +182,18 @@ #define DB(x) #endif -/*-------------------------- Function Prototypes --------------------------*/ +void x86emu_inc_decoded_inst_len(int x); +void x86emu_decode_printf(const char *x, ...) _X_ATTRIBUTE_PRINTF(1,2); +void x86emu_just_disassemble(void); +void x86emu_single_step(void); +void x86emu_end_instr(void); +void x86emu_dump_regs(void); +void x86emu_dump_xregs(void); +void x86emu_print_int_vect(u16 iv); +void x86emu_instrument_instruction(void); +void x86emu_check_ip_access(void); +void x86emu_check_sp_access(void); +void x86emu_check_mem_access(u32 p); +void x86emu_check_data_access(uint s, uint o); -#ifdef __cplusplus -extern "C" { /* Use "C" linkage when in C++ mode */ -#endif - - extern void x86emu_inc_decoded_inst_len(int x); - extern void x86emu_decode_printf(const char *x, ...) _X_ATTRIBUTE_PRINTF(1,2); - extern void x86emu_just_disassemble(void); - extern void x86emu_single_step(void); - extern void x86emu_end_instr(void); - extern void x86emu_dump_regs(void); - extern void x86emu_dump_xregs(void); - extern void x86emu_print_int_vect(u16 iv); - extern void x86emu_instrument_instruction(void); - extern void x86emu_check_ip_access(void); - extern void x86emu_check_sp_access(void); - extern void x86emu_check_mem_access(u32 p); - extern void x86emu_check_data_access(uint s, uint o); - -#ifdef __cplusplus -} /* End of "C" linkage for C++ */ -#endif #endif /* __X86EMU_DEBUG_H */