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

@@ -75,5 +75,3 @@ SDL_CreateThreadInternal(int(SDLCALL *fn)(void *), const char *name,
#endif
#endif /* SDL_systhread_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -519,5 +519,3 @@ int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Sint32 timeoutMS)
}
return SDL_CondWaitTimeoutNS(cond, mutex, timeoutNS);
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -102,5 +102,3 @@ extern SDL_TLSData *SDL_Generic_GetTLSData(void);
extern int SDL_Generic_SetTLSData(SDL_TLSData *data);
#endif /* SDL_thread_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -217,5 +217,3 @@ int SDL_CondWaitTimeoutNS_generic(SDL_cond *_cond, SDL_mutex *mutex, Sint64 time
return retval;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -34,5 +34,3 @@ int SDL_CondWaitTimeoutNS_generic(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeo
#endif /* SDL_THREAD_GENERIC_COND_SUFFIX */
#endif /* SDL_syscond_generic_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -159,5 +159,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
return 0;
#endif /* SDL_THREADS_DISABLED */
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -19,4 +19,3 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_internal.h"
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -175,5 +175,3 @@ int SDL_SemPost(SDL_sem *sem)
}
#endif /* SDL_THREADS_DISABLED */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -60,5 +60,3 @@ void SDL_SYS_DetachThread(SDL_Thread *thread)
{
return;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -22,5 +22,3 @@
/* Stub until we implement threads on this platform */
typedef int SYS_ThreadHandle;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -32,5 +32,3 @@ int SDL_SYS_SetTLSData(SDL_TLSData *data)
{
return SDL_Generic_SetTLSData(data);
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -117,5 +117,3 @@ int SDL_CondWaitTimeoutNS(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeoutNS)
}
#endif /* SDL_THREAD_N3DS */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -85,5 +85,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
}
#endif /* SDL_THREAD_N3DS */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -31,5 +31,3 @@ struct SDL_mutex
};
#endif /* SDL_sysmutex_c_h */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -116,5 +116,3 @@ int SDL_SemPost(SDL_sem *sem)
}
#endif /* SDL_THREAD_N3DS */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -139,5 +139,3 @@ void SDL_SYS_DetachThread(SDL_Thread *thread)
}
#endif /* SDL_THREAD_N3DS */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@
typedef Thread SYS_ThreadHandle;
#endif /* SDL_systhread_c_h_ */
/* vi: set sts=4 ts=4 sw=4 expandtab: */

View File

@@ -109,5 +109,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -159,5 +159,3 @@ int SDL_SemPost(SDL_sem *sem)
sema.Signal();
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -21,5 +21,3 @@
#include "SDL_internal.h"
typedef int SYS_ThreadHandle;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -203,5 +203,3 @@ int SDL_CondWaitTimeoutNS(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeoutNS)
}
#endif /* SDL_THREAD_PSP */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -144,5 +144,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
}
#endif /* SDL_THREAD_PSP */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -19,4 +19,3 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_internal.h"
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -142,5 +142,3 @@ tryagain:
}
return retval;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -185,5 +185,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -29,4 +29,3 @@ struct SDL_mutex
};
#endif /* SDL_mutex_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -182,4 +182,3 @@ int SDL_SemPost(SDL_sem *sem)
}
#endif /* __MACOS__ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -282,5 +282,3 @@ void SDL_SYS_DetachThread(SDL_Thread *thread)
{
pthread_detach(thread->handle);
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -23,5 +23,3 @@
#include <pthread.h>
typedef pthread_t SYS_ThreadHandle;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -63,5 +63,3 @@ int SDL_SYS_SetTLSData(SDL_TLSData *data)
}
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -139,5 +139,3 @@ SDL_CondWaitTimeoutNS(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeoutNS)
return SDL_SetError("Unable to wait on a C++ condition variable: code=%d; %s", ex.code(), ex.what());
}
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -97,5 +97,3 @@ SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doesn't
mutex->cpp_mutex.unlock();
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -26,5 +26,3 @@ struct SDL_mutex
{
std::recursive_mutex cpp_mutex;
};
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -159,5 +159,3 @@ SDL_SYS_SetTLSData(SDL_TLSData *data)
{
return SDL_Generic_SetTLSData(data);
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -22,5 +22,3 @@
/* For a thread handle, use a void pointer to a std::thread */
typedef void *SYS_ThreadHandle;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -203,5 +203,3 @@ int SDL_CondWaitTimeoutNS(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeoutNS)
}
#endif /* SDL_THREAD_VITA */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -140,5 +140,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doe
}
#endif /* SDL_THREAD_VITA */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -19,5 +19,3 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_internal.h"
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -145,5 +145,3 @@ int SDL_SemPost(SDL_sem *sem)
}
#endif /* SDL_THREAD_VITA */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -131,5 +131,3 @@ int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
}
#endif /* SDL_THREAD_VITA */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -22,5 +22,3 @@
#include <psp2/types.h>
typedef SceUID SYS_ThreadHandle;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -267,5 +267,3 @@ int SDL_CondWaitTimeoutNS(SDL_cond *cond, SDL_mutex *mutex, Sint64 timeoutNS)
{
return SDL_cond_impl_active.WaitTimeoutNS(cond, mutex, timeoutNS);
}
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -284,5 +284,3 @@ int SDL_UnlockMutex(SDL_mutex *mutex)
}
#endif /* SDL_THREAD_WINDOWS */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -71,5 +71,3 @@ typedef struct SDL_mutex_cs
{
CRITICAL_SECTION cs;
} SDL_mutex_cs;
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -395,5 +395,3 @@ int SDL_SemPost(SDL_sem *sem)
}
#endif /* SDL_THREAD_WINDOWS */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -211,5 +211,3 @@ void SDL_SYS_DetachThread(SDL_Thread *thread)
}
#endif /* SDL_THREAD_WINDOWS */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -28,5 +28,3 @@
typedef HANDLE SYS_ThreadHandle;
#endif /* SDL_systhread_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */

View File

@@ -78,5 +78,3 @@ int SDL_SYS_SetTLSData(SDL_TLSData *data)
}
#endif /* SDL_THREAD_WINDOWS */
/* vi: set ts=4 sw=4 expandtab: */