MGE General C Library - Full Internal Documentation v1.8.4
Library of general C functions.
|
Non-public header file. More...
#include <libmgec/mge-portability.h>
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... | |
Non-public header file.
No distribution required.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
#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.
#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.
#define DEF_BUF_SIZE 256 |
Default buffer size.
If DEF_BUF_SIZE exists it came from the gcc command line.
#define DEF_MSG_SIZE 256 |
Default message size.
If DEF_MSG_SIZE exists it came form the gcc CL.