Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Fekete committed Aug 6, 2024
1 parent 101088c commit 8b4dd7c
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions IDE/CRYPTOCELL/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/GCC-ARM/Header/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/NETOS/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/RISCV/SIFIVE-HIFIVE1/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/STARCORE/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/SimplicityStudio/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/WICED-STUDIO/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/WINCE/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/XCODE-FIPSv2/macOS-C++/Intel/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/XCODE-FIPSv2/macOS-C++/M1/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/XCODE-FIPSv2/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions IDE/XCODE-FIPSv5/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
1 change: 1 addition & 0 deletions examples/configs/user_settings_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ extern "C" {

/* prototypes for user heap override functions */
/* Note: Realloc only required for normal math */
/* Note2: XFREE(NULL) must be properly handled */
#include <stddef.h> /* for size_t */
extern void *myMalloc(size_t n, void* heap, int type);
extern void myFree(void *p, void* heap, int type);
Expand Down
7 changes: 6 additions & 1 deletion wolfssl/wolfcrypt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,12 @@ typedef struct w64wrapper {
/* idea to add global alloc override by Moises Guimaraes */
/* default to libc stuff */
/* XREALLOC is used once in normal math lib, not in fast math lib */
/* XFREE on some embedded systems doesn't like free(0) so test */
/* XFREE on some embedded systems doesn't like free(0) so test for NULL
* explicitly.
*
* For example:
* #define XFREE(p, h, t) {void* xp = (p); if (xp != NULL) free(xp, h, t);}
*/
#if defined(HAVE_IO_POOL)
WOLFSSL_API void* XMALLOC(size_t n, void* heap, int type);
WOLFSSL_API void* XREALLOC(void *p, size_t n, void* heap, int type);
Expand Down

0 comments on commit 8b4dd7c

Please sign in to comment.