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
5df3ff13
Commit
5df3ff13
authored
Mar 17, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Replace inline static with static inline.
parent
b1788c84
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
import.c
tools/winebuild/import.c
+6
-6
parser.c
tools/winebuild/parser.c
+2
-2
res16.c
tools/winebuild/res16.c
+1
-1
res32.c
tools/winebuild/res32.c
+1
-1
No files found.
tools/winebuild/import.c
View file @
5df3ff13
...
...
@@ -97,7 +97,7 @@ static int func_cmp( const void *func1, const void *func2 )
}
/* add a name to a name table */
inline
static
void
add_name
(
struct
name_table
*
table
,
const
char
*
name
)
static
inline
void
add_name
(
struct
name_table
*
table
,
const
char
*
name
)
{
if
(
table
->
count
==
table
->
size
)
{
...
...
@@ -109,7 +109,7 @@ inline static void add_name( struct name_table *table, const char *name )
}
/* remove a name from a name table */
inline
static
void
remove_name
(
struct
name_table
*
table
,
unsigned
int
idx
)
static
inline
void
remove_name
(
struct
name_table
*
table
,
unsigned
int
idx
)
{
assert
(
idx
<
table
->
count
);
free
(
table
->
names
[
idx
]
);
...
...
@@ -119,7 +119,7 @@ inline static void remove_name( struct name_table *table, unsigned int idx )
}
/* make a name table empty */
inline
static
void
empty_name_table
(
struct
name_table
*
table
)
static
inline
void
empty_name_table
(
struct
name_table
*
table
)
{
unsigned
int
i
;
...
...
@@ -128,7 +128,7 @@ inline static void empty_name_table( struct name_table *table )
}
/* locate a name in a (sorted) list */
inline
static
const
char
*
find_name
(
const
char
*
name
,
const
struct
name_table
*
table
)
static
inline
const
char
*
find_name
(
const
char
*
name
,
const
struct
name_table
*
table
)
{
char
**
res
=
NULL
;
...
...
@@ -137,13 +137,13 @@ inline static const char *find_name( const char *name, const struct name_table *
}
/* sort a name table */
inline
static
void
sort_names
(
struct
name_table
*
table
)
static
inline
void
sort_names
(
struct
name_table
*
table
)
{
if
(
table
->
count
)
qsort
(
table
->
names
,
table
->
count
,
sizeof
(
*
table
->
names
),
name_cmp
);
}
/* locate an export in a (sorted) export list */
inline
static
ORDDEF
*
find_export
(
const
char
*
name
,
ORDDEF
**
table
,
int
size
)
static
inline
ORDDEF
*
find_export
(
const
char
*
name
,
ORDDEF
**
table
,
int
size
)
{
ORDDEF
func
,
*
odp
,
**
res
=
NULL
;
...
...
tools/winebuild/parser.c
View file @
5df3ff13
...
...
@@ -79,12 +79,12 @@ static int IsNumberString(const char *s)
return
1
;
}
inline
static
int
is_token_separator
(
char
ch
)
static
inline
int
is_token_separator
(
char
ch
)
{
return
strchr
(
separator_chars
,
ch
)
!=
NULL
;
}
inline
static
int
is_token_comment
(
char
ch
)
static
inline
int
is_token_comment
(
char
ch
)
{
return
strchr
(
comment_chars
,
ch
)
!=
NULL
;
}
...
...
tools/winebuild/res16.c
View file @
5df3ff13
...
...
@@ -79,7 +79,7 @@ static const unsigned char *file_end; /* end of resource file */
static
const
char
*
file_name
;
/* current resource file name */
inline
static
struct
resource
*
add_resource
(
DLLSPEC
*
spec
)
static
inline
struct
resource
*
add_resource
(
DLLSPEC
*
spec
)
{
spec
->
resources
=
xrealloc
(
spec
->
resources
,
(
spec
->
nb_resources
+
1
)
*
sizeof
(
*
spec
->
resources
)
);
return
&
spec
->
resources
[
spec
->
nb_resources
++
];
...
...
tools/winebuild/res32.c
View file @
5df3ff13
...
...
@@ -93,7 +93,7 @@ static const char *file_name; /* current resource file name */
#define RESDIR_SIZE(n) (sizeof(IMAGE_RESOURCE_DIRECTORY) + (n) * sizeof(IMAGE_RESOURCE_DIRECTORY_ENTRY))
inline
static
struct
resource
*
add_resource
(
DLLSPEC
*
spec
)
static
inline
struct
resource
*
add_resource
(
DLLSPEC
*
spec
)
{
spec
->
resources
=
xrealloc
(
spec
->
resources
,
(
spec
->
nb_resources
+
1
)
*
sizeof
(
spec
->
resources
[
0
])
);
return
&
spec
->
resources
[
spec
->
nb_resources
++
];
...
...
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