BSL v0.0.0 - 0.geda3e66
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BSLConfig.h File Reference

Compile-time static configuration for the BSL. More...

#include <stdlib.h>
+ Include dependency graph for BSLConfig.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define HAVE_CLOCK_GETTIME
 Part of POSIX.1-2008.
 
#define BSL_VERSION   "0.0.0"
 Compile-time library version based on SemVer-2.0.0 conventions.
 
#define BSL_VERSION_MAJOR   0
 Compile-time major version number.
 
#define BSL_VERSION_MINOR   0
 Compile-time minor version number.
 
#define BSL_VERSION_PATCH   0
 Compile-time patch version number.
 
#define BSL_MALLOC   malloc
 Uses the same function signature as C99 malloc().
 
#define BSL_REALLOC   realloc
 Uses the same function signature as C99 realloc().
 
#define BSL_FREE   free
 Uses the same function signature as C99 free().
 
#define BSL_CALLOC   calloc
 Uses the same function signature as C99 calloc().
 
#define M_MEMORY_ALLOC(type)   ((type *) BSL_MALLOC(sizeof(type)))
 Force the use of M_ prefixed macros for M*LIB.
 
#define M_MEMORY_DEL(ptr)   BSL_FREE(ptr)
 Define to override value/struct deallocation.
 
#define M_MEMORY_REALLOC(type, ptr, n)   (M_UNLIKELY((n) > SIZE_MAX / sizeof(type)) ? (type *) NULL : (type *) BSL_REALLOC((ptr), (n)*sizeof (type)))
 Define to override array allocation.
 
#define M_MEMORY_FREE(ptr)   BSL_FREE(ptr)
 Define to override array deallocation.
 

Functions

const char * bsl_version (void)
 Run-time library version based on SemVer-2.0.0 conventions.
 

Detailed Description

Compile-time static configuration for the BSL.

Macro Definition Documentation

◆ BSL_VERSION

#define BSL_VERSION   "0.0.0"

Compile-time library version based on SemVer-2.0.0 conventions.

See also
Use bsl_version() to get run-time version.

◆ M_MEMORY_ALLOC

#define M_MEMORY_ALLOC (   type)    ((type *) BSL_MALLOC(sizeof(type)))

Force the use of M_ prefixed macros for M*LIB.

Define to override value/struct allocation. See m-core.h for details.

◆ M_MEMORY_DEL

#define M_MEMORY_DEL (   ptr)    BSL_FREE(ptr)

Define to override value/struct deallocation.

See m-core.h for details.

◆ M_MEMORY_FREE

#define M_MEMORY_FREE (   ptr)    BSL_FREE(ptr)

Define to override array deallocation.

See m-core.h for details.

◆ M_MEMORY_REALLOC

#define M_MEMORY_REALLOC (   type,
  ptr,
 
)    (M_UNLIKELY((n) > SIZE_MAX / sizeof(type)) ? (type *) NULL : (type *) BSL_REALLOC((ptr), (n)*sizeof (type)))

Define to override array allocation.

See m-core.h for details.

Function Documentation

◆ bsl_version()

const char * bsl_version ( void  )

Run-time library version based on SemVer-2.0.0 conventions.

Note
This may be different than BSL_VERSION if using dynamic linking.
Returns
The text form of the library version linked at runtime.

References BSL_VERSION.