The function should never be allowed to change the pointer itself.
A double pointer is used so that the value of the pointer can be another pointer which can then be changed.
#endif
#ifndef _di_f_memory_array_adjust_
- f_status_t f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_adjust_
#ifndef _di_f_memory_array_append_
- f_status_t f_memory_array_append(const void * const source, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_append(const void * const source, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!width) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_append_
#ifndef _di_f_memory_array_append_all_
- f_status_t f_memory_array_append_all(const void * const sources, const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_append_all(const void * const sources, const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!sources) return F_status_set_error(F_parameter);
if (!width) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_append_all_
#ifndef _di_f_memory_array_decimate_by_
- f_status_t f_memory_array_decimate_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_decimate_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_decimate_by_
#ifndef _di_f_memory_array_decrease_by_
- f_status_t f_memory_array_decrease_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_decrease_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_decrease_by_
#ifndef _di_f_memory_array_increase_
- f_status_t f_memory_array_increase(const f_number_unsigned_t step, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_increase(const f_number_unsigned_t step, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_increase_
#ifndef _di_f_memory_array_increase_by_
- f_status_t f_memory_array_increase_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_increase_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_array_increase_by_
#ifndef _di_f_memory_array_resize_
- f_status_t f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_adjust_
- extern f_status_t f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_adjust_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_append_
- extern f_status_t f_memory_array_append(const void * const source, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_append(const void * const source, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_append_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_append_all_
- extern f_status_t f_memory_array_append_all(const void * const sources, const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_append_all(const void * const sources, const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_append_all_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_decimate_by_
- extern f_status_t f_memory_array_decimate_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_decimate_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_decimate_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_decrease_by_
- extern f_status_t f_memory_array_decrease_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_decrease_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_decrease_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_increase_
- extern f_status_t f_memory_array_increase(const f_number_unsigned_t step, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_increase(const f_number_unsigned_t step, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_increase_
/**
* F_array_too_large (with error bit) if the new array length is too large.
*/
#ifndef _di_f_memory_array_increase_by_
- extern f_status_t f_memory_array_increase_by(const f_number_unsigned_t amount, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_increase_by(const f_number_unsigned_t amount, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_increase_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_array_resize_
- extern f_status_t f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
+ extern f_status_t f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size);
#endif // _di_f_memory_array_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_memory_arrays_adjust_
- f_status_t f_memory_arrays_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array)) {
+ f_status_t f_memory_arrays_adjust(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array)) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
#endif // _di_f_memory_arrays_adjust_
#ifndef _di_f_memory_arrays_resize_
- f_status_t f_memory_arrays_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array)) {
+ f_status_t f_memory_arrays_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array)) {
#ifndef _di_level_0_parameter_checking_
if (!width) return F_status_set_error(F_parameter);
if (!array) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_arrays_adjust_
- extern f_status_t f_memory_arrays_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array));
+ extern f_status_t f_memory_arrays_adjust(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array));
#endif // _di_f_memory_arrays_adjust_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_memory_arrays_resize_
- extern f_status_t f_memory_arrays_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array));
+ extern f_status_t f_memory_arrays_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size, f_status_t (*callback)(const f_number_unsigned_t start, const f_number_unsigned_t size, void * const array));
#endif // _di_f_memory_arrays_resize_
#ifdef __cplusplus
#endif
#if !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_)
- f_status_t private_f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t private_f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
{
const f_status_t status = private_f_memory_adjust(*size, length, width, array);
#endif // !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_)
#if !defined(_di_f_memory_array_append_) || !defined(_di_f_memory_array_append_all_) || !defined(_di_f_memory_array_decrease_by_) || !defined(_di_f_memory_array_increase_) || !defined(_di_f_memory_array_increase_by_) || !defined(_di_f_memory_array_resize_)
- f_status_t private_f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
+ f_status_t private_f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) {
{
const f_status_t status = private_f_memory_resize(*size, length, width, array);
* @see f_memory_adjust()
*/
#if !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_)
- extern f_status_t private_f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** const const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_)
/**
* @see f_memory_resize()
*/
#if !defined(_di_f_memory_array_append_) || !defined(_di_f_memory_array_append_all_) || !defined(_di_f_memory_array_decrease_by_) || !defined(_di_f_memory_array_increase_) || !defined(_di_f_memory_array_increase_by_) || !defined(_di_f_memory_array_resize_)
- extern f_status_t private_f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** const array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_memory_array_append_) || !defined(_di_f_memory_array_append_all_) || !defined(_di_f_memory_array_decrease_by_) || !defined(_di_f_memory_array_increase_) || !defined(_di_f_memory_array_increase_by_) || !defined(_di_f_memory_array_resize_)
#ifdef __cplusplus