[systemd-devel] [PATCH] Use a shared lookup function for string tables

Bruno Bottazzini bruno.bottazzini at intel.com
Fri Feb 13 12:40:49 PST 2015


The macro DEFINE_STRING_TABLE_LOOKUP is expanding to a new function for
each tables. (I calculated it was aproximity 120 tables)

With this patch we move its implementation to a function to never be inlined.

This will make systemd to be a few kilobytes smaller.

Bruno Bottazzini (1):
  util: Use a shared lookup function for string tables

 src/shared/util.c |  9 +++++++++
 src/shared/util.h | 15 ++++++---------
 2 files changed, 15 insertions(+), 9 deletions(-)

-- 
1.9.1



More information about the systemd-devel mailing list