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
e29345c3
Commit
e29345c3
authored
Oct 01, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Oct 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a GNU C implementation of some of the DECLSPEC_ macros and used
them wherever possible.
parent
e7c82c27
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
21 deletions
+29
-21
options.h
include/options.h
+1
-1
thread.h
include/thread.h
+3
-3
winbase.h
include/winbase.h
+2
-2
server.h
include/wine/server.h
+2
-2
winnt.h
include/winnt.h
+16
-9
options.c
misc/options.c
+1
-1
main.c
miscemu/main.c
+3
-2
sysdeps.c
scheduler/sysdeps.c
+1
-1
No files found.
include/options.h
View file @
e29345c3
...
...
@@ -26,7 +26,7 @@
extern
const
char
*
argv0
;
extern
const
char
*
full_argv0
;
extern
void
OPTIONS_Usage
(
void
)
WINE_NORETURN
;
extern
void
DECLSPEC_NORETURN
OPTIONS_Usage
(
void
)
;
extern
void
OPTIONS_ParseOptions
(
char
*
argv
[]
);
#endif
/* __WINE_OPTIONS_H */
include/thread.h
View file @
e29345c3
...
...
@@ -145,9 +145,9 @@ extern TEB *THREAD_IdToTEB( DWORD id );
/* scheduler/sysdeps.c */
extern
int
SYSDEPS_SpawnThread
(
TEB
*
teb
);
extern
void
SYSDEPS_SetCurThread
(
TEB
*
teb
);
extern
void
SYSDEPS_ExitThread
(
int
status
)
WINE_NORETURN
;
extern
void
SYSDEPS_AbortThread
(
int
status
)
WINE_NORETURN
;
extern
void
SYSDEPS_SwitchToThreadStack
(
void
(
*
func
)(
void
)
)
WINE_NORETURN
;
extern
void
DECLSPEC_NORETURN
SYSDEPS_ExitThread
(
int
status
)
;
extern
void
DECLSPEC_NORETURN
SYSDEPS_AbortThread
(
int
status
)
;
extern
void
DECLSPEC_NORETURN
SYSDEPS_SwitchToThreadStack
(
void
(
*
func
)(
void
)
)
;
/* signal handling */
extern
BOOL
SIGNAL_Init
(
void
);
...
...
include/winbase.h
View file @
e29345c3
...
...
@@ -1233,8 +1233,8 @@ BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
BOOL
WINAPI
EqualSid
(
PSID
,
PSID
);
BOOL
WINAPI
EqualPrefixSid
(
PSID
,
PSID
);
DWORD
WINAPI
EraseTape
(
HANDLE
,
DWORD
,
BOOL
);
VOID
WINAPI
ExitProcess
(
DWORD
)
WINE_NORETURN
;
VOID
WINAPI
ExitThread
(
DWORD
)
WINE_NORETURN
;
VOID
DECLSPEC_NORETURN
WINAPI
ExitProcess
(
DWORD
)
;
VOID
DECLSPEC_NORETURN
WINAPI
ExitThread
(
DWORD
)
;
DWORD
WINAPI
ExpandEnvironmentStringsA
(
LPCSTR
,
LPSTR
,
DWORD
);
DWORD
WINAPI
ExpandEnvironmentStringsW
(
LPCWSTR
,
LPWSTR
,
DWORD
);
#define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
...
...
include/wine/server.h
View file @
e29345c3
...
...
@@ -110,8 +110,8 @@ inline static void wine_server_set_reply( void *req_ptr, void *ptr, unsigned int
/* non-exported functions */
extern
void
server_protocol_error
(
const
char
*
err
,
...
)
WINE_NORETURN
;
extern
void
server_protocol_perror
(
const
char
*
err
)
WINE_NORETURN
;
extern
void
DECLSPEC_NORETURN
server_protocol_error
(
const
char
*
err
,
...
)
;
extern
void
DECLSPEC_NORETURN
server_protocol_perror
(
const
char
*
err
)
;
extern
void
CLIENT_InitServer
(
void
);
extern
void
CLIENT_InitThread
(
void
);
extern
void
CLIENT_BootDone
(
int
debug_level
);
...
...
include/winnt.h
View file @
e29345c3
...
...
@@ -130,11 +130,9 @@
#ifdef __GNUC__
#define WINE_PACKED __attribute__((packed))
#define WINE_UNUSED __attribute__((unused))
#define WINE_NORETURN __attribute__((noreturn))
#else
#define WINE_PACKED
/* nothing */
#define WINE_UNUSED
/* nothing */
#define WINE_NORETURN
/* nothing */
#endif
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_IA64) || defined(_M_AMD64)) && !defined(MIDL_PASS)
...
...
@@ -146,6 +144,8 @@
#ifndef DECLSPEC_NORETURN
# if (_MSVC_VER >= 1200) && !defined(MIDL_PASS)
# define DECLSPEC_NORETURN __declspec(noreturn)
# elif defined(__GNUC__)
# define DECLSPEC_NORETURN __attribute__((noreturn))
# else
# define DECLSPEC_NORETURN
# endif
...
...
@@ -153,7 +153,9 @@
#ifndef DECLSPEC_ALIGN
# if (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_ALIGN(x) __declspec(align(x))
# define DECLSPEC_ALIGN(x) __declspec(align(x))
# elif defined(__GNUC__)
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
# else
# define DECLSPEC_ALIGN(x)
# endif
...
...
@@ -165,7 +167,7 @@
#ifndef DECLSPEC_UUID
# if (_MSC_VER >= 1100) && defined (__cplusplus)
# define DECLSPEC_UUID(x)
__declspec(uuid(x))
# define DECLSPEC_UUID(x) __declspec(uuid(x))
# else
# define DECLSPEC_UUID(x)
# endif
...
...
@@ -173,7 +175,7 @@
#ifndef DECLSPEC_NOVTABLE
# if (_MSC_VER >= 1100) && defined(__cplusplus)
# define DECLSPEC_NOVTABLE
__declspec(novtable)
# define DECLSPEC_NOVTABLE __declspec(novtable)
# else
# define DECLSPEC_NOVTABLE
# endif
...
...
@@ -181,7 +183,7 @@
#ifndef DECLSPEC_SELECTANY
#if (_MSC_VER >= 1100)
#define DECLSPEC_SELECTANY
__declspec(selectany)
#define DECLSPEC_SELECTANY __declspec(selectany)
#else
#define DECLSPEC_SELECTANY
#endif
...
...
@@ -197,7 +199,7 @@
#ifndef DECLSPEC_ADDRSAFE
# if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
# define DECLSPEC_ADDRSAFE
__declspec(address_safe)
# define DECLSPEC_ADDRSAFE __declspec(address_safe)
# else
# define DECLSPEC_ADDRSAFE
# endif
...
...
@@ -206,14 +208,19 @@
#ifndef FORCEINLINE
# if (_MSC_VER >= 1200)
# define FORCEINLINE __forceinline
# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2)))
# define FORCEINLINE __attribute__((always_inline))
# else
# define FORCEINLINE
__
inline
# define FORCEINLINE inline
# endif
#endif
#ifndef DECLSPEC_DEPRECATED
# if (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_DEPRECATED __declspec(deprecated)
# define DECLSPEC_DEPRECATED __declspec(deprecated)
# define DEPRECATE_SUPPORTED
# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2)))
# define DECLSPEC_DEPRECATED __attribute__((deprecated))
# define DEPRECATE_SUPPORTED
# else
# define DECLSPEC_DEPRECATED
...
...
misc/options.c
View file @
e29345c3
...
...
@@ -45,7 +45,7 @@ const char *full_argv0; /* the full path of argv[0] (if known) */
static
char
*
inherit_str
;
/* options to pass to child processes */
static
void
out_of_memory
(
void
)
WINE_NORETURN
;
static
void
DECLSPEC_NORETURN
out_of_memory
(
void
)
;
static
void
out_of_memory
(
void
)
{
MESSAGE
(
"Virtual memory exhausted
\n
"
);
...
...
miscemu/main.c
View file @
e29345c3
...
...
@@ -35,8 +35,9 @@ static BOOL (WINAPI *pGetMessageA)(LPMSG,HWND,UINT,UINT);
static
BOOL
(
WINAPI
*
pTranslateMessage
)(
const
MSG
*
);
static
LONG
(
WINAPI
*
pDispatchMessageA
)(
const
MSG
*
);
extern
void
PROCESS_InitWine
(
int
argc
,
char
*
argv
[],
LPSTR
win16_exe_name
,
HANDLE
*
win16_exe_file
)
WINE_NORETURN
;
extern
void
DECLSPEC_NORETURN
PROCESS_InitWine
(
int
argc
,
char
*
argv
[],
LPSTR
win16_exe_name
,
HANDLE
*
win16_exe_file
);
extern
HINSTANCE16
NE_StartMain
(
LPCSTR
name
,
HANDLE
file
);
/***********************************************************************
...
...
scheduler/sysdeps.c
View file @
e29345c3
...
...
@@ -233,7 +233,7 @@ int SYSDEPS_SpawnThread( TEB *teb )
/***********************************************************************
* SYSDEPS_CallOnStack
*/
void
SYSDEPS_CallOnStack
(
void
(
*
func
)(
LPVOID
),
LPVOID
arg
)
WINE_NORETURN
;
void
DECLSPEC_NORETURN
SYSDEPS_CallOnStack
(
void
(
*
func
)(
LPVOID
),
LPVOID
arg
)
;
#ifdef __i386__
#ifdef __GNUC__
__ASM_GLOBAL_FUNC
(
SYSDEPS_CallOnStack
,
...
...
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