[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] glp_version: do not initialize env
From: |
Heinrich Schuchardt |
Subject: |
[Help-glpk] glp_version: do not initialize env |
Date: |
Sat, 14 Jan 2017 14:47:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Hello Andrew,
if a multithreaded application wants to determine if GLPK supports a
feature we now supply glp_config which does not initialize env.
I guess we should do the same for glp_version.
This makes env smaller and can safely be called even if the library is
not TLS enabled.
#define str(s) # s
#define xstr(s) str(s)
const char *glp_version(void)
{ return xstr(GLP_MAJOR_VERSION) "." xstr(GLP_MINOR_VERSION);
}
Best regards
Heinrich
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] glp_version: do not initialize env,
Heinrich Schuchardt <=