[Libreoffice-bugs] [Bug 124799] osl_getEnvironment wrapper ...

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 17 15:35:56 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124799

--- Comment #1 from Stephan Bergmann <sbergman at redhat.com> ---
An include/osl/process.hxx C++ wrapper is curiously missing indeed.  However:

* If we add one, it should probably cover C++ wrappers for all (or at least
most) of the include/osl/process.h C functionality.

* Even though that would be inline functions, we would need to get them right
"on first shot", because MSVC tends to export even such inline functions from
the __declspec(dllexport) DLL (and rely on that from __declspec(dllimport)'ing
DLLs).

* osl_getEnvironment returns oslProcessError, the C++ wrapper should probably
return such an error code too (if only to be able to distinguish between unset
and empty env vars).

* An optionalDefault brings up the question whether it should be returned only
for unset or also for empty env vars.  Different callers may have different
needs/expectations, and I'm not sure whether such an optional arg would be
worth it anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190417/7720a3ea/attachment.html>


More information about the Libreoffice-bugs mailing list