Where did this lcl_ convention come from? The lcl_ prefix has no
meaning to a compiler or linker. If the intent is to make such
functions file-local, why not use the static keyword, or an anonymous
namespace instead, so that they actually *are* local also to the
tool-chain? (You can still keep the lcl_ prefix if you love it.)
Sure, in the normal case on normal platforms, it doesn't hurt that
such symbols are nominally global because other mechanisms
(visibility, DLL export) attempt to make sure they aren't in fact
visible outside the DSO/DLL they end up in anyway. But still.
(I am complaining because when attempting to link shitloads of LO code
into one executable / shared library, whicih I am experimenting with
for Android and which is necessary for iOS, such functions that have
identical mangled names, from separate modules, *will* clash. Sure,
it's trivial for me to then change the functions into static, but a
bit tedious.)
--tml
Context
- Is the lcl_LocalFunction naming convention useful? · Tor Lillqvist
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.