[Mesa-dev] [PATCH] glsl: add a missing call to _mesa_locale_init

Matt Turner mattst88 at gmail.com
Thu Jul 2 14:54:42 PDT 2015


On Thu, Jul 2, 2015 at 2:22 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Can this be done at dlopen/init time? For example what happens if you do
>
> static int foo = _mesa_locale_init()
>
> IIRC things like that are possible in C++, not sure about C.

gcc has __attribute__((constructor)).

But I don't think we really care... Erik's series converted the strtod
code from C++ to C (including moving locale init from being a static
constructor to being called in one_time_init) and fixing the memory
leak.


More information about the mesa-dev mailing list