ntdll: Replace inline static with static inline

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Mar 17 05:28:32 CDT 2007


Changelog:
    ntdll: Replace inline static with static inline.

diff -urN a/dlls/ntdll/critsection.c b/dlls/ntdll/critsection.c
--- a/dlls/ntdll/critsection.c	2007-01-10 22:13:12.000000000 +0000
+++ b/dlls/ntdll/critsection.c	2007-03-17 10:25:13.000000000 +0000
@@ -37,17 +37,17 @@
 WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
 WINE_DECLARE_DEBUG_CHANNEL(relay);
 
-inline static LONG interlocked_inc( PLONG dest )
+static inline LONG interlocked_inc( PLONG dest )
 {
     return interlocked_xchg_add( (int *)dest, 1 ) + 1;
 }
 
-inline static LONG interlocked_dec( PLONG dest )
+static inline LONG interlocked_dec( PLONG dest )
 {
     return interlocked_xchg_add( (int *)dest, -1 ) - 1;
 }
 
-inline static void small_pause(void)
+static inline void small_pause(void)
 {
 #ifdef __i386__
     __asm__ __volatile__( "rep;nop" : : : "memory" );
diff -urN a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
--- a/dlls/ntdll/loader.c	2007-03-13 17:26:10.000000000 +0000
+++ b/dlls/ntdll/loader.c	2007-03-17 10:25:13.000000000 +0000
@@ -111,19 +111,19 @@
                                   DWORD exp_size, const char *name, int hint );
 
 /* convert PE image VirtualAddress to Real Address */
-inline static void *get_rva( HMODULE module, DWORD va )
+static inline void *get_rva( HMODULE module, DWORD va )
 {
     return (void *)((char *)module + va);
 }
 
 /* check whether the file name contains a path */
-inline static int contains_path( LPCWSTR name )
+static inline int contains_path( LPCWSTR name )
 {
     return ((*name && (name[1] == ':')) || strchrW(name, '/') || strchrW(name, '\\'));
 }
 
 /* convert from straight ASCII to Unicode without depending on the current codepage */
-inline static void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )
+static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )
 {
     while (len--) *dst++ = (unsigned char)*src++;
 }
diff -urN a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c
--- a/dlls/ntdll/relay.c	2007-01-17 17:24:39.000000000 +0000
+++ b/dlls/ntdll/relay.c	2007-03-17 10:25:13.000000000 +0000
@@ -83,14 +83,14 @@
 static BOOL init_done;
 
 /* compare an ASCII and a Unicode string without depending on the current codepage */
-inline static int strcmpAW( const char *strA, const WCHAR *strW )
+static inline int strcmpAW( const char *strA, const WCHAR *strW )
 {
     while (*strA && ((unsigned char)*strA == *strW)) { strA++; strW++; }
     return (unsigned char)*strA - *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++)
diff -urN a/dlls/ntdll/resource.c b/dlls/ntdll/resource.c
--- a/dlls/ntdll/resource.c	2007-01-17 17:24:39.000000000 +0000
+++ b/dlls/ntdll/resource.c	2007-03-17 10:25:13.000000000 +0000
@@ -56,7 +56,7 @@
  *
  * Check if a module handle is for a LOAD_LIBRARY_AS_DATAFILE module.
  */
-inline static int is_data_file_module( HMODULE hmod )
+static inline int is_data_file_module( HMODULE hmod )
 {
     return (ULONG_PTR)hmod & 1;
 }
diff -urN a/dlls/ntdll/server.c b/dlls/ntdll/server.c
--- a/dlls/ntdll/server.c	2007-01-18 18:11:14.000000000 +0000
+++ b/dlls/ntdll/server.c	2007-03-17 10:25:13.000000000 +0000
@@ -283,7 +283,7 @@
  *
  * Wait for a reply from the server.
  */
-inline static void wait_reply( struct __server_request_info *req )
+static inline void wait_reply( struct __server_request_info *req )
 {
     read_reply_data( &req->u.reply, sizeof(req->u.reply) );
     if (req->u.reply.reply_header.reply_size)
@@ -473,7 +473,7 @@
 static struct fd_cache_entry *fd_cache[FD_CACHE_ENTRIES];
 static struct fd_cache_entry fd_cache_initial_block[FD_CACHE_BLOCK_SIZE];
 
-inline static unsigned int handle_to_index( obj_handle_t handle, unsigned int *entry )
+static inline unsigned int handle_to_index( obj_handle_t handle, unsigned int *entry )
 {
     unsigned long idx = ((unsigned long)handle >> 2) - 1;
     *entry = idx / FD_CACHE_BLOCK_SIZE;
diff -urN a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
--- a/dlls/ntdll/signal_i386.c	2007-03-14 17:36:34.000000000 +0000
+++ b/dlls/ntdll/signal_i386.c	2007-03-17 10:25:13.000000000 +0000
@@ -352,7 +352,7 @@
 /***********************************************************************
  *           dispatch_signal
  */
-inline static int dispatch_signal(unsigned int sig)
+static inline int dispatch_signal(unsigned int sig)
 {
     if (handlers[sig] == NULL) return 0;
     return handlers[sig](sig);
@@ -539,7 +539,7 @@
  *
  * Handler initialization when the full context is not needed.
  */
-inline static void *init_handler( const SIGCONTEXT *sigcontext, WORD *fs, WORD *gs )
+static inline void *init_handler( const SIGCONTEXT *sigcontext, WORD *fs, WORD *gs )
 {
     void *stack = (void *)(ESP_sig(sigcontext) & ~3);
     TEB *teb = get_current_teb();
@@ -596,7 +596,7 @@
  *
  * Save the thread FPU context.
  */
-inline static void save_fpu( CONTEXT *context )
+static inline void save_fpu( CONTEXT *context )
 {
 #ifdef __GNUC__
     context->ContextFlags |= CONTEXT_FLOATING_POINT;
@@ -610,7 +610,7 @@
  *
  * Restore the FPU context to a sigcontext.
  */
-inline static void restore_fpu( const CONTEXT *context )
+static inline void restore_fpu( const CONTEXT *context )
 {
     FLOATING_SAVE_AREA float_status = context->FloatSave;
     /* reset the current interrupt status */
@@ -626,7 +626,7 @@
  *
  * Build a context structure from the signal info.
  */
-inline static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext, WORD fs, WORD gs )
+static inline void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext, WORD fs, WORD gs )
 {
     struct ntdll_thread_regs * const regs = ntdll_get_thread_regs();
 
@@ -674,7 +674,7 @@
  *
  * Restore the signal info from the context.
  */
-inline static void restore_context( const CONTEXT *context, SIGCONTEXT *sigcontext )
+static inline void restore_context( const CONTEXT *context, SIGCONTEXT *sigcontext )
 {
     struct ntdll_thread_regs * const regs = ntdll_get_thread_regs();
 
diff -urN a/dlls/ntdll/signal_powerpc.c b/dlls/ntdll/signal_powerpc.c
--- a/dlls/ntdll/signal_powerpc.c	2007-01-18 18:11:14.000000000 +0000
+++ b/dlls/ntdll/signal_powerpc.c	2007-03-17 10:25:13.000000000 +0000
@@ -167,7 +167,7 @@
 /***********************************************************************
  *           dispatch_signal
  */
-inline static int dispatch_signal(unsigned int sig)
+static inline int dispatch_signal(unsigned int sig)
 {
     if (handlers[sig] == NULL) return 0;
     return handlers[sig](sig);
@@ -239,7 +239,7 @@
  *
  * Set the FPU context from a sigcontext.
  */
-inline static void save_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
+static inline void save_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
 #define C(x)   context->Fpr##x = FLOAT_sig(x,sigcontext)
         C(0); C(1); C(2); C(3); C(4); C(5); C(6); C(7); C(8); C(9); C(10);
@@ -256,7 +256,7 @@
  *
  * Restore the FPU context to a sigcontext.
  */
-inline static void restore_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
+static inline void restore_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
 {
 #define C(x)  FLOAT_sig(x,sigcontext) = context->Fpr##x
         C(0); C(1); C(2); C(3); C(4); C(5); C(6); C(7); C(8); C(9); C(10);
diff -urN a/dlls/ntdll/signal_sparc.c b/dlls/ntdll/signal_sparc.c
--- a/dlls/ntdll/signal_sparc.c	2007-01-18 18:11:14.000000000 +0000
+++ b/dlls/ntdll/signal_sparc.c	2007-03-17 10:25:13.000000000 +0000
@@ -54,7 +54,7 @@
 /***********************************************************************
  *           dispatch_signal
  */
-inline static int dispatch_signal(unsigned int sig)
+static inline int dispatch_signal(unsigned int sig)
 {
     if (handlers[sig] == NULL) return 0;
     return handlers[sig](sig);
diff -urN a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c
--- a/dlls/ntdll/signal_x86_64.c	2007-01-18 18:11:14.000000000 +0000
+++ b/dlls/ntdll/signal_x86_64.c	2007-03-17 10:25:13.000000000 +0000
@@ -124,7 +124,7 @@
 /***********************************************************************
  *           dispatch_signal
  */
-inline static int dispatch_signal(unsigned int sig)
+static inline int dispatch_signal(unsigned int sig)
 {
     if (handlers[sig] == NULL) return 0;
     return handlers[sig](sig);
diff -urN a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
--- a/dlls/ntdll/threadpool.c	2007-01-04 21:26:50.000000000 +0000
+++ b/dlls/ntdll/threadpool.c	2007-03-17 10:25:13.000000000 +0000
@@ -61,12 +61,12 @@
     PVOID context;
 };
 
-inline static LONG interlocked_inc( PLONG dest )
+static inline LONG interlocked_inc( PLONG dest )
 {
     return interlocked_xchg_add( (int *)dest, 1 ) + 1;
 }
 
-inline static LONG interlocked_dec( PLONG dest )
+static inline LONG interlocked_dec( PLONG dest )
 {
     return interlocked_xchg_add( (int *)dest, -1 ) - 1;
 }



More information about the wine-patches mailing list