From 6ff8675e330d048f5e0fdda11f39aceb80767249 Mon Sep 17 00:00:00 2001 From: charras Date: Thu, 30 Oct 2008 12:04:26 +0000 Subject: [PATCH] back to EXCHG macro (equivalent inline functions do not work, this is a stupid error from myself ) --- include/macros.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/include/macros.h b/include/macros.h index b1f3a021f1..800c86877d 100644 --- a/include/macros.h +++ b/include/macros.h @@ -57,40 +57,6 @@ #define EXCHG( a, b ) { typeof(a) __temp__ = (a); (a) = (b); (b) = __temp__; } -class Hierarchical_PIN_Sheet_Struct; -static inline void EXCHG( const Hierarchical_PIN_Sheet_Struct* a, const Hierarchical_PIN_Sheet_Struct* b ) -{ - const Hierarchical_PIN_Sheet_Struct* temp = a; - a = b; - b = temp; -}; - -class SCH_CMP_FIELD; -static inline void EXCHG( const SCH_CMP_FIELD* a, const SCH_CMP_FIELD* b ) -{ - const SCH_CMP_FIELD* temp = a; - a = b; - b = temp; -}; - -class BOARD_ITEM; -static inline void EXCHG( const BOARD_ITEM* a, const BOARD_ITEM* b ) -{ - const BOARD_ITEM* temp = a; - a = b; - b = temp; -}; - -class D_PAD; -static inline void EXCHG( const D_PAD* a, const D_PAD* b ) -{ - const D_PAD* temp = a; - a = b; - b = temp; -}; - -#endif - /*****************************************************/ /* inline functions to insert menuitems with a icon: */ /*****************************************************/