]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tables] Add ability to declare static table start and end markers
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Feb 2022 13:13:37 +0000 (13:13 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 14 Feb 2022 13:21:09 +0000 (13:21 +0000)
commit1150321595c44acfac2b2c56590d4d7f1d2ad70c
treec190091c416437feb53247945a47ae71695812d7
parent0bbd8967830097b9141945ba960e90339c230ccb
[tables] Add ability to declare static table start and end markers

The compound statement expression within __table_entries() prevents
the use of top-level declarations such as

  static struct thing *things = table_start ( THINGS );

Define TABLE_START() and TABLE_END() macros that can be used as:

  static TABLE_START ( things_start, THINGS );
  static struct thing *things = things_start;

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tables.h