From 621a8739ffcb6a3dd5dadbf6417ed0b7a9cc3e73 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 7 Sep 2005 16:05:54 +0000 Subject: [PATCH] fix a few very small mistakes by Black and Elric: precompiler directives (#define) can not have whitespace before them, but can have whitespace after the # git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5693 d7cf8633-e32d-0410-b094-e92efae38249 --- progsvm.h | 4 ++-- snd_mem.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/progsvm.h b/progsvm.h index c977d7ab..aae25ce9 100644 --- a/progsvm.h +++ b/progsvm.h @@ -508,9 +508,9 @@ void PRVM_FreeString(int num); //#define PRVM_SAFENAME #ifndef PRVM_SAFENAME - #define PRVM_NAME (prog->name) +# define PRVM_NAME (prog->name) #else - #define PRVM_NAME (prog->name ? prog->name : "Unknown prog name") +# define PRVM_NAME (prog->name ? prog->name : "Unknown prog name") #endif // helper macro to make function pointer calls easier diff --git a/snd_mem.c b/snd_mem.c index 2b061f45..281e513a 100644 --- a/snd_mem.c +++ b/snd_mem.c @@ -56,9 +56,9 @@ size_t ResampleSfx (const qbyte *in_data, size_t in_length, const snd_format_t* // General case (linear interpolation with a fixed-point fractional // step, 18-bit integer part and 14-bit fractional part) // Can handle up to 2^18 (262144) samples per second (> 96KHz stereo) - #define FRACTIONAL_BITS 14 - #define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1) - #define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS) +# define FRACTIONAL_BITS 14 +# define FRACTIONAL_MASK ((1 << FRACTIONAL_BITS) - 1) +# define INTEGER_BITS (sizeof(samplefrac)*8 - FRACTIONAL_BITS) else { const unsigned int fracstep = (double)in_format->speed / shm->format.speed * (1 << FRACTIONAL_BITS); -- 2.39.2