diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-12-20 14:37:44 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-04-03 01:25:47 +0400 |
commit | b3e271a53de2610de173f9b2bda5d15dd4d78909 (patch) | |
tree | d567b91dadac42e168bcb13db5fe93ffbc7e1533 /src/sys_public.h | |
parent | ca4a019a74b11aa21fea2a03c6dff3b183463aab (diff) |
Massive coding style change.
Use linux style brackets. Pad operators with spaces. Unpad parenthesis,
except for ‘if’, ‘for’, ‘while’ constructs.
Diffstat (limited to 'src/sys_public.h')
-rw-r--r-- | src/sys_public.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/sys_public.h b/src/sys_public.h index 2a81f3e..4a51125 100644 --- a/src/sys_public.h +++ b/src/sys_public.h @@ -8,7 +8,7 @@ of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -26,43 +26,43 @@ typedef struct { } mempool_t; // loads the dll and returns entry pointer -void *Sys_LoadLibrary( const char *path, const char *sym, void **handle ); -void Sys_FreeLibrary( void *handle ); -void *Sys_GetProcAddress( void *handle, const char *sym ); +void *Sys_LoadLibrary(const char *path, const char *sym, void **handle); +void Sys_FreeLibrary(void *handle); +void *Sys_GetProcAddress(void *handle, const char *sym); -unsigned Sys_Milliseconds( void ); -void Sys_Sleep( int msec ); +unsigned Sys_Milliseconds(void); +void Sys_Sleep(int msec); -void Hunk_Begin( mempool_t *pool, size_t maxsize ); -void *Hunk_Alloc( mempool_t *pool, size_t size ); -void Hunk_End( mempool_t *pool ); -void Hunk_Free( mempool_t *pool ); +void Hunk_Begin(mempool_t *pool, size_t maxsize); +void *Hunk_Alloc(mempool_t *pool, size_t size); +void Hunk_End(mempool_t *pool); +void Hunk_Free(mempool_t *pool); -void Sys_Init( void ); -void Sys_AddDefaultConfig( void ); +void Sys_Init(void); +void Sys_AddDefaultConfig(void); #if USE_SYSCON -void Sys_RunConsole( void ); -void Sys_ConsoleOutput( const char *string ); -void Sys_SetConsoleTitle( const char *title ); -void Sys_SetConsoleColor( color_index_t color ); -void Sys_Printf( const char *fmt, ... ) q_printf( 1, 2 ); +void Sys_RunConsole(void); +void Sys_ConsoleOutput(const char *string); +void Sys_SetConsoleTitle(const char *title); +void Sys_SetConsoleColor(color_index_t color); +void Sys_Printf(const char *fmt, ...) q_printf(1, 2); #endif -void Sys_Error( const char *error, ... ) q_noreturn q_printf( 1, 2 ); -void Sys_Quit( void ) q_noreturn; +void Sys_Error(const char *error, ...) q_noreturn q_printf(1, 2); +void Sys_Quit(void) q_noreturn; -void Sys_ListFiles_r( const char *path, const char *filter, - unsigned flags, size_t baselen, int *count_p, void **files, int depth ); +void Sys_ListFiles_r(const char *path, const char *filter, + unsigned flags, size_t baselen, int *count_p, void **files, int depth); struct file_info_s; -qerror_t Sys_GetPathInfo( const char *path, struct file_info_s *info ); -qerror_t Sys_GetFileInfo( FILE *fp, struct file_info_s *info ); +qerror_t Sys_GetPathInfo(const char *path, struct file_info_s *info); +qerror_t Sys_GetFileInfo(FILE *fp, struct file_info_s *info); -void Sys_DebugBreak( void ); +void Sys_DebugBreak(void); #if USE_AC_CLIENT -qboolean Sys_GetAntiCheatAPI( void ); +qboolean Sys_GetAntiCheatAPI(void); #endif extern cvar_t *sys_basedir; |