MGE General C Library - Full Internal Documentation v1.8.0
Library of general C functions.
internal.h File Reference

Non-public header file. More...

Include dependency graph for internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEF_BUF_SIZE   256
 Default buffer size. More...
 
#define BUF_UNUSED_DEF_SIZE_MULT   3
 A multiple to be applied to the default buffer size and compared with the amount of free space in the buffer to determine if shrinking is necessary. More...
 
#define BUF_MAX_UNREACH_PERCENT   33
 A percentage to be used for comparing the unreachable area of a buffer to the buffer size to determine if the buffer requires compaction. More...
 
#define DEF_MSG_SIZE   256
 Default message size. More...
 

Detailed Description

Non-public header file.

No distribution required.

Author
Copyright (C) 2018-2022 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only

Version
v1.0.6 ==== 16/09/2022

Macro Definition Documentation

◆ BUF_MAX_UNREACH_PERCENT

#define BUF_MAX_UNREACH_PERCENT   33

A percentage to be used for comparing the unreachable area of a buffer to the buffer size to determine if the buffer requires compaction.

A sensible number is probably between 20 and 50. If BUF_MAX_UNREACH_PERCENT exists it came from the gcc CL.

◆ BUF_UNUSED_DEF_SIZE_MULT

#define BUF_UNUSED_DEF_SIZE_MULT   3

A multiple to be applied to the default buffer size and compared with the amount of free space in the buffer to determine if shrinking is necessary.

A sensible number is probably between 2 and 10. If BUF_UNUSED_DEF_SIZE_MULT exists it came from the gcc CL.

◆ DEF_BUF_SIZE

#define DEF_BUF_SIZE   256

Default buffer size.

If DEF_BUF_SIZE exists it came from the gcc command line.

◆ DEF_MSG_SIZE

#define DEF_MSG_SIZE   256

Default message size.

If DEF_MSG_SIZE exists it came form the gcc CL.