Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
595f2846
Commit
595f2846
authored
Sep 08, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Make the remaining configuration functions obsolete.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9a08dbc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
32 deletions
+26
-32
Makefile.in
libs/wine/Makefile.in
+0
-8
config.c
libs/wine/config.c
+23
-21
wine.map
libs/wine/wine.map
+3
-3
No files found.
libs/wine/Makefile.in
View file @
595f2846
...
@@ -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
libs/wine/config.c
View file @
595f2846
...
@@ -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 */
libs/wine/wine.map
View file @
595f2846
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment