]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Remove trailing spaces after `#` tokens
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 29 Dec 2017 03:07:15 +0000 (14:07 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 29 Dec 2017 03:07:15 +0000 (14:07 +1100)
contrib/brushexport/support.h
libs/debugging/debugging.h
libs/generic/constant.h
libs/md5lib.h
libs/md5lib/md5lib.c
libs/splines/q_shared.h
radiant/patchmanip.cpp
tools/quake3/q3map2/q3map2.h

index a5bd9655c8ba18947d45e993a3c4bf4a992ff3bb..1cf6099eb3c52602e8692d3ce9b21843ec835d3f 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#  include <config.h>
+#include <config.h>
 #endif
 
 #include <uilib/uilib.h>
index e05ff31b41ecd10b0a013652979e0ab000be1f52..0e008b6135c7774187a9f4ef8513f09750768c2f 100644 (file)
@@ -39,7 +39,7 @@
 #define DEBUGGER_BREAKPOINT() raise( SIGTRAP );
 #endif
 
-#define STR( x )  # x
+#define STR( x )  #x
 #define STR2( x ) STR( x )
 #define FILE_LINE __FILE__ ":" STR2( __LINE__ )
 
@@ -116,8 +116,8 @@ inline DebugMessageHandler& globalDebugMessageHandler(){
                globalDebugMessageHandler().getOutputStream() << FILE_LINE "\nruntime error: " << message << "\n"; \
                if ( !globalDebugMessageHandler().handleMessage() ) { DEBUGGER_BREAKPOINT(); }} while ( 0 )
 
-#define ASSERT_NOTNULL( ptr ) ASSERT_MESSAGE( ptr != 0, "pointer \"" # ptr "\" is null" )
-#define ASSERT_TRUE( flag ) ASSERT_MESSAGE( !!(flag) == true, "condition \"" # flag "\" is false" )
+#define ASSERT_NOTNULL( ptr ) ASSERT_MESSAGE( ptr != 0, "pointer \"" #ptr "\" is null" )
+#define ASSERT_TRUE( flag ) ASSERT_MESSAGE( !!(flag) == true, "condition \"" #flag "\" is false" )
 
 #else
 
index ab64ec393ca33ec3b10a04dd4dfcd18ff93dd8f8..e7e7ba04c47d35c79726b3208b83e62f7eff7358 100644 (file)
@@ -40,7 +40,7 @@ inline TextOutputStreamType& ostream_write( TextOutputStreamType& ostream, const
        return ostream_write( ostream, typename Type::Value( c ) );
 }
 
-#define TYPE_CONSTANT( name, value, type ) struct name ## _CONSTANT_ { typedef type Value; static Value evaluate() { return value; } }; typedef ConstantWrapper<name ## _CONSTANT_> name
+#define TYPE_CONSTANT( name, value, type ) struct name##_CONSTANT_ { typedef type Value; static Value evaluate() { return value; } }; typedef ConstantWrapper<name##_CONSTANT_> name
 #define STRING_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, const char* )
 #define INTEGER_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, int )
 #define UINT_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, unsigned int )
index db9fd3336dbb924cd2cfaab0013e5b0a3bcef015..c54f2605501ede7a579ef14e8d1ac50ed844d339 100644 (file)
@@ -48,7 +48,7 @@
  */
 
 #ifndef md5_INCLUDED
-#  define md5_INCLUDED
+#define md5_INCLUDED
 
 /*
  * This package supports both compile-time and run-time determination of CPU
index f30d0958b48aef14a59628a87ba5603eaedca4db..eb0478245c072ab0427ebbc1edae3ae654d2f274 100644 (file)
@@ -70,9 +70,9 @@
 
 #undef BYTE_ORDER   /* 1 = big-endian, -1 = little-endian, 0 = unknown */
 #ifdef ARCH_IS_BIG_ENDIAN
-#  define BYTE_ORDER ( ARCH_IS_BIG_ENDIAN ? 1 : -1 )
+#define BYTE_ORDER ( ARCH_IS_BIG_ENDIAN ? 1 : -1 )
 #else
-#  define BYTE_ORDER 0
+#define BYTE_ORDER 0
 #endif
 
 #define T_MASK ( ( md5_word_t ) ~0 )
@@ -197,11 +197,11 @@ md5_process( md5_state_t *pms, const md5_byte_t *data /*[64]*/ ){
                        const md5_byte_t *xp = data;
                        int i;
 
-#  if BYTE_ORDER == 0
+#if BYTE_ORDER == 0
                        X = xbuf;   /* (dynamic only) */
-#  else
-#    define xbuf X      /* (static only) */
-#  endif
+#else
+#define xbuf X      /* (static only) */
+#endif
                        for ( i = 0; i < 16; ++i, xp += 4 )
                                xbuf[i] = xp[0] + ( xp[1] << 8 ) + ( xp[2] << 16 ) + ( xp[3] << 24 );
                }
index 09a20b814052c287005687dd8a65fe533a02449b..95c0cc5a4f731280f13ce216dad88efc7ff25cb6 100644 (file)
 
 #undef ALIGN_ON
 #undef ALIGN_OFF
-#define ALIGN_ON        # pragma align( 16 )
-#define ALIGN_OFF       # pragma align()
+#define ALIGN_ON        #pragma align( 16 )
+#define ALIGN_OFF       #pragma align()
 
 #ifdef __cplusplus
 extern "C" {
index 9c85927f98b6e007c808286e4e57f8ea507012ce..677abbd54010b06743e10e16e1415e24fa12f88b 100644 (file)
@@ -878,7 +878,7 @@ void DoNewPatchDlg( EPatchPrefab prefab, int minrows, int mincols, int defrows,
 
                        {
                                auto combo = ui::ComboBoxText(ui::New);
-#define D_ITEM( x ) if ( x >= mincols && ( !maxcols || x <= maxcols ) ) gtk_combo_box_text_append_text( combo, # x )
+#define D_ITEM( x ) if ( x >= mincols && ( !maxcols || x <= maxcols ) ) gtk_combo_box_text_append_text( combo, #x )
                                D_ITEM( 3 );
                                D_ITEM( 5 );
                                D_ITEM( 7 );
@@ -904,7 +904,7 @@ void DoNewPatchDlg( EPatchPrefab prefab, int minrows, int mincols, int defrows,
                        }
                        {
                                auto combo = ui::ComboBoxText(ui::New);
-#define D_ITEM( x ) if ( x >= minrows && ( !maxrows || x <= maxrows ) ) gtk_combo_box_text_append_text( combo, # x )
+#define D_ITEM( x ) if ( x >= minrows && ( !maxrows || x <= maxrows ) ) gtk_combo_box_text_append_text( combo, #x )
                                D_ITEM( 3 );
                                D_ITEM( 5 );
                                D_ITEM( 7 );
index 7b677c83690ac7866a4cc827e8f187ca056c62d4..d3a9432fe11cb0608f99026994c08424dd3a089b 100644 (file)
@@ -2561,16 +2561,16 @@ Q_EXTERN bspAdvertisement_t bspAds[ MAX_MAP_ADVERTISEMENTS ];
                                allocated *= 2; \
                        if ( !allocated || allocated > 2147483647 / (int)sizeof( *ptr ) ) \
                        { \
-                               Error( # ptr " over 2 GB" ); \
+                               Error( #ptr " over 2 GB" ); \
                        } \
                        ptr = realloc( ptr, sizeof( *ptr ) * allocated ); \
                        if ( !ptr ) { \
-                               Error( # ptr " out of memory" ); } \
+                               Error( #ptr " out of memory" ); } \
                } \
        } \
        while ( 0 )
 
-#define AUTOEXPAND_BY_REALLOC_BSP( suffix, def ) AUTOEXPAND_BY_REALLOC( bsp ## suffix, numBSP ## suffix, allocatedBSP ## suffix, def )
+#define AUTOEXPAND_BY_REALLOC_BSP( suffix, def ) AUTOEXPAND_BY_REALLOC( bsp##suffix, numBSP##suffix, allocatedBSP##suffix, def )
 
 #define Image_LinearFloatFromsRGBFloat( c ) ( ( ( c ) <= 0.04045f ) ? ( c ) * ( 1.0f / 12.92f ) : (float)pow( ( ( c ) + 0.055f ) * ( 1.0f / 1.055f ), 2.4f ) )
 #define Image_sRGBFloatFromLinearFloat( c ) ( ( ( c ) < 0.0031308f ) ? ( c ) * 12.92f : 1.055f * (float)pow( ( c ), 1.0f / 2.4f ) - 0.055f )