winebuild: Replace inline static with static inline
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Mar 17 05:54:52 CDT 2007
Changelog:
winebuild: Replace inline static with static inline.
diff -urN a/tools/winebuild/import.c b/tools/winebuild/import.c
--- a/tools/winebuild/import.c 2007-03-06 17:28:22.000000000 +0000
+++ b/tools/winebuild/import.c 2007-03-17 10:53:56.000000000 +0000
@@ -97,7 +97,7 @@
}
/* 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 @@
}
/* 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 @@
}
/* 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 @@
}
/* 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 @@
}
/* 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;
diff -urN a/tools/winebuild/parser.c b/tools/winebuild/parser.c
--- a/tools/winebuild/parser.c 2006-12-04 17:36:43.000000000 +0000
+++ b/tools/winebuild/parser.c 2007-03-17 10:53:56.000000000 +0000
@@ -79,12 +79,12 @@
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;
}
diff -urN a/tools/winebuild/res16.c b/tools/winebuild/res16.c
--- a/tools/winebuild/res16.c 2006-08-23 11:56:46.000000000 +0100
+++ b/tools/winebuild/res16.c 2007-03-17 10:53:56.000000000 +0000
@@ -79,7 +79,7 @@
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++];
diff -urN a/tools/winebuild/res32.c b/tools/winebuild/res32.c
--- a/tools/winebuild/res32.c 2006-08-12 12:11:08.000000000 +0100
+++ b/tools/winebuild/res32.c 2007-03-17 10:53:56.000000000 +0000
@@ -93,7 +93,7 @@
#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++];
More information about the wine-patches
mailing list