diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
commit | 4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (patch) | |
tree | d48be98832d2d9cb977540541fae1acb1859142b /source/q_shared.c | |
parent | a5afaf65af8ef50d1ce8bbd9e2133239013c26f7 (diff) |
Huge search and replace commit.
Use fixed size integer types from stdint.h instead of custom defined ones.
Get endianess infromation form endian.h.
Added `remotemode' console command.
Link with -ldl only on Linux.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r-- | source/q_shared.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/q_shared.c b/source/q_shared.c index 97f49c8..d61bf6d 100644 --- a/source/q_shared.c +++ b/source/q_shared.c @@ -886,9 +886,9 @@ qboolean COM_HasSpaces( const char *string ) { * illegible symbol or end of string. * Does not check for overflow. */ -uint32 COM_ParseHex( const char *s ) { +unsigned COM_ParseHex( const char *s ) { int c; - uint32 result; + unsigned result; for( result = 0; *s; s++ ) { if( ( c = Q_charhex( *s ) ) == -1 ) { @@ -941,9 +941,8 @@ int Com_WildCmp( const char *filter, const char *string, qboolean ignoreCase ) { Com_HashString ================ */ -uint32 Com_HashString( const char *string, int hashSize ) { - uint32 hash; - uint32 c; +unsigned Com_HashString( const char *string, int hashSize ) { + unsigned hash, c; hash = 0; while( *string ) { @@ -960,9 +959,8 @@ uint32 Com_HashString( const char *string, int hashSize ) { Com_HashPath ================ */ -uint32 Com_HashPath( const char *string, int hashSize ) { - uint32 hash; - uint32 c; +unsigned Com_HashPath( const char *string, int hashSize ) { + unsigned hash, c; hash = 0; while( *string ) { |