diff options
author | Liam <30486941+liamHowatt@users.noreply.github.com> | 2024-08-02 01:46:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 07:46:42 +0200 |
commit | 1d14386b99cdff731cc3367d1d8b5e96ffb8fcea (patch) | |
tree | 6c0ac804a785f54efebd372fd7070a5e2f840036 /src/stdlib/builtin/lv_tlsf.c | |
parent | a8c8275b560fa74b8bdd72d1d180c98d22a33fc8 (diff) | |
download | lvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.tar.gz lvgl-1d14386b99cdff731cc3367d1d8b5e96ffb8fcea.zip |
refactor(API): don't expose private symbols in lvgl.h. phase-out "_lv*" names (#6068)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Diffstat (limited to 'src/stdlib/builtin/lv_tlsf.c')
-rw-r--r-- | src/stdlib/builtin/lv_tlsf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stdlib/builtin/lv_tlsf.c b/src/stdlib/builtin/lv_tlsf.c index 6048245c3..4232ae324 100644 --- a/src/stdlib/builtin/lv_tlsf.c +++ b/src/stdlib/builtin/lv_tlsf.c @@ -1,7 +1,7 @@ #include "../../lv_conf_internal.h" #if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN -#include "lv_tlsf.h" +#include "lv_tlsf_private.h" #include "../../stdlib/lv_string.h" #include "../../misc/lv_log.h" #include "../../misc/lv_assert.h" @@ -219,16 +219,16 @@ tlsf_decl int tlsf_fls_sizet(size_t size) */ /* Public constants: may be modified. */ -enum tlsf_public { +typedef enum { /* log2 of number of linear subdivisions of block sizes. Larger ** values require more memory in the control structure. Values of ** 4 or 5 are typical. */ SL_INDEX_COUNT_LOG2 = 5, -}; +} tlsf_public; /* Private constants: do not modify. */ -enum tlsf_private { +typedef enum { #if defined (TLSF_64BIT) /* All allocation sizes and addresses are aligned to 8 bytes. */ ALIGN_SIZE_LOG2 = 3, @@ -265,7 +265,7 @@ enum tlsf_private { FL_INDEX_COUNT = (FL_INDEX_MAX - FL_INDEX_SHIFT + 1), SMALL_BLOCK_SIZE = (1 << FL_INDEX_SHIFT), -}; +} tlsf_private; /* ** Cast and min/max macros. |