mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-27 20:55:27 +08:00
c-user: Fix linker set code blocks
This commit is contained in:
parent
3b9b8a004c
commit
51392ac0df
@ -445,7 +445,7 @@ NOTES:
|
|||||||
|
|
||||||
/* Defines an ordered XYZ-item */
|
/* Defines an ordered XYZ-item */
|
||||||
#define XYZ_ITEM( item, order ) \
|
#define XYZ_ITEM( item, order ) \
|
||||||
enum { xyz_##item = order - order }; \
|
enum { xyz_##item = order }; \
|
||||||
RTEMS_LINKER_ROSET_ITEM_ORDERED( \
|
RTEMS_LINKER_ROSET_ITEM_ORDERED( \
|
||||||
xyz, const xyz_item *, item, order \
|
xyz, const xyz_item *, item, order \
|
||||||
) = { &item }
|
) = { &item }
|
||||||
@ -645,10 +645,11 @@ NOTES:
|
|||||||
|
|
||||||
/* Defines an ordered XYZ-item */
|
/* Defines an ordered XYZ-item */
|
||||||
#define XYZ_ITEM( item, order ) \
|
#define XYZ_ITEM( item, order ) \
|
||||||
enum { xyz_##item = order - order }; \
|
enum { xyz_##item = order }; \
|
||||||
RTEMS_LINKER_RWSET_ITEM_ORDERED( \
|
RTEMS_LINKER_RWSET_ITEM_ORDERED( \
|
||||||
xyz, const xyz_item *, item, order \
|
xyz, const xyz_item *, item, order \
|
||||||
) = { &item }
|
) = { &item }
|
||||||
|
|
||||||
/* Example item */
|
/* Example item */
|
||||||
static const xyz_item some_item = { 123 };
|
static const xyz_item some_item = { 123 };
|
||||||
XYZ_ITEM( some_item, XYZ_ORDER_FIRST );
|
XYZ_ITEM( some_item, XYZ_ORDER_FIRST );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user