https://bugs.documentfoundation.org/show_bug.cgi?id=124799
--- Comment #4 from Michael Meeks <[email protected]> ---
Ah - sorry for not being clear; I'm suggesting a:
git grep osl_getEnvironment
and consider how many uses outside sal/ make a legitimate distinction between
NULL and empty environment variables. An:
OUString aWastedLineAndNoFunctionNesting;
if (new_getenv("FOO", aWastedLineAndNoFunctionNesting) ==
long_enumeration_value)
{
Do nothing that useful;
}
function_using_env(aWastedLineAndNoFunctionNesting);
I would suggest is prettier as:
function_using_env(new_getenv("FOO"));
But of course - there is always the native C API if people want something more
complex.
Then again - using 'getenv()' is the progammers' choice anyway - with 320 hits
- an order of magnitude more - presumably because it is easier to use, read,
understand etc.. =)
Otherwise amazing point on the MSVC exporting of inlines - that's rather
interesting! quite possibly we should put the API somewhere higher up then
where it can be simpler and better adapted for our uses-cases (?)
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs