Removed the vi format comments from the source

Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim) to automatically set tab spacing for the SDL coding style.

Fixes https://github.com/libsdl-org/SDL/issues/6903
This commit is contained in:
Sam Lantinga
2022-12-26 11:17:23 -08:00
parent 7c67213cef
commit 63724c113b
909 changed files with 1 additions and 1808 deletions

View File

@@ -130,5 +130,3 @@ Float4X4 MatrixRotationZ(float r)
}
#endif /* (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12) && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -79,5 +79,3 @@ Float4X4 MatrixRotationZ(float r);
#endif
#endif /* (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12) && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -4484,5 +4484,3 @@ int SDL_RenderSetVSync(SDL_Renderer *renderer, int vsync)
}
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -325,5 +325,3 @@ extern int SDL_PrivateUpperBlitScaled(SDL_Surface *src, const SDL_Rect *srcrect,
#endif
#endif /* SDL_sysrender_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -401,5 +401,3 @@ void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture *swdata)
}
#endif /* SDL_HAVE_YUV */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -65,5 +65,3 @@ int SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture *swdata, const SDL_Rect *srcrect,
void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture *swdata);
#endif /* SDL_yuv_sw_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1760,5 +1760,3 @@ SDL_RenderGetD3D9Device(SDL_Renderer *renderer)
return device;
}
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -266,5 +266,3 @@ HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader,
}
#endif /* SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -31,5 +31,3 @@ typedef enum
} D3D9_Shader;
extern HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader, IDirect3DPixelShader9 **pixelShader);
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -2439,5 +2439,3 @@ SDL_RenderGetD3D11Device(SDL_Renderer *renderer)
return device;
}
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -113,5 +113,3 @@ D3D11_GetCurrentRotation()
}
#endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -34,5 +34,3 @@ DXGI_MODE_ROTATION D3D11_GetCurrentRotation();
#endif
#endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1948,5 +1948,3 @@ int D3D11_CreatePixelShader(ID3D11Device1 *d3dDevice, D3D11_Shader shader, ID3D1
}
#endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -42,5 +42,3 @@ typedef enum
extern int D3D11_CreateVertexShader(ID3D11Device1 *d3dDevice, ID3D11VertexShader **vertexShader, ID3D11InputLayout **inputLayout);
extern int D3D11_CreatePixelShader(ID3D11Device1 *d3dDevice, D3D11_Shader shader, ID3D11PixelShader **pixelShader);
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -3078,5 +3078,3 @@ extern "C"
return device;
}
#endif /* defined(__WIN32__) || defined(__GDK__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -6933,5 +6933,3 @@ void D3D12_GetRootSignatureData(D3D12_RootSignature rootSig, D3D12_SHADER_BYTECO
}
#endif /* SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED && !defined(__XBOXONE__) && !defined(__XBOXSERIES__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -65,5 +65,3 @@ extern void D3D12_GetRootSignatureData(D3D12_RootSignature rootSig, D3D12_SHADER
#ifdef __cplusplus
}
#endif
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -25,5 +25,3 @@
#error "This is a placeholder Xbox file, as the real one is under NDA. See README-gdk.md for more info."
#endif /* SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED && defined(__XBOXONE__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -25,5 +25,3 @@
#error "This is a placeholder Xbox file, as the real one is under NDA. See README-gdk.md for more info."
#endif /* SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED && defined(__XBOXSERIES__) */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1988,5 +1988,3 @@ SDL_RenderDriver METAL_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -474,5 +474,3 @@ SDL_PROC(void, glVertexPointer,
(GLint size, GLenum type, GLsizei stride,
const GLvoid *pointer))
SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1964,5 +1964,3 @@ SDL_RenderDriver GL_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_OGL && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -577,5 +577,3 @@ void GL_DestroyShaderContext(GL_ShaderContext *ctx)
}
#endif /* SDL_VIDEO_RENDER_OGL && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -56,5 +56,3 @@ extern void GL_SelectShader(GL_ShaderContext *ctx, GL_Shader shader);
extern void GL_DestroyShaderContext(GL_ShaderContext *ctx);
#endif /* SDL_shaders_gl_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -2248,5 +2248,3 @@ SDL_RenderDriver GLES2_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -442,5 +442,3 @@ const char *GLES2_GetShader(GLES2_ShaderType type)
}
#endif /* SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -69,5 +69,3 @@ extern GLES2_ShaderIncludeType GLES2_GetTexCoordPrecisionEnumFromHint(void);
#endif /* SDL_VIDEO_RENDER_OGL_ES2 */
#endif /* SDL_shaders_gles2_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -676,5 +676,3 @@ SDL_RenderDriver PS2_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_PS2 */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1421,5 +1421,3 @@ SDL_RenderDriver PSP_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_PSP */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -344,5 +344,3 @@ int SDL_BlendFillRects(SDL_Surface *dst, const SDL_Rect *rects, int count,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@ extern int SDL_BlendFillRect(SDL_Surface *dst, const SDL_Rect *rect, SDL_BlendMo
extern int SDL_BlendFillRects(SDL_Surface *dst, const SDL_Rect *rects, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
#endif /* SDL_blendfillrect_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -860,5 +860,3 @@ int SDL_BlendLines(SDL_Surface *dst, const SDL_Point *points, int count,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@ extern int SDL_BlendLine(SDL_Surface *dst, int x1, int y1, int x2, int y2, SDL_B
extern int SDL_BlendLines(SDL_Surface *dst, const SDL_Point *points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
#endif /* SDL_blendline_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -349,5 +349,3 @@ int SDL_BlendPoints(SDL_Surface *dst, const SDL_Point *points, int count,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@ extern int SDL_BlendPoint(SDL_Surface *dst, int x, int y, SDL_BlendMode blendMod
extern int SDL_BlendPoints(SDL_Surface *dst, const SDL_Point *points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
#endif /* SDL_blendpoint_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -660,5 +660,3 @@
pixel += skip; \
} \
} while (0)
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -198,5 +198,3 @@ int SDL_DrawLines(SDL_Surface *dst, const SDL_Point *points, int count,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@ extern int SDL_DrawLine(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32
extern int SDL_DrawLines(SDL_Surface *dst, const SDL_Point *points, int count, Uint32 color);
#endif /* SDL_drawline_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -107,5 +107,3 @@ int SDL_DrawPoints(SDL_Surface *dst, const SDL_Point *points, int count,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@ extern int SDL_DrawPoint(SDL_Surface *dst, int x, int y, Uint32 color);
extern int SDL_DrawPoints(SDL_Surface *dst, const SDL_Point *points, int count, Uint32 color);
#endif /* SDL_drawpoint_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1184,5 +1184,3 @@ SDL_RenderDriver SW_RenderDriver = {
};
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -25,5 +25,3 @@
extern SDL_Renderer *SW_CreateRendererForSurface(SDL_Surface *surface);
#endif /* SDL_render_sw_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -889,5 +889,3 @@ static void SDL_BlitTriangle_Slow(SDL_BlitInfo *info,
}
#endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -38,5 +38,3 @@ extern int SDL_SW_BlitTriangle(
extern void trianglepoint_2_fixedpoint(SDL_Point *a);
#endif /* SDL_triangle_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1224,5 +1224,3 @@ static void VITA_GXM_DestroyRenderer(SDL_Renderer *renderer)
}
#endif /* SDL_VIDEO_RENDER_VITA_GXM */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -179,5 +179,3 @@ void vita_mem_fragment_usse_free(SceUID uid)
}
#endif /* SDL_VIDEO_RENDER_VITA_GXM */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -40,5 +40,3 @@ void *vita_mem_fragment_usse_alloc(unsigned int size, SceUID *uid, unsigned int
void vita_mem_fragment_usse_free(SceUID uid);
#endif /* SDL_RENDER_VITA_GXM_MEMORY_H */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -280,5 +280,3 @@ static const SceGxmProgram *const textureVertexProgramGxp = (const SceGxmProgram
static const SceGxmProgram *const textureFragmentProgramGxp = (const SceGxmProgram *)gxm_shader_texture_f;
#endif // SDL_RENDER_VITA_GXM_SHADERS_H
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -1215,5 +1215,3 @@ void gxm_term_for_common_dialog(void)
}
#endif /* SDL_VIDEO_RENDER_VITA_GXM */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -61,5 +61,3 @@ void gxm_swap_for_common_dialog(void);
void gxm_term_for_common_dialog(void);
#endif /* SDL_RENDER_VITA_GXM_TOOLS_H */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -209,5 +209,3 @@ typedef struct
} VITA_GXM_TextureData;
#endif /* SDL_RENDER_VITA_GXM_TYPES_H */
/* vi: set ts=4 sw=4 expandtab: */