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
a89d5de5
Commit
a89d5de5
authored
Mar 19, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Replace inline static with static inline.
parent
08e1481d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
parser.c
dlls/setupapi/parser.c
+6
-6
queue.c
dlls/setupapi/queue.c
+3
-3
setupapi_private.h
dlls/setupapi/setupapi_private.h
+1
-1
No files found.
dlls/setupapi/parser.c
View file @
a89d5de5
...
...
@@ -256,7 +256,7 @@ static struct line *add_line( struct inf_file *file, int section_index )
/* retrieve a given line from section/line index */
inline
static
struct
line
*
get_line
(
struct
inf_file
*
file
,
unsigned
int
section_index
,
static
inline
struct
line
*
get_line
(
struct
inf_file
*
file
,
unsigned
int
section_index
,
unsigned
int
line_index
)
{
struct
section
*
section
;
...
...
@@ -444,7 +444,7 @@ static WCHAR *push_string( struct inf_file *file, const WCHAR *string )
/* push the current state on the parser stack */
inline
static
void
push_state
(
struct
parser
*
parser
,
enum
parser_state
state
)
static
inline
void
push_state
(
struct
parser
*
parser
,
enum
parser_state
state
)
{
assert
(
parser
->
stack_pos
<
sizeof
(
parser
->
stack
)
/
sizeof
(
parser
->
stack
[
0
])
);
parser
->
stack
[
parser
->
stack_pos
++
]
=
state
;
...
...
@@ -452,7 +452,7 @@ inline static void push_state( struct parser *parser, enum parser_state state )
/* pop the current state */
inline
static
void
pop_state
(
struct
parser
*
parser
)
static
inline
void
pop_state
(
struct
parser
*
parser
)
{
assert
(
parser
->
stack_pos
);
parser
->
state
=
parser
->
stack
[
--
parser
->
stack_pos
];
...
...
@@ -460,7 +460,7 @@ inline static void pop_state( struct parser *parser )
/* set the parser state and return the previous one */
inline
static
enum
parser_state
set_state
(
struct
parser
*
parser
,
enum
parser_state
state
)
static
inline
enum
parser_state
set_state
(
struct
parser
*
parser
,
enum
parser_state
state
)
{
enum
parser_state
ret
=
parser
->
state
;
parser
->
state
=
state
;
...
...
@@ -469,14 +469,14 @@ inline static enum parser_state set_state( struct parser *parser, enum parser_st
/* check if the pointer points to an end of file */
inline
static
int
is_eof
(
struct
parser
*
parser
,
const
WCHAR
*
ptr
)
static
inline
int
is_eof
(
struct
parser
*
parser
,
const
WCHAR
*
ptr
)
{
return
(
ptr
>=
parser
->
end
||
*
ptr
==
CONTROL_Z
);
}
/* check if the pointer points to an end of line */
inline
static
int
is_eol
(
struct
parser
*
parser
,
const
WCHAR
*
ptr
)
static
inline
int
is_eol
(
struct
parser
*
parser
,
const
WCHAR
*
ptr
)
{
return
(
ptr
>=
parser
->
end
||
*
ptr
==
CONTROL_Z
||
*
ptr
==
'\n'
);
}
...
...
dlls/setupapi/queue.c
View file @
a89d5de5
...
...
@@ -73,7 +73,7 @@ struct file_queue
};
inline
static
WCHAR
*
strdupW
(
const
WCHAR
*
str
)
static
inline
WCHAR
*
strdupW
(
const
WCHAR
*
str
)
{
WCHAR
*
ret
=
NULL
;
if
(
str
)
...
...
@@ -84,7 +84,7 @@ inline static WCHAR *strdupW( const WCHAR *str )
return
ret
;
}
inline
static
char
*
strdupWtoA
(
const
WCHAR
*
str
)
static
inline
char
*
strdupWtoA
(
const
WCHAR
*
str
)
{
char
*
ret
=
NULL
;
if
(
str
)
...
...
@@ -97,7 +97,7 @@ inline static char *strdupWtoA( const WCHAR *str )
}
/* append a file operation to a queue */
inline
static
void
queue_file_op
(
struct
file_op_queue
*
queue
,
struct
file_op
*
op
)
static
inline
void
queue_file_op
(
struct
file_op_queue
*
queue
,
struct
file_op
*
op
)
{
op
->
next
=
NULL
;
if
(
queue
->
tail
)
queue
->
tail
->
next
=
op
;
...
...
dlls/setupapi/setupapi_private.h
View file @
a89d5de5
...
...
@@ -29,7 +29,7 @@
#define REGPART_RENAME "\\Rename"
#define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
inline
static
WCHAR
*
strdupAtoW
(
const
char
*
str
)
static
inline
WCHAR
*
strdupAtoW
(
const
char
*
str
)
{
WCHAR
*
ret
=
NULL
;
if
(
str
)
...
...
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