You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
133 Add dynamic memory mgmt callbacks to host descriptors (#141)
* Remove #defines and add host descriptor callbacks for mem mgmt
* Add docs to bsl private mem mgmt fns
* Modify unit tests to set host desc first; add defualt libc
* Add docs to host desc struct for dynamic mem cbs
* Add test for dyn mem cbs
* MockBPA dyn mem patch
* diff fix
* apply format ubuntu
* Spelling fix
* 133 Move dyn mem bcbs to seperate struct
* Rename BSL dynamic mem fns to lowercase
* apply format ubuntu
* 133 refactor setter
* apply format ubuntu
* Moved libc defaults into a macro. Fixed API docs.
* format
* spelling
---------
Co-authored-by: Brian Sipos <brian.sipos@jhuapl.edu>
Copy file name to clipboardExpand all lines: docs/api/10-bsl-developers.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -209,17 +209,20 @@ After its de-initialization the members of the struct will no longer have well d
209
209
210
210
To help with troubleshooting, de-initialization should set pointers set to NULL and other values to a well-defined state. One option is to use `memset()` to zeroize the entire struct.
211
211
212
-
#Macros
212
+
## Memory Management Functions
213
213
214
-
This section contains references to commonly used macros defined for the BSL
214
+
When heap memory is needed at BSL runtime, the following functions are used and have the same signature and semantics as the corresponding C99 functions indicated below.
215
215
216
-
## Memory Management Macros
216
+
-[BSL_malloc](@ref BSL_malloc) as `malloc()`
217
+
-[BSL_realloc](@ref BSL_realloc) as `realloc()`
218
+
-[BSL_calloc](@ref BSL_calloc) as `calloc()`
219
+
-[BSL_free](@ref BSL_free) as `free()`
217
220
218
-
When heap memory is needed at BSL runtime, the following macros are used and have the same signature and semantics as the corresponding C99 functions indicated below.
221
+
These can be modified using the @ref BSL_DynMemHostDescriptors_t interface.
219
222
220
-
-[BSL_MALLOC](@ref BSL_MALLOC) as `malloc()`
221
-
-[BSL_REALLOC](@ref BSL_REALLOC) as `realloc()`
222
-
-[BSL_FREE](@ref BSL_FREE) as `free()`
223
+
# Macros
224
+
225
+
This section contains references to commonly used macros defined for the BSL
0 commit comments