From a26b39974fb992cb400c6e9aff0a02737c2f4f59 Mon Sep 17 00:00:00 2001 From: jkeil Date: Thu, 12 Jul 2001 15:27:48 +0000 Subject: Add prototypes to wine/loader stuff, so that we can catch __stdcall function attribute mismatch between caller/caller. wine/loader is less sensitive to optimization now. (now that avifile-0.6 has the same patch installed, we're a bit closer to their CVS tree) Speed up win32 "QueryPerformanceFrequency" emulation on solaris. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1308 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/registry.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'loader/registry.c') diff --git a/loader/registry.c b/loader/registry.c index c9b0f11676..9c6b0a6450 100644 --- a/loader/registry.c +++ b/loader/registry.c @@ -1,7 +1,9 @@ #include #include +#include #include +#include #include #include @@ -11,6 +13,8 @@ #include #include +#include + //#undef TRACE //#define TRACE printf struct reg_value @@ -40,14 +44,14 @@ static reg_handle_t* head=0; extern char *get_path(char *); -static void create_registry(); -static void open_registry(); -static void save_registry(); +static void create_registry(void); +static void open_registry(void); +static void save_registry(void); -static void create_registry(){ +static void create_registry(void){ if(regs) { printf("Logic error: create_registry() called with existing registry\n"); @@ -65,7 +69,7 @@ static void create_registry(){ reg_size=2; save_registry(); } -static void open_registry() +static void open_registry(void) { int fd; int i; @@ -120,7 +124,7 @@ error: return; } -static void save_registry() +static void save_registry(void) { int fd, i, len; // struct passwd* pwent; @@ -227,7 +231,7 @@ static char* build_keyname(long key, const char* subkey) strcat(full_name, subkey); return full_name; } -struct reg_value* insert_reg_value(int handle, const char* name, int type, const void* value, int len) +static struct reg_value* insert_reg_value(int handle, const char* name, int type, const void* value, int len) { reg_handle_t* t; struct reg_value* v; @@ -263,7 +267,7 @@ struct reg_value* insert_reg_value(int handle, const char* name, int type, const return v; } -static void init_registry() +static void init_registry(void) { #ifdef DETAILED_OUT printf("Initializing registry\n"); -- cgit v1.2.3