toolchain: deprecate the Z_ iterables api
Switch the actual API implementation to the external API and mark the internal ones as __DEPRECATED_MACRO. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
f88a420d69
commit
171739d06e
2 changed files with 23 additions and 21 deletions
|
@ -73,14 +73,14 @@
|
|||
* are indirectly referenced by iterating through the section.
|
||||
*/
|
||||
#define ITERABLE_SECTION_ROM(struct_type, subalign) \
|
||||
Z_ITERABLE_SECTION_ROM(struct_type, subalign)
|
||||
|
||||
#define Z_ITERABLE_SECTION_ROM(struct_type, subalign) \
|
||||
SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
|
||||
{ \
|
||||
Z_LINK_ITERABLE(struct_type); \
|
||||
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
#define Z_ITERABLE_SECTION_ROM(struct_type, subalign) \
|
||||
ITERABLE_SECTION_ROM(struct_type, subalign)
|
||||
|
||||
/**
|
||||
* @brief Define a garbage collectable read-only iterable section output.
|
||||
*
|
||||
|
@ -94,14 +94,14 @@
|
|||
* Note that the symbols within the section can be garbage collected.
|
||||
*/
|
||||
#define ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign) \
|
||||
Z_ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign)
|
||||
|
||||
#define Z_ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign) \
|
||||
SECTION_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
|
||||
{ \
|
||||
Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
#define Z_ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign) \
|
||||
ITERABLE_SECTION_ROM_GC_ALLOWED(struct_type, subalign)
|
||||
|
||||
/**
|
||||
* @brief Define a read-write iterable section output.
|
||||
*
|
||||
|
@ -117,14 +117,13 @@
|
|||
* are indirectly referenced by iterating through the section.
|
||||
*/
|
||||
#define ITERABLE_SECTION_RAM(struct_type, subalign) \
|
||||
Z_ITERABLE_SECTION_RAM(struct_type, subalign)
|
||||
|
||||
#define Z_ITERABLE_SECTION_RAM(struct_type, subalign) \
|
||||
SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
|
||||
{ \
|
||||
Z_LINK_ITERABLE(struct_type); \
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
#define Z_ITERABLE_SECTION_RAM(struct_type, subalign) \
|
||||
ITERABLE_SECTION_RAM(struct_type, subalign)
|
||||
|
||||
/**
|
||||
* @brief Define a garbage collectable read-write iterable section output.
|
||||
|
@ -139,14 +138,14 @@
|
|||
* Note that the symbols within the section can be garbage collected.
|
||||
*/
|
||||
#define ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign) \
|
||||
Z_ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign)
|
||||
|
||||
#define Z_ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign) \
|
||||
SECTION_DATA_PROLOGUE(struct_type##_area,,SUBALIGN(subalign)) \
|
||||
{ \
|
||||
Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
#define Z_ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign) \
|
||||
ITERABLE_SECTION_RAM_GC_ALLOWED(struct_type, subalign)
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/ /* end of struct_section_apis */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue