Commit 595f2846 authored by Alexandre Julliard's avatar Alexandre Julliard

libwine: Make the remaining configuration functions obsolete.

parent a9a08dbc
...@@ -84,8 +84,6 @@ C_SRCS = \ ...@@ -84,8 +84,6 @@ C_SRCS = \
utf8.c \ utf8.c \
wctomb.c wctomb.c
EXTRA_OBJS = version.o
config_EXTRADEFS = \ config_EXTRADEFS = \
-DBINDIR='"${bindir}"' \ -DBINDIR='"${bindir}"' \
-DDLLDIR='"${dlldir}"' \ -DDLLDIR='"${dlldir}"' \
...@@ -98,9 +96,3 @@ SHAREDLIB = $(LIBWINE_SHAREDLIB) ...@@ -98,9 +96,3 @@ SHAREDLIB = $(LIBWINE_SHAREDLIB)
libwine_LDFLAGS = $(LIBWINE_LDFLAGS) libwine_LDFLAGS = $(LIBWINE_LDFLAGS)
libwine_DEPS = $(LIBWINE_DEPENDS) libwine_DEPS = $(LIBWINE_DEPENDS)
version.c: dummy
version=`(GIT_DIR=$(top_srcdir)/.git git describe HEAD 2>/dev/null || echo "wine-$(PACKAGE_VERSION)") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p'` && (echo $$version | cmp -s - $@) || echo $$version >$@ || (rm -f $@ && exit 1)
dummy:
.PHONY: dummy
...@@ -92,14 +92,6 @@ static char *xstrdup( const char *str ) ...@@ -92,14 +92,6 @@ static char *xstrdup( const char *str )
return res; return res;
} }
/* check if a string ends in a given substring */
static inline int strendswith( const char* str, const char* end )
{
size_t len = strlen( str );
size_t tail = strlen( end );
return len >= tail && !strcmp( str + len - tail, end );
}
/* build a path from the specified dir and name */ /* build a path from the specified dir and name */
static char *build_path( const char *dir, const char *name ) static char *build_path( const char *dir, const char *name )
{ {
...@@ -348,6 +340,14 @@ static char *config_dir; ...@@ -348,6 +340,14 @@ static char *config_dir;
static char *server_dir; static char *server_dir;
static char *user_name; static char *user_name;
/* check if a string ends in a given substring */
static inline int strendswith( const char* str, const char* end )
{
size_t len = strlen( str );
size_t tail = strlen( end );
return len >= tail && !strcmp( str + len - tail, end );
}
/* remove all trailing slashes from a path name */ /* remove all trailing slashes from a path name */
static inline void remove_trailing_slashes( char *path ) static inline void remove_trailing_slashes( char *path )
{ {
...@@ -500,25 +500,16 @@ const char *wine_get_user_name_obsolete(void) ...@@ -500,25 +500,16 @@ const char *wine_get_user_name_obsolete(void)
return user_name; return user_name;
} }
__ASM_OBSOLETE(wine_get_build_dir);
__ASM_OBSOLETE(wine_get_config_dir);
__ASM_OBSOLETE(wine_get_data_dir);
__ASM_OBSOLETE(wine_get_server_dir);
__ASM_OBSOLETE(wine_get_user_name);
#endif /* __ASM_OBSOLETE */
/* return the standard version string */ /* return the standard version string */
const char *wine_get_version(void) const char *wine_get_version_obsolete(void)
{ {
return PACKAGE_VERSION; return PACKAGE_VERSION;
} }
/* return the build id string */ /* return the build id string */
const char *wine_get_build_id(void) const char *wine_get_build_id_obsolete(void)
{ {
extern const char wine_build[]; return PACKAGE_VERSION;
return wine_build;
} }
/* exec a binary using the preloader if requested; helper for wine_exec_wine_binary */ /* exec a binary using the preloader if requested; helper for wine_exec_wine_binary */
...@@ -563,7 +554,7 @@ static void preloader_exec( char **argv, int use_preloader ) ...@@ -563,7 +554,7 @@ static void preloader_exec( char **argv, int use_preloader )
} }
/* exec a wine internal binary (either the wine loader or the wine server) */ /* exec a wine internal binary (either the wine loader or the wine server) */
void wine_exec_wine_binary( const char *name, char **argv, const char *env_var ) void wine_exec_wine_binary_obsolete( const char *name, char **argv, const char *env_var )
{ {
const char *path, *pos, *ptr; const char *path, *pos, *ptr;
int use_preloader; int use_preloader;
...@@ -630,3 +621,14 @@ void wine_exec_wine_binary( const char *name, char **argv, const char *env_var ) ...@@ -630,3 +621,14 @@ void wine_exec_wine_binary( const char *name, char **argv, const char *env_var )
preloader_exec( argv, use_preloader ); preloader_exec( argv, use_preloader );
free( argv[0] ); free( argv[0] );
} }
__ASM_OBSOLETE(wine_get_build_dir);
__ASM_OBSOLETE(wine_get_build_id);
__ASM_OBSOLETE(wine_get_config_dir);
__ASM_OBSOLETE(wine_get_data_dir);
__ASM_OBSOLETE(wine_get_server_dir);
__ASM_OBSOLETE(wine_get_user_name);
__ASM_OBSOLETE(wine_get_version);
__ASM_OBSOLETE(wine_exec_wine_binary);
#endif /* __ASM_OBSOLETE */
...@@ -10,9 +10,6 @@ WINE_1.0 ...@@ -10,9 +10,6 @@ WINE_1.0
wine_casemap_lower; wine_casemap_lower;
wine_casemap_upper; wine_casemap_upper;
wine_dll_set_callback; wine_dll_set_callback;
wine_exec_wine_binary;
wine_get_build_id;
wine_get_version;
wine_init; wine_init;
wine_init_argv0_path; wine_init_argv0_path;
wine_mmap_add_reserved_area; wine_mmap_add_reserved_area;
...@@ -87,8 +84,10 @@ WINE_1.0 ...@@ -87,8 +84,10 @@ WINE_1.0
wine_dll_unload; wine_dll_unload;
wine_dlopen; wine_dlopen;
wine_dlsym; wine_dlsym;
wine_exec_wine_binary;
wine_fold_string; wine_fold_string;
wine_get_build_dir; wine_get_build_dir;
wine_get_build_id;
wine_get_config_dir; wine_get_config_dir;
wine_get_cs; wine_get_cs;
wine_get_data_dir; wine_get_data_dir;
...@@ -100,6 +99,7 @@ WINE_1.0 ...@@ -100,6 +99,7 @@ WINE_1.0
wine_get_sortkey; wine_get_sortkey;
wine_get_ss; wine_get_ss;
wine_get_user_name; wine_get_user_name;
wine_get_version;
wine_is_dbcs_leadbyte; wine_is_dbcs_leadbyte;
wine_ldt_alloc_entries; wine_ldt_alloc_entries;
wine_ldt_alloc_fs; wine_ldt_alloc_fs;
......
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