Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
40cbe19e
Commit
40cbe19e
authored
Jun 12, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crtdll: Explicitly specify CDECL calling convention on exported functions.
parent
57939d8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
crtdll_main.c
dlls/crtdll/crtdll_main.c
+11
-11
No files found.
dlls/crtdll/crtdll_main.c
View file @
40cbe19e
...
...
@@ -33,8 +33,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
crtdll
);
/* from msvcrt */
extern
void
__getmainargs
(
int
*
argc
,
char
***
argv
,
char
***
envp
,
int
expand_wildcards
,
int
*
new_mode
);
extern
void
CDECL
__getmainargs
(
int
*
argc
,
char
***
argv
,
char
***
envp
,
int
expand_wildcards
,
int
*
new_mode
);
/* The following data items are not exported from msvcrt */
unsigned
int
CRTDLL__basemajor_dll
;
...
...
@@ -110,7 +110,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
/*********************************************************************
* __GetMainArgs (CRTDLL.@)
*/
void
__GetMainArgs
(
int
*
argc
,
char
***
argv
,
char
***
envp
,
int
expand_wildcards
)
void
CDECL
__GetMainArgs
(
int
*
argc
,
char
***
argv
,
char
***
envp
,
int
expand_wildcards
)
{
int
new_mode
=
0
;
__getmainargs
(
argc
,
argv
,
envp
,
expand_wildcards
,
&
new_mode
);
...
...
@@ -120,7 +120,7 @@ void __GetMainArgs( int *argc, char ***argv, char ***envp, int expand_wildcards
/*********************************************************************
* _fstat (CRTDLL.@)
*/
int
CRTDLL__fstat
(
int
fd
,
struct
crtdll_stat
*
buf
)
int
C
DECL
C
RTDLL__fstat
(
int
fd
,
struct
crtdll_stat
*
buf
)
{
extern
int
_fstat
(
int
,
struct
_stat
*
);
struct
_stat
st
;
...
...
@@ -134,7 +134,7 @@ int CRTDLL__fstat(int fd, struct crtdll_stat* buf)
/*********************************************************************
* _stat (CRTDLL.@)
*/
int
CRTDLL__stat
(
const
char
*
path
,
struct
crtdll_stat
*
buf
)
int
C
DECL
C
RTDLL__stat
(
const
char
*
path
,
struct
crtdll_stat
*
buf
)
{
extern
int
_stat
(
const
char
*
,
struct
_stat
*
);
struct
_stat
st
;
...
...
@@ -148,7 +148,7 @@ int CRTDLL__stat(const char* path, struct crtdll_stat * buf)
/*********************************************************************
* _strdec (CRTDLL.@)
*/
char
*
_strdec
(
const
char
*
str1
,
const
char
*
str2
)
char
*
CDECL
_strdec
(
const
char
*
str1
,
const
char
*
str2
)
{
return
(
char
*
)(
str2
-
1
);
}
...
...
@@ -157,7 +157,7 @@ char *_strdec(const char *str1, const char *str2)
/*********************************************************************
* _strinc (CRTDLL.@)
*/
char
*
_strinc
(
const
char
*
str
)
char
*
CDECL
_strinc
(
const
char
*
str
)
{
return
(
char
*
)(
str
+
1
);
}
...
...
@@ -166,7 +166,7 @@ char *_strinc(const char *str)
/*********************************************************************
* _strncnt (CRTDLL.@)
*/
size_t
_strncnt
(
const
char
*
str
,
size_t
maxlen
)
size_t
CDECL
_strncnt
(
const
char
*
str
,
size_t
maxlen
)
{
size_t
len
=
strlen
(
str
);
return
(
len
>
maxlen
)
?
maxlen
:
len
;
...
...
@@ -176,7 +176,7 @@ size_t _strncnt(const char *str, size_t maxlen)
/*********************************************************************
* _strnextc (CRTDLL.@)
*/
unsigned
int
_strnextc
(
const
char
*
str
)
unsigned
int
CDECL
_strnextc
(
const
char
*
str
)
{
return
(
unsigned
int
)
str
[
0
];
}
...
...
@@ -185,7 +185,7 @@ unsigned int _strnextc(const char *str)
/*********************************************************************
* _strninc (CRTDLL.@)
*/
char
*
_strninc
(
const
char
*
str
,
size_t
len
)
char
*
CDECL
_strninc
(
const
char
*
str
,
size_t
len
)
{
return
(
char
*
)(
str
+
len
);
}
...
...
@@ -194,7 +194,7 @@ char *_strninc(const char *str, size_t len)
/*********************************************************************
* _strspnp (CRTDLL.@)
*/
char
*
_strspnp
(
const
char
*
str1
,
const
char
*
str2
)
char
*
CDECL
_strspnp
(
const
char
*
str1
,
const
char
*
str2
)
{
str1
+=
strspn
(
str1
,
str2
);
return
*
str1
?
(
char
*
)
str1
:
NULL
;
...
...
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