Remove maximum length field from DBusString
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 22 Jun 2011 13:57:56 +0000 (14:57 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 22 Jun 2011 18:15:05 +0000 (19:15 +0100)
commit16b96009641749c600af28245f7f6f92bd53dcb8
tree862b72b6ba5c93d152af1bdd26260680f6f64174
parente3b9a0597c03afe1b3e2d27a16be4bbc85dcea3d
Remove maximum length field from DBusString

The source code says it's "a historical artifact from a feature that
turned out to be dumb". Respond accordingly!

This reduces sizeof (DBusString) by 20% on ILP32 architectures, which
can't hurt. (No reduction on LP64 architectures that align pointers
naturally, unfortunately.)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38570
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
dbus/dbus-string-private.h
dbus/dbus-string-util.c
dbus/dbus-string.c
dbus/dbus-string.h