Commit 5af33ee0 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Use strict function prototypes.

parent ceac768a
...@@ -36,7 +36,7 @@ typedef struct { ...@@ -36,7 +36,7 @@ typedef struct {
#define THISCALL(func) __thiscall_ ## func #define THISCALL(func) __thiscall_ ## func
#define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func) #define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func)
#define DEFINE_THISCALL_WRAPPER(func,args) \ #define DEFINE_THISCALL_WRAPPER(func,args) \
extern void THISCALL(func)(); \ extern void THISCALL(func)(void); \
__ASM_GLOBAL_FUNC(__thiscall_ ## func, \ __ASM_GLOBAL_FUNC(__thiscall_ ## func, \
"popl %eax\n\t" \ "popl %eax\n\t" \
"pushl %ecx\n\t" \ "pushl %ecx\n\t" \
......
...@@ -74,7 +74,7 @@ typedef struct _rtti_object_locator ...@@ -74,7 +74,7 @@ typedef struct _rtti_object_locator
#define THISCALL(func) __thiscall_ ## func #define THISCALL(func) __thiscall_ ## func
#define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func) #define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func)
#define DEFINE_THISCALL_WRAPPER(func,args) \ #define DEFINE_THISCALL_WRAPPER(func,args) \
extern void THISCALL(func)(); \ extern void THISCALL(func)(void); \
__ASM_GLOBAL_FUNC(__thiscall_ ## func, \ __ASM_GLOBAL_FUNC(__thiscall_ ## func, \
"popl %eax\n\t" \ "popl %eax\n\t" \
"pushl %ecx\n\t" \ "pushl %ecx\n\t" \
......
...@@ -199,7 +199,7 @@ static void copy_exception( void *object, cxx_exception_frame *frame, ...@@ -199,7 +199,7 @@ static void copy_exception( void *object, cxx_exception_frame *frame,
/* unwind the local function up to a given trylevel */ /* unwind the local function up to a given trylevel */
static void cxx_local_unwind( cxx_exception_frame* frame, const cxx_function_descr *descr, int last_level) static void cxx_local_unwind( cxx_exception_frame* frame, const cxx_function_descr *descr, int last_level)
{ {
void (*handler)(); void (*handler)(void);
int trylevel = frame->trylevel; int trylevel = frame->trylevel;
while (trylevel != last_level) while (trylevel != last_level)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#define CXX_FRAME_MAGIC 0x19930520 #define CXX_FRAME_MAGIC 0x19930520
#define CXX_EXCEPTION 0xe06d7363 #define CXX_EXCEPTION 0xe06d7363
typedef void (*vtable_ptr)(); typedef void (*vtable_ptr)(void);
/* type_info object, see cpp.c for implementation */ /* type_info object, see cpp.c for implementation */
typedef struct __type_info typedef struct __type_info
...@@ -56,7 +56,7 @@ typedef struct __catchblock_info ...@@ -56,7 +56,7 @@ typedef struct __catchblock_info
UINT flags; /* flags (see below) */ UINT flags; /* flags (see below) */
const type_info *type_info; /* C++ type caught by this block */ const type_info *type_info; /* C++ type caught by this block */
int offset; /* stack offset to copy exception object to */ int offset; /* stack offset to copy exception object to */
void (*handler)(); /* catch block handler code */ void (*handler)(void);/* catch block handler code */
} catchblock_info; } catchblock_info;
#define TYPE_FLAG_CONST 1 #define TYPE_FLAG_CONST 1
#define TYPE_FLAG_VOLATILE 2 #define TYPE_FLAG_VOLATILE 2
...@@ -76,7 +76,7 @@ typedef struct __tryblock_info ...@@ -76,7 +76,7 @@ typedef struct __tryblock_info
typedef struct __unwind_info typedef struct __unwind_info
{ {
int prev; /* prev trylevel unwind handler, to run after this one */ int prev; /* prev trylevel unwind handler, to run after this one */
void (*handler)(); /* unwind handler */ void (*handler)(void);/* unwind handler */
} unwind_info; } unwind_info;
/* descriptor of all try blocks of a given function */ /* descriptor of all try blocks of a given function */
...@@ -128,7 +128,7 @@ typedef DWORD (*cxx_exc_custom_handler)( PEXCEPTION_RECORD, cxx_exception_frame* ...@@ -128,7 +128,7 @@ typedef DWORD (*cxx_exc_custom_handler)( PEXCEPTION_RECORD, cxx_exception_frame*
typedef struct __cxx_exception_type typedef struct __cxx_exception_type
{ {
UINT flags; /* TYPE_FLAG flags */ UINT flags; /* TYPE_FLAG flags */
void (*destructor)(); /* exception object destructor */ void (*destructor)(void);/* exception object destructor */
cxx_exc_custom_handler custom_handler; /* custom handler for this exception */ cxx_exc_custom_handler custom_handler; /* custom handler for this exception */
const cxx_type_info_table *type_info_table; /* list of types for this exception object */ const cxx_type_info_table *type_info_table; /* list of types for this exception object */
} cxx_exception_type; } cxx_exception_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment