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
220f2ce9
Commit
220f2ce9
authored
Oct 30, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make all winecrt0 functions and variables hidden.
parent
49c46e9d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
13 deletions
+31
-13
crt0_private.h
dlls/winecrt0/crt0_private.h
+3
-3
delay_load.c
dlls/winecrt0/delay_load.c
+1
-1
dll_entry.c
dlls/winecrt0/dll_entry.c
+2
-2
dll_main.c
dlls/winecrt0/dll_main.c
+1
-1
drv_entry.c
dlls/winecrt0/drv_entry.c
+1
-1
exe_entry.c
dlls/winecrt0/exe_entry.c
+1
-1
exe_wentry.c
dlls/winecrt0/exe_wentry.c
+1
-1
init.c
dlls/winecrt0/init.c
+2
-2
stub.c
dlls/winecrt0/stub.c
+1
-1
winnt.h
include/winnt.h
+18
-0
No files found.
dlls/winecrt0/crt0_private.h
View file @
220f2ce9
...
...
@@ -25,8 +25,8 @@
static
inline
void
_init
(
int
argc
,
char
**
argv
,
char
**
envp
)
{
/* nothing */
}
static
inline
void
_fini
(
void
)
{
/* nothing */
}
#else
extern
void
_init
(
int
argc
,
char
**
argv
,
char
**
envp
)
;
extern
void
_fini
(
void
);
extern
void
_init
(
int
argc
,
char
**
argv
,
char
**
envp
)
DECLSPEC_HIDDEN
;
extern
void
_fini
(
void
)
DECLSPEC_HIDDEN
;
#endif
enum
init_state
...
...
@@ -36,6 +36,6 @@ enum init_state
CONSTRUCTORS_DONE
/* the constructors have been run (implies dll registered too) */
};
extern
enum
init_state
__wine_spec_init_state
;
extern
enum
init_state
__wine_spec_init_state
DECLSPEC_HIDDEN
;
#endif
/* __WINE_CRT0_PRIVATE_H__ */
dlls/winecrt0/delay_load.c
View file @
220f2ce9
...
...
@@ -38,7 +38,7 @@ extern struct ImgDelayDescr __wine_spec_delay_imports[];
extern
FARPROC
WINAPI
DelayLoadFailureHook
(
LPCSTR
name
,
LPCSTR
function
);
FARPROC
WINAPI
__wine_spec_delay_load
(
unsigned
int
id
)
FARPROC
WINAPI
DECLSPEC_HIDDEN
__wine_spec_delay_load
(
unsigned
int
id
)
{
struct
ImgDelayDescr
*
descr
=
__wine_spec_delay_imports
+
HIWORD
(
id
);
WORD
func
=
LOWORD
(
id
);
...
...
dlls/winecrt0/dll_entry.c
View file @
220f2ce9
...
...
@@ -24,9 +24,9 @@
#include "wine/library.h"
#include "crt0_private.h"
extern
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
);
extern
BOOL
WINAPI
D
ECLSPEC_HIDDEN
D
llMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
);
BOOL
WINAPI
__wine_spec_dll_entry
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
BOOL
WINAPI
DECLSPEC_HIDDEN
__wine_spec_dll_entry
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
{
static
BOOL
call_fini
;
BOOL
ret
;
...
...
dlls/winecrt0/dll_main.c
View file @
220f2ce9
...
...
@@ -22,7 +22,7 @@
#include "windef.h"
#include "winbase.h"
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
BOOL
WINAPI
D
ECLSPEC_HIDDEN
D
llMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
DisableThreadLibraryCalls
(
inst
);
return
TRUE
;
...
...
dlls/winecrt0/drv_entry.c
View file @
220f2ce9
...
...
@@ -27,7 +27,7 @@
struct
_DRIVER_OBJECT
;
extern
NTSTATUS
DriverEntry
(
struct
_DRIVER_OBJECT
*
obj
,
UNICODE_STRING
*
path
);
NTSTATUS
__wine_spec_drv_entry
(
struct
_DRIVER_OBJECT
*
obj
,
UNICODE_STRING
*
path
)
NTSTATUS
DECLSPEC_HIDDEN
__wine_spec_drv_entry
(
struct
_DRIVER_OBJECT
*
obj
,
UNICODE_STRING
*
path
)
{
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
...
...
dlls/winecrt0/exe_entry.c
View file @
220f2ce9
...
...
@@ -27,7 +27,7 @@
extern
int
main
(
int
argc
,
char
*
argv
[]
);
DWORD
WINAPI
__wine_spec_exe_entry
(
PEB
*
peb
)
DWORD
WINAPI
DECLSPEC_HIDDEN
__wine_spec_exe_entry
(
PEB
*
peb
)
{
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
DWORD
ret
;
...
...
dlls/winecrt0/exe_wentry.c
View file @
220f2ce9
...
...
@@ -27,7 +27,7 @@
extern
int
wmain
(
int
argc
,
WCHAR
*
argv
[]
);
DWORD
WINAPI
__wine_spec_exe_wentry
(
PEB
*
peb
)
DWORD
WINAPI
DECLSPEC_HIDDEN
__wine_spec_exe_wentry
(
PEB
*
peb
)
{
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
DWORD
ret
;
...
...
dlls/winecrt0/init.c
View file @
220f2ce9
...
...
@@ -29,13 +29,13 @@ enum init_state __wine_spec_init_state = NO_INIT_DONE;
extern
const
IMAGE_NT_HEADERS
__wine_spec_nt_header
;
extern
const
char
__wine_spec_file_name
[];
void
__wine_spec_init
(
void
)
void
DECLSPEC_HIDDEN
__wine_spec_init
(
void
)
{
__wine_spec_init_state
=
DLL_REGISTERED
;
__wine_dll_register
(
&
__wine_spec_nt_header
,
__wine_spec_file_name
);
}
void
__wine_spec_init_ctor
(
void
)
void
DECLSPEC_HIDDEN
__wine_spec_init_ctor
(
void
)
{
if
(
__wine_spec_init_state
==
NO_INIT_DONE
)
__wine_spec_init
();
__wine_spec_init_state
=
CONSTRUCTORS_DONE
;
...
...
dlls/winecrt0/stub.c
View file @
220f2ce9
...
...
@@ -23,7 +23,7 @@
#include "winbase.h"
#include "wine/exception.h"
void
__wine_spec_unimplemented_stub
(
const
char
*
module
,
const
char
*
function
)
void
DECLSPEC_HIDDEN
__wine_spec_unimplemented_stub
(
const
char
*
module
,
const
char
*
function
)
{
ULONG_PTR
args
[
2
];
...
...
include/winnt.h
View file @
220f2ce9
...
...
@@ -130,6 +130,24 @@
# endif
#endif
/* a couple of useful Wine extensions */
#ifdef _MSC_VER
# define DECLSPEC_EXPORT __declspec(dllexport)
#elif defined(__MINGW32__)
# define DECLSPEC_EXPORT __attribute__((dllexport))
#elif defined(__GNUC__) && (__GNUC__ > 2)
# define DECLSPEC_EXPORT __attribute__((visibility ("default")))
#else
# define DECLSPEC_EXPORT
#endif
#if defined(__GNUC__) && (__GNUC__ > 2)
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
#else
# define DECLSPEC_HIDDEN
#endif
/* Anonymous union/struct handling */
#ifndef NONAMELESSSTRUCT
...
...
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