Changeset 1971 in kBuild
- Timestamp:
- Oct 26, 2008 10:26:12 PM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/make.h
r1933 r1971 146 146 #endif 147 147 148 #if defined(KMK) || defined(CONFIG_WITH_VALUE_LENGTH) 148 #if defined (KMK) || defined (CONFIG_WITH_VALUE_LENGTH) \ 149 || defined (CONFIG_WITH_ALLOC_CACHES) 149 150 # ifdef _MSC_VER 150 151 # define MY_INLINE _inline static 152 # elif defined(__GNUC__) 153 # define MY_INLINE static __inline__ 154 # else 155 # define MY_INLINE static 156 # endif 157 158 # ifdef __GNUC__ 159 # define MY_PREDICT_TRUE(expr) __builtin_expect(!!(expr), 1) 160 # define MY_PREDICT_FALSE(expr) __builtin_expect(!!(expr), 0) 161 # else 162 # define MY_PREDICT_TRUE(expr) (expr) 163 # define MY_PREDICT_FALSE(expr) (expr) 164 # endif 165 #endif 166 167 #if defined (KMK) || defined (CONFIG_WITH_VALUE_LENGTH) 168 # ifdef _MSC_VER 151 169 # define MY_DBGBREAK __debugbreak() 152 170 # elif defined(__GNUC__) 153 # define MY_INLINE static __inline__154 171 # if defined(__i386__) || defined(__x86_64__) 155 172 # define MY_DBGBREAK __asm__ __volatile__ ("int3") 156 # else173 # else 157 174 # define MY_DBGBREAK assert(0) 158 175 # endif 159 176 # else 160 # define MY_INLINE static 161 # define MY_DBGBREAK assert(0) 177 # define MY_DBGBREAK assert(0) 162 178 # endif 163 179 # ifndef NDEBUG … … 166 182 # else 167 183 # define MY_ASSERT_MSG(expr, printfargs) do { } while (0) 168 # endif169 170 # ifdef __GNUC__171 # define MY_PREDICT_TRUE(expr) __builtin_expect(!!(expr), 1)172 # define MY_PREDICT_FALSE(expr) __builtin_expect(!!(expr), 0)173 # else174 # define MY_PREDICT_TRUE(expr) (expr)175 # define MY_PREDICT_FALSE(expr) (expr)176 184 # endif 177 185 #endif -
trunk/src/kmk/misc.c
r1935 r1971 20 20 #include "dep.h" 21 21 #include "debug.h" 22 #if def CONFIG_WITH_VALUE_LENGTH22 #if defined (CONFIG_WITH_VALUE_LENGTH) || defined (CONFIG_WITH_ALLOC_CACHES) 23 23 # include <assert.h> 24 24 #endif -
trunk/src/kmk/remake.c
r1862 r1971 240 240 241 241 /* Free the storage. */ 242 #ifndef KMK242 #ifndef CONFIG_WITH_ALLOC_CACHES 243 243 free (g); 244 244 #else
Note:
See TracChangeset
for help on using the changeset viewer.