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
503b338e
Commit
503b338e
authored
Mar 17, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Replace inline static with static inline.
parent
a2e7c325
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
20 deletions
+20
-20
computername.c
dlls/kernel32/computername.c
+1
-1
except.c
dlls/kernel32/except.c
+2
-2
heap.c
dlls/kernel32/heap.c
+1
-1
instr.c
dlls/kernel32/instr.c
+4
-4
locale.c
dlls/kernel32/locale.c
+2
-2
ne_module.c
dlls/kernel32/ne_module.c
+1
-1
path.c
dlls/kernel32/path.c
+2
-2
process.c
dlls/kernel32/process.c
+2
-2
relay16.c
dlls/kernel32/relay16.c
+2
-2
selector.c
dlls/kernel32/selector.c
+1
-1
sync.c
dlls/kernel32/sync.c
+1
-1
thunk.c
dlls/kernel32/thunk.c
+1
-1
No files found.
dlls/kernel32/computername.c
View file @
503b338e
...
...
@@ -180,7 +180,7 @@ static BOOL dns_domainname ( char *name, int *size )
/***********************************************************************
* _init_attr (INTERNAL)
*/
inline
static
void
_init_attr
(
OBJECT_ATTRIBUTES
*
attr
,
UNICODE_STRING
*
name
)
static
inline
void
_init_attr
(
OBJECT_ATTRIBUTES
*
attr
,
UNICODE_STRING
*
name
)
{
attr
->
Length
=
sizeof
(
OBJECT_ATTRIBUTES
);
attr
->
RootDirectory
=
0
;
...
...
dlls/kernel32/except.c
View file @
503b338e
...
...
@@ -393,7 +393,7 @@ static int start_debugger_atomic(PEXCEPTION_POINTERS epointers)
* If yes, we unprotect the resources to let broken apps continue
* (Windows does this too).
*/
inline
static
BOOL
check_resource_write
(
void
*
addr
)
static
inline
BOOL
check_resource_write
(
void
*
addr
)
{
void
*
rsrc
;
DWORD
size
;
...
...
@@ -416,7 +416,7 @@ inline static BOOL check_resource_write( void *addr )
*
* Check for executing a protected area.
*/
inline
static
BOOL
check_no_exec
(
void
*
addr
)
static
inline
BOOL
check_no_exec
(
void
*
addr
)
{
MEMORY_BASIC_INFORMATION
info
;
...
...
dlls/kernel32/heap.c
View file @
503b338e
...
...
@@ -78,7 +78,7 @@ static HANDLE systemHeap; /* globally shared heap */
*
* Create the system heap.
*/
inline
static
HANDLE
HEAP_CreateSystemHeap
(
void
)
static
inline
HANDLE
HEAP_CreateSystemHeap
(
void
)
{
int
created
;
void
*
base
;
...
...
dlls/kernel32/instr.c
View file @
503b338e
...
...
@@ -45,7 +45,7 @@ WINE_DECLARE_DEBUG_CHANNEL(io);
#define ADD_LOWORD(dw,val) ((dw) = ((dw) & 0xffff0000) | LOWORD((DWORD)(dw)+(val)))
#define ISV86(context) ((context)->EFlags & 0x00020000)
inline
static
void
add_stack
(
CONTEXT86
*
context
,
int
offset
)
static
inline
void
add_stack
(
CONTEXT86
*
context
,
int
offset
)
{
if
(
ISV86
(
context
)
||
!
IS_SELECTOR_32BIT
(
context
->
SegSs
))
ADD_LOWORD
(
context
->
Esp
,
offset
);
...
...
@@ -53,7 +53,7 @@ inline static void add_stack( CONTEXT86 *context, int offset )
context
->
Esp
+=
offset
;
}
inline
static
void
*
make_ptr
(
CONTEXT86
*
context
,
DWORD
seg
,
DWORD
off
,
int
long_addr
)
static
inline
void
*
make_ptr
(
CONTEXT86
*
context
,
DWORD
seg
,
DWORD
off
,
int
long_addr
)
{
if
(
ISV86
(
context
))
return
(
void
*
)((
seg
<<
4
)
+
LOWORD
(
off
));
if
(
wine_ldt_is_system
(
seg
))
return
(
void
*
)
off
;
...
...
@@ -61,7 +61,7 @@ inline static void *make_ptr( CONTEXT86 *context, DWORD seg, DWORD off, int long
return
(
char
*
)
MapSL
(
MAKESEGPTR
(
seg
,
0
)
)
+
off
;
}
inline
static
void
*
get_stack
(
CONTEXT86
*
context
)
static
inline
void
*
get_stack
(
CONTEXT86
*
context
)
{
if
(
ISV86
(
context
))
return
(
void
*
)((
context
->
SegSs
<<
4
)
+
LOWORD
(
context
->
Esp
));
return
wine_ldt_get_ptr
(
context
->
SegSs
,
context
->
Esp
);
...
...
@@ -77,7 +77,7 @@ struct idtr
static
LDT_ENTRY
idt
[
256
];
inline
static
struct
idtr
get_idtr
(
void
)
static
inline
struct
idtr
get_idtr
(
void
)
{
struct
idtr
ret
;
#if defined(__i386__) && defined(__GNUC__)
...
...
dlls/kernel32/locale.c
View file @
503b338e
...
...
@@ -173,7 +173,7 @@ static inline void strcpynAtoW( WCHAR *dst, const char *src, size_t n )
*
* Retrieve the ANSI codepage for a given locale.
*/
inline
static
UINT
get_lcid_codepage
(
LCID
lcid
)
static
inline
UINT
get_lcid_codepage
(
LCID
lcid
)
{
UINT
ret
;
if
(
!
GetLocaleInfoW
(
lcid
,
LOCALE_IDEFAULTANSICODEPAGE
|
LOCALE_RETURN_NUMBER
,
(
WCHAR
*
)
&
ret
,
...
...
@@ -563,7 +563,7 @@ static LCID convert_default_lcid( LCID lcid, LCTYPE lctype )
*
* Create the Control Panel\\International registry key.
*/
inline
static
HANDLE
create_registry_key
(
void
)
static
inline
HANDLE
create_registry_key
(
void
)
{
static
const
WCHAR
intlW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
' '
,
'P'
,
'a'
,
'n'
,
'e'
,
'l'
,
'\\'
,
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
'a'
,
'l'
,
0
};
...
...
dlls/kernel32/ne_module.c
View file @
503b338e
...
...
@@ -91,7 +91,7 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name );
/* patch all the flat cs references of the code segment if necessary */
inline
static
void
patch_code_segment
(
NE_MODULE
*
pModule
)
static
inline
void
patch_code_segment
(
NE_MODULE
*
pModule
)
{
#ifdef __i386__
int
i
;
...
...
dlls/kernel32/path.c
View file @
503b338e
...
...
@@ -47,7 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(file);
/* check if a file name is for an executable file (.exe or .com) */
inline
static
BOOL
is_executable
(
const
WCHAR
*
name
)
static
inline
BOOL
is_executable
(
const
WCHAR
*
name
)
{
static
const
WCHAR
exeW
[]
=
{
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
comW
[]
=
{
'.'
,
'c'
,
'o'
,
'm'
,
0
};
...
...
@@ -708,7 +708,7 @@ UINT WINAPI GetTempFileNameW( LPCWSTR path, LPCWSTR prefix, UINT unique, LPWSTR
* Check if the file name contains a path; helper for SearchPathW.
* A relative path is not considered a path unless it starts with ./ or ../
*/
inline
static
BOOL
contains_pathW
(
LPCWSTR
name
)
static
inline
BOOL
contains_pathW
(
LPCWSTR
name
)
{
if
(
RtlDetermineDosPathNameType_U
(
name
)
!=
RELATIVE_PATH
)
return
TRUE
;
if
(
name
[
0
]
!=
'.'
)
return
FALSE
;
...
...
dlls/kernel32/process.c
View file @
503b338e
...
...
@@ -102,7 +102,7 @@ extern void SHELL_LoadRegistry(void);
/***********************************************************************
* contains_path
*/
inline
static
int
contains_path
(
LPCWSTR
name
)
static
inline
int
contains_path
(
LPCWSTR
name
)
{
return
((
*
name
&&
(
name
[
1
]
==
':'
))
||
strchrW
(
name
,
'/'
)
||
strchrW
(
name
,
'\\'
));
}
...
...
@@ -114,7 +114,7 @@ inline static int contains_path( LPCWSTR name )
* Check if an environment variable needs to be handled specially when
* passed through the Unix environment (i.e. prefixed with "WINE").
*/
inline
static
int
is_special_env_var
(
const
char
*
var
)
static
inline
int
is_special_env_var
(
const
char
*
var
)
{
return
(
!
strncmp
(
var
,
"PATH="
,
sizeof
(
"PATH="
)
-
1
)
||
!
strncmp
(
var
,
"HOME="
,
sizeof
(
"HOME="
)
-
1
)
||
...
...
dlls/kernel32/relay16.c
View file @
503b338e
...
...
@@ -46,14 +46,14 @@ static const WCHAR **debug_snoop_excludelist;
static
const
WCHAR
**
debug_snoop_includelist
;
/* compare an ASCII and a Unicode string without depending on the current codepage */
inline
static
int
strcmpiAW
(
const
char
*
strA
,
const
WCHAR
*
strW
)
static
inline
int
strcmpiAW
(
const
char
*
strA
,
const
WCHAR
*
strW
)
{
while
(
*
strA
&&
(
toupperW
((
unsigned
char
)
*
strA
)
==
toupperW
(
*
strW
)))
{
strA
++
;
strW
++
;
}
return
toupperW
((
unsigned
char
)
*
strA
)
-
toupperW
(
*
strW
);
}
/* compare an ASCII and a Unicode string without depending on the current codepage */
inline
static
int
strncmpiAW
(
const
char
*
strA
,
const
WCHAR
*
strW
,
int
n
)
static
inline
int
strncmpiAW
(
const
char
*
strA
,
const
WCHAR
*
strW
,
int
n
)
{
int
ret
=
0
;
for
(
;
n
>
0
;
n
--
,
strA
++
,
strW
++
)
...
...
dlls/kernel32/selector.c
View file @
503b338e
...
...
@@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(selector);
#define LDT_SIZE 8192
/* get the number of selectors needed to cover up to the selector limit */
inline
static
WORD
get_sel_count
(
WORD
sel
)
static
inline
WORD
get_sel_count
(
WORD
sel
)
{
return
(
wine_ldt_copy
.
limit
[
sel
>>
__AHSHIFT
]
>>
16
)
+
1
;
}
...
...
dlls/kernel32/sync.c
View file @
503b338e
...
...
@@ -51,7 +51,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
sync
);
/* check if current version is NT or Win95 */
inline
static
int
is_version_nt
(
void
)
static
inline
int
is_version_nt
(
void
)
{
return
!
(
GetVersion
()
&
0x80000000
);
}
...
...
dlls/kernel32/thunk.c
View file @
503b338e
...
...
@@ -1629,7 +1629,7 @@ static SEGPTR ThunkletCallbackGlueSL = 0;
/* map a thunk allocated on ThunkletHeap to a 16-bit pointer */
inline
static
SEGPTR
get_segptr
(
void
*
thunk
)
static
inline
SEGPTR
get_segptr
(
void
*
thunk
)
{
if
(
!
thunk
)
return
0
;
return
MAKESEGPTR
(
ThunkletCodeSel
,
(
char
*
)
thunk
-
(
char
*
)
ThunkletHeap
);
...
...
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