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
768160e9
Commit
768160e9
authored
Dec 16, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make all exported wine functions CDECL.
parent
d6bc9fc9
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
30 additions
and
30 deletions
+30
-30
service.c
dlls/advapi32/service.c
+1
-1
kernel_main.c
dlls/kernel32/kernel_main.c
+1
-1
locale.c
dlls/kernel32/locale.c
+2
-2
process.c
dlls/kernel32/process.c
+1
-1
directory.c
dlls/ntdll/directory.c
+2
-2
loader.c
dlls/ntdll/loader.c
+1
-1
path.c
dlls/ntdll/path.c
+1
-1
process.c
dlls/ntdll/process.c
+1
-1
rtlstr.c
dlls/ntdll/rtlstr.c
+2
-2
server.c
dlls/ntdll/server.c
+4
-4
signal_i386.c
dlls/ntdll/signal_i386.c
+1
-1
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+1
-1
signal_sparc.c
dlls/ntdll/signal_sparc.c
+1
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+1
-1
server.h
include/wine/server.h
+4
-4
winternl.h
include/winternl.h
+3
-3
rpcss_main.c
programs/rpcss/rpcss_main.c
+1
-1
rpc.c
programs/services/rpc.c
+1
-1
wineboot.c
programs/wineboot/wineboot.c
+1
-1
No files found.
dlls/advapi32/service.c
View file @
768160e9
...
...
@@ -102,7 +102,7 @@ static service_data **services;
static
unsigned
int
nb_services
;
static
HANDLE
service_event
;
extern
HANDLE
__wine_make_process_system
(
void
);
extern
HANDLE
CDECL
__wine_make_process_system
(
void
);
/******************************************************************************
* SC_HANDLEs
...
...
dlls/kernel32/kernel_main.c
View file @
768160e9
...
...
@@ -43,7 +43,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
process
);
extern
int
__wine_set_signal_handler
(
unsigned
,
int
(
*
)(
unsigned
));
extern
int
CDECL
__wine_set_signal_handler
(
unsigned
,
int
(
*
)(
unsigned
));
static
ULONGLONG
server_start_time
;
...
...
dlls/kernel32/locale.c
View file @
768160e9
...
...
@@ -2857,8 +2857,8 @@ int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
*/
void
LOCALE_Init
(
void
)
{
extern
void
__wine_init_codepages
(
const
union
cptable
*
ansi_cp
,
const
union
cptable
*
oem_cp
,
const
union
cptable
*
unix_cp
);
extern
void
CDECL
__wine_init_codepages
(
const
union
cptable
*
ansi_cp
,
const
union
cptable
*
oem_cp
,
const
union
cptable
*
unix_cp
);
UINT
ansi_cp
=
1252
,
oem_cp
=
437
,
mac_cp
=
10000
,
unix_cp
;
...
...
dlls/kernel32/process.c
View file @
768160e9
...
...
@@ -786,7 +786,7 @@ done:
*/
static
void
init_windows_dirs
(
void
)
{
extern
void
__wine_init_windows_dir
(
const
WCHAR
*
windir
,
const
WCHAR
*
sysdir
);
extern
void
CDECL
__wine_init_windows_dir
(
const
WCHAR
*
windir
,
const
WCHAR
*
sysdir
);
static
const
WCHAR
windirW
[]
=
{
'w'
,
'i'
,
'n'
,
'd'
,
'i'
,
'r'
,
0
};
static
const
WCHAR
winsysdirW
[]
=
{
'w'
,
'i'
,
'n'
,
's'
,
'y'
,
's'
,
'd'
,
'i'
,
'r'
,
0
};
...
...
dlls/ntdll/directory.c
View file @
768160e9
...
...
@@ -1919,8 +1919,8 @@ static inline int get_dos_prefix_len( const UNICODE_STRING *name )
* element doesn't have to exist; in that case STATUS_NO_SUCH_FILE is
* returned, but the unix name is still filled in properly.
*/
NTSTATUS
wine_nt_to_unix_file_name
(
const
UNICODE_STRING
*
nameW
,
ANSI_STRING
*
unix_name_ret
,
UINT
disposition
,
BOOLEAN
check_case
)
NTSTATUS
CDECL
wine_nt_to_unix_file_name
(
const
UNICODE_STRING
*
nameW
,
ANSI_STRING
*
unix_name_ret
,
UINT
disposition
,
BOOLEAN
check_case
)
{
static
const
WCHAR
unixW
[]
=
{
'u'
,
'n'
,
'i'
,
'x'
};
static
const
WCHAR
invalid_charsW
[]
=
{
INVALID_NT_CHARS
,
0
};
...
...
dlls/ntdll/loader.c
View file @
768160e9
...
...
@@ -2612,7 +2612,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
*
* Windows and system dir initialization once kernel32 has been loaded.
*/
void
__wine_init_windows_dir
(
const
WCHAR
*
windir
,
const
WCHAR
*
sysdir
)
void
CDECL
__wine_init_windows_dir
(
const
WCHAR
*
windir
,
const
WCHAR
*
sysdir
)
{
PLIST_ENTRY
mark
,
entry
;
LPWSTR
buffer
,
p
;
...
...
dlls/ntdll/path.c
View file @
768160e9
...
...
@@ -1015,7 +1015,7 @@ NTSTATUS WINAPI RtlSetCurrentDirectory_U(const UNICODE_STRING* dir)
/******************************************************************
* wine_unix_to_nt_file_name (NTDLL.@) Not a Windows API
*/
NTSTATUS
wine_unix_to_nt_file_name
(
const
ANSI_STRING
*
name
,
UNICODE_STRING
*
nt
)
NTSTATUS
CDECL
wine_unix_to_nt_file_name
(
const
ANSI_STRING
*
name
,
UNICODE_STRING
*
nt
)
{
static
const
WCHAR
prefixW
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'A'
,
':'
,
'\\'
};
unsigned
int
lenW
,
lenA
=
name
->
Length
;
...
...
dlls/ntdll/process.c
View file @
768160e9
...
...
@@ -77,7 +77,7 @@ PEB * WINAPI RtlGetCurrentPeb(void)
* Mark the current process as a system process.
* Returns the event that is signaled when all non-system processes have exited.
*/
HANDLE
__wine_make_process_system
(
void
)
HANDLE
CDECL
__wine_make_process_system
(
void
)
{
HANDLE
ret
=
0
;
SERVER_START_REQ
(
make_process_system
)
...
...
dlls/ntdll/rtlstr.c
View file @
768160e9
...
...
@@ -54,8 +54,8 @@ static const union cptable* unix_table; /* NULL if UTF8 */
*
* Set the code page once kernel32 is loaded. Should be done differently.
*/
void
__wine_init_codepages
(
const
union
cptable
*
ansi
,
const
union
cptable
*
oem
,
const
union
cptable
*
ucp
)
void
CDECL
__wine_init_codepages
(
const
union
cptable
*
ansi
,
const
union
cptable
*
oem
,
const
union
cptable
*
ucp
)
{
ansi_table
=
ansi
;
oem_table
=
oem
;
...
...
dlls/ntdll/server.c
View file @
768160e9
...
...
@@ -358,7 +358,7 @@ void server_leave_uninterrupted_section( RTL_CRITICAL_SECTION *cs, sigset_t *sig
* RETURNS
* nothing
*/
void
wine_server_send_fd
(
int
fd
)
void
CDECL
wine_server_send_fd
(
int
fd
)
{
#ifndef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS
struct
cmsg_fd
cmsg
;
...
...
@@ -627,7 +627,7 @@ done:
* RETURNS
* NTSTATUS code
*/
int
wine_server_fd_to_handle
(
int
fd
,
unsigned
int
access
,
unsigned
int
attributes
,
HANDLE
*
handle
)
int
CDECL
wine_server_fd_to_handle
(
int
fd
,
unsigned
int
access
,
unsigned
int
attributes
,
HANDLE
*
handle
)
{
int
ret
;
...
...
@@ -660,7 +660,7 @@ int wine_server_fd_to_handle( int fd, unsigned int access, unsigned int attribut
* RETURNS
* NTSTATUS code
*/
int
wine_server_handle_to_fd
(
HANDLE
handle
,
unsigned
int
access
,
int
*
unix_fd
,
int
CDECL
wine_server_handle_to_fd
(
HANDLE
handle
,
unsigned
int
access
,
int
*
unix_fd
,
unsigned
int
*
options
)
{
int
needs_close
,
ret
=
server_get_unix_fd
(
handle
,
access
,
unix_fd
,
&
needs_close
,
NULL
,
options
);
...
...
@@ -685,7 +685,7 @@ int wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd,
* RETURNS
* nothing
*/
void
wine_server_release_fd
(
HANDLE
handle
,
int
unix_fd
)
void
CDECL
wine_server_release_fd
(
HANDLE
handle
,
int
unix_fd
)
{
close
(
unix_fd
);
}
...
...
dlls/ntdll/signal_i386.c
View file @
768160e9
...
...
@@ -1560,7 +1560,7 @@ size_t get_signal_stack_total_size(void)
/***********************************************************************
* __wine_set_signal_handler (NTDLL.@)
*/
int
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
int
CDECL
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
{
if
(
sig
>=
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
]))
return
-
1
;
if
(
handlers
[
sig
]
!=
NULL
)
return
-
2
;
...
...
dlls/ntdll/signal_powerpc.c
View file @
768160e9
...
...
@@ -635,7 +635,7 @@ static int set_handler( int sig, void (*func)() )
/***********************************************************************
* __wine_set_signal_handler (NTDLL.@)
*/
int
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
int
CDECL
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
{
if
(
sig
>
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
]))
return
-
1
;
if
(
handlers
[
sig
]
!=
NULL
)
return
-
2
;
...
...
dlls/ntdll/signal_sparc.c
View file @
768160e9
...
...
@@ -448,7 +448,7 @@ static int set_handler( int sig, void (*func)() )
/***********************************************************************
* __wine_set_signal_handler (NTDLL.@)
*/
int
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
int
CDECL
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
{
if
(
sig
>
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
]))
return
-
1
;
if
(
handlers
[
sig
]
!=
NULL
)
return
-
2
;
...
...
dlls/ntdll/signal_x86_64.c
View file @
768160e9
...
...
@@ -474,7 +474,7 @@ static int set_handler( int sig, void (*func)() )
/***********************************************************************
* __wine_set_signal_handler (NTDLL.@)
*/
int
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
int
CDECL
__wine_set_signal_handler
(
unsigned
int
sig
,
wine_signal_handler
wsh
)
{
if
(
sig
>
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
]))
return
-
1
;
if
(
handlers
[
sig
]
!=
NULL
)
return
-
2
;
...
...
include/wine/server.h
View file @
768160e9
...
...
@@ -50,10 +50,10 @@ struct __server_request_info
};
extern
unsigned
int
wine_server_call
(
void
*
req_ptr
);
extern
void
wine_server_send_fd
(
int
fd
);
extern
int
wine_server_fd_to_handle
(
int
fd
,
unsigned
int
access
,
unsigned
int
attributes
,
HANDLE
*
handle
);
extern
int
wine_server_handle_to_fd
(
HANDLE
handle
,
unsigned
int
access
,
int
*
unix_fd
,
unsigned
int
*
options
);
extern
void
wine_server_release_fd
(
HANDLE
handle
,
int
unix_fd
);
extern
void
CDECL
wine_server_send_fd
(
int
fd
);
extern
int
CDECL
wine_server_fd_to_handle
(
int
fd
,
unsigned
int
access
,
unsigned
int
attributes
,
HANDLE
*
handle
);
extern
int
CDECL
wine_server_handle_to_fd
(
HANDLE
handle
,
unsigned
int
access
,
int
*
unix_fd
,
unsigned
int
*
options
);
extern
void
CDECL
wine_server_release_fd
(
HANDLE
handle
,
int
unix_fd
);
/* do a server call and set the last error code */
static
inline
unsigned
int
wine_server_call_err
(
void
*
req_ptr
)
...
...
include/winternl.h
View file @
768160e9
...
...
@@ -2505,9 +2505,9 @@ NTSYSAPI NTSTATUS WINAPI vDbgPrintExWithPrefix(LPCSTR,ULONG,ULONG,LPCSTR,va_lis
/* Wine internal functions */
NTSYSAPI
NTSTATUS
wine_nt_to_unix_file_name
(
const
UNICODE_STRING
*
nameW
,
ANSI_STRING
*
unix_name_ret
,
UINT
disposition
,
BOOLEAN
check_case
);
NTSYSAPI
NTSTATUS
wine_unix_to_nt_file_name
(
const
ANSI_STRING
*
name
,
UNICODE_STRING
*
nt
);
NTSYSAPI
NTSTATUS
CDECL
wine_nt_to_unix_file_name
(
const
UNICODE_STRING
*
nameW
,
ANSI_STRING
*
unix_name_ret
,
UINT
disposition
,
BOOLEAN
check_case
);
NTSYSAPI
NTSTATUS
CDECL
wine_unix_to_nt_file_name
(
const
ANSI_STRING
*
name
,
UNICODE_STRING
*
nt
);
/***********************************************************************
...
...
programs/rpcss/rpcss_main.c
View file @
768160e9
...
...
@@ -62,7 +62,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
static
HANDLE
exit_event
;
extern
HANDLE
__wine_make_process_system
(
void
);
extern
HANDLE
CDECL
__wine_make_process_system
(
void
);
static
BOOL
RPCSS_Initialize
(
void
)
{
...
...
programs/services/rpc.c
View file @
768160e9
...
...
@@ -34,7 +34,7 @@
#include "services.h"
#include "svcctl.h"
extern
HANDLE
__wine_make_process_system
(
void
);
extern
HANDLE
CDECL
__wine_make_process_system
(
void
);
WINE_DEFAULT_DEBUG_CHANNEL
(
service
);
...
...
programs/wineboot/wineboot.c
View file @
768160e9
...
...
@@ -815,7 +815,7 @@ static const struct option long_options[] =
int
main
(
int
argc
,
char
*
argv
[]
)
{
extern
HANDLE
__wine_make_process_system
(
void
);
extern
HANDLE
CDECL
__wine_make_process_system
(
void
);
static
const
WCHAR
wineboot_eventW
[]
=
{
'_'
,
'_'
,
'w'
,
'i'
,
'n'
,
'e'
,
'b'
,
'o'
,
'o'
,
't'
,
'_'
,
'e'
,
'v'
,
'e'
,
'n'
,
't'
,
0
};
/* First, set the current directory to SystemRoot */
...
...
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