]> git.ipfire.org Git - thirdparty/systemd.git/commit
locale-util: mark special_glyph() as _const_ 3220/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2016 15:24:08 +0000 (11:24 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2016 19:17:57 +0000 (15:17 -0400)
commitdff4bf93d449b9d9086123521f83d68e98cecd09
treeab934bca80ab4a771f1d6df2718d3498e7696d1d
parent323b7dc90343f11febf9e87872d3e8ffded11849
locale-util: mark special_glyph() as _const_

_const_ means that the caller can assume that the function will return the same
result every time (and will not modify global memory). special_glyph() meets
this: even though it depends on global memory, that part of global memory is
not expected to change. This allows the calls to special_glyph() to be
optimized, even if -flto is not used.
src/basic/locale-util.c
src/basic/locale-util.h