mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
code review changes
This commit is contained in:
@ -2053,7 +2053,7 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
|
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
|
||||||
!defined(WOLFSSL_STATIC_MEMORY)
|
!defined(WOLFSSL_STATIC_MEMORY)
|
||||||
/* Per the user manual of embOS https://www.segger.com/downloads/embos/UM01001
|
/* Per the user manual of embOS https://www.segger.com/downloads/embos/UM01001
|
||||||
this API has changed with V5. */
|
* this API has changed with V5. */
|
||||||
#if (OS_VERSION >= 50000U)
|
#if (OS_VERSION >= 50000U)
|
||||||
#define XMALLOC(s, h, type) ((void)(h), (void)(type), OS_HEAP_malloc((s)))
|
#define XMALLOC(s, h, type) ((void)(h), (void)(type), OS_HEAP_malloc((s)))
|
||||||
#define XFREE(p, h, type) ((void)(h), (void)(type), OS_HEAP_free((p)))
|
#define XFREE(p, h, type) ((void)(h), (void)(type), OS_HEAP_free((p)))
|
||||||
|
@ -556,7 +556,9 @@ typedef struct w64wrapper {
|
|||||||
#endif
|
#endif
|
||||||
#define XREALLOC(p, n, h, t) wolfSSL_Realloc((p), (n), (h), (t))
|
#define XREALLOC(p, n, h, t) wolfSSL_Realloc((p), (n), (h), (t))
|
||||||
#endif /* WOLFSSL_DEBUG_MEMORY */
|
#endif /* WOLFSSL_DEBUG_MEMORY */
|
||||||
#elif defined(WOLFSSL_EMBOS) && !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && !defined(WOLFSSL_STATIC_MEMORY)
|
#elif defined(WOLFSSL_EMBOS) && !defined(XMALLOC_USER) \
|
||||||
|
&& !defined(NO_WOLFSSL_MEMORY) \
|
||||||
|
&& !defined(WOLFSSL_STATIC_MEMORY)
|
||||||
/* settings.h solve this case already. Avoid redefinition. */
|
/* settings.h solve this case already. Avoid redefinition. */
|
||||||
#elif (!defined(FREERTOS) && !defined(FREERTOS_TCP)) || defined(WOLFSSL_TRACK_MEMORY)
|
#elif (!defined(FREERTOS) && !defined(FREERTOS_TCP)) || defined(WOLFSSL_TRACK_MEMORY)
|
||||||
#ifdef WOLFSSL_DEBUG_MEMORY
|
#ifdef WOLFSSL_DEBUG_MEMORY
|
||||||
|
Reference in New Issue
Block a user