Use concrete types instead of 'auto'.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
Roland Takacs
2016-02-05 15:20:00 +01:00
committed by László Langó
parent cd6ff690d0
commit f8e97c6c02
+11 -12
View File
@@ -99,18 +99,17 @@ typedef void (*mem_try_give_memory_back_callback_t) (mem_try_give_memory_back_se
#define MEM_CP_SET_POINTER(cp_value, non_compressed_pointer) \ #define MEM_CP_SET_POINTER(cp_value, non_compressed_pointer) \
do \ do \
{ \ { \
auto __temp_pointer = non_compressed_pointer; \ void *ptr_value = (void *) non_compressed_pointer; \
non_compressed_pointer = __temp_pointer; \ \
} while (0); \ if (unlikely ((ptr_value) == NULL)) \
\ { \
if (unlikely ((non_compressed_pointer) == NULL)) \ (cp_value) = MEM_CP_NULL; \
{ \ } \
(cp_value) = MEM_CP_NULL; \ else \
} \ { \
else \ MEM_CP_SET_NON_NULL_POINTER (cp_value, ptr_value); \
{ \ } \
MEM_CP_SET_NON_NULL_POINTER (cp_value, non_compressed_pointer); \ } while (false);
}
extern void mem_init (void); extern void mem_init (void);
extern void mem_finalize (bool); extern void mem_finalize (bool);