chiark / gitweb /
locale-util: mark special_glyph() as _const_
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2016 15:24:08 +0000 (11:24 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commitf6999d6a1910bb438a7b1c051c44af50f14b42a8
tree51ca361fb9db13a34f821271f4ca536a568d9fac
parentbcd8aec4ff66a0f27b46d47df49e184da57a68b0
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