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 <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1331>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-27 10:42:30 +01:00 committed by Marge Bot
parent 3843a643e0
commit 045c9185f8

View File

@ -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 */