wined3d: Replace inline static with static inline
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Mar 17 05:39:40 CDT 2007
Changelog:
wined3d: Replace inline static with static inline.
diff -urN a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
--- a/dlls/wined3d/arb_program_shader.c 2007-03-13 17:26:11.000000000 +0000
+++ b/dlls/wined3d/arb_program_shader.c 2007-03-17 10:38:14.000000000 +0000
@@ -483,7 +483,7 @@
sprintf(outregstr, "T%c%s", 'A' + tmpreg, swzstr);
}
-inline static void pshader_gen_output_modifier_line(
+static inline void pshader_gen_output_modifier_line(
SHADER_BUFFER* buffer,
int saturate,
char *write_mask,
diff -urN a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c
--- a/dlls/wined3d/baseshader.c 2007-02-15 16:39:07.000000000 +0000
+++ b/dlls/wined3d/baseshader.c 2007-03-17 10:38:14.000000000 +0000
@@ -31,7 +31,7 @@
#define GLNAME_REQUIRE_GLSL ((const char *)1)
-inline static BOOL shader_is_version_token(DWORD token) {
+static inline BOOL shader_is_version_token(DWORD token) {
return shader_is_pshader_version(token) ||
shader_is_vshader_version(token);
}
diff -urN a/dlls/wined3d/device.c b/dlls/wined3d/device.c
--- a/dlls/wined3d/device.c 2007-03-15 17:31:54.000000000 +0000
+++ b/dlls/wined3d/device.c 2007-03-17 10:38:14.000000000 +0000
@@ -60,7 +60,7 @@
};
/* retrieve the X display to use on a given DC */
-inline static Display *get_display( HDC hdc )
+static inline Display *get_display( HDC hdc )
{
Display *display;
enum x11drv_escape_codes escape = X11DRV_GET_DISPLAY;
diff -urN a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
--- a/dlls/wined3d/directx.c 2007-03-13 17:26:11.000000000 +0000
+++ b/dlls/wined3d/directx.c 2007-03-17 10:38:14.000000000 +0000
@@ -51,7 +51,7 @@
};
/* retrieve the X display to use on a given DC */
-inline static Display *get_display( HDC hdc )
+static inline Display *get_display( HDC hdc )
{
Display *display;
enum x11drv_escape_codes escape = X11DRV_GET_DISPLAY;
diff -urN a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
--- a/dlls/wined3d/pixelshader.c 2007-03-08 17:37:18.000000000 +0000
+++ b/dlls/wined3d/pixelshader.c 2007-03-17 10:38:14.000000000 +0000
@@ -330,7 +330,7 @@
/** Generate a pixel shader string using either GL_FRAGMENT_PROGRAM_ARB
or GLSL and send it to the card */
-inline static VOID IWineD3DPixelShaderImpl_GenerateShader(
+static inline VOID IWineD3DPixelShaderImpl_GenerateShader(
IWineD3DPixelShader *iface,
shader_reg_maps* reg_maps,
CONST DWORD *pFunction) {
diff -urN a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
--- a/dlls/wined3d/swapchain.c 2007-03-07 17:19:26.000000000 +0000
+++ b/dlls/wined3d/swapchain.c 2007-03-17 10:38:14.000000000 +0000
@@ -35,7 +35,7 @@
};
/* retrieve the X display to use on a given DC */
-inline static Display *get_display( HDC hdc )
+static inline Display *get_display( HDC hdc )
{
Display *display;
enum x11drv_escape_codes escape = X11DRV_GET_DISPLAY;
diff -urN a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c
--- a/dlls/wined3d/wined3d_main.c 2007-03-07 17:19:26.000000000 +0000
+++ b/dlls/wined3d/wined3d_main.c 2007-03-17 10:38:14.000000000 +0000
@@ -85,7 +85,7 @@
return (IWineD3D *)object;
}
-inline static DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, char* buffer, DWORD size)
+static inline DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, char* buffer, DWORD size)
{
if (0 != appkey && !RegQueryValueExA( appkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0;
if (0 != defkey && !RegQueryValueExA( defkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0;
diff -urN a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
--- a/dlls/wined3d/wined3d_private.h 2007-03-14 17:36:44.000000000 +0000
+++ b/dlls/wined3d/wined3d_private.h 2007-03-17 10:38:14.000000000 +0000
@@ -1806,22 +1806,22 @@
WineD3D_GL_Info *gl_info,
GLhandleARB obj);
-inline static int shader_get_regtype(const DWORD param) {
+static inline int shader_get_regtype(const DWORD param) {
return (((param & WINED3DSP_REGTYPE_MASK) >> WINED3DSP_REGTYPE_SHIFT) |
((param & WINED3DSP_REGTYPE_MASK2) >> WINED3DSP_REGTYPE_SHIFT2));
}
extern unsigned int shader_get_float_offset(const DWORD reg);
-inline static BOOL shader_is_pshader_version(DWORD token) {
+static inline BOOL shader_is_pshader_version(DWORD token) {
return 0xFFFF0000 == (token & 0xFFFF0000);
}
-inline static BOOL shader_is_vshader_version(DWORD token) {
+static inline BOOL shader_is_vshader_version(DWORD token) {
return 0xFFFE0000 == (token & 0xFFFF0000);
}
-inline static BOOL shader_is_comment(DWORD token) {
+static inline BOOL shader_is_comment(DWORD token) {
return WINED3DSIO_COMMENT == (token & WINED3DSI_OPCODE_MASK);
}
@@ -1936,14 +1936,14 @@
const PixelFormatDesc *getFormatDescEntry(WINED3DFORMAT fmt);
-inline static BOOL use_vs(IWineD3DDeviceImpl *device) {
+static inline BOOL use_vs(IWineD3DDeviceImpl *device) {
return (device->vs_selected_mode != SHADER_NONE
&& device->stateBlock->vertexShader
&& ((IWineD3DVertexShaderImpl *)device->stateBlock->vertexShader)->baseShader.function
&& !device->strided_streams.u.s.position_transformed);
}
-inline static BOOL use_ps(IWineD3DDeviceImpl *device) {
+static inline BOOL use_ps(IWineD3DDeviceImpl *device) {
return (device->ps_selected_mode != SHADER_NONE
&& device->stateBlock->pixelShader
&& ((IWineD3DPixelShaderImpl *)device->stateBlock->pixelShader)->baseShader.function);
More information about the wine-patches
mailing list