summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2014-12-27boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-20TyposJulien Nabet
Change-Id: I3475be796cf2655d9b619b86c9686aeef4b97b82
2014-12-19constants via #define must be integer if used in #if statementChristian Lohmaier
breaks windows build otherwise (fatal erro C1017) Change-Id: Idae78c621bfb8f989eb33220f015e17a7b7fb92f
2014-12-19Assert ASCII precond of rtl_uString_newFromAscii/LiteralStephan Bergmann
...and there is no reason for such a precond for rtl_string_newFromLiteral Change-Id: I27f7217c8db17cef860c37886d0f7e561dc852f8
2014-12-19IMPL_RTL_INTERN -> IMPL_RTL_IS_USTRINGStephan Bergmann
Change-Id: I9793f697f14118340bc6db89540fe50ad0b8ccbd
2014-12-19fdo#39440 sal: reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: Id5f90757571e76a2c05a4cbd37020e1f6a6b2033 Reviewed-on: https://gerrit.libreoffice.org/13544 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-19No need for RTL_FAST_STRING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
Change-Id: I5514898f588b21bafceefca95e3276826cb9a882
2014-12-19No need for RTL_USING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
Change-Id: Iaa65658aed6bb4abb20a4d95dc9c6caf7c1c764b
2014-12-19Remove unused */qa/checkapi/Stephan Bergmann
...superseded by CppunitTest_odk_checkapi Change-Id: I5df89a1a12f496984deab153f0ba2734323c1293
2014-12-17Fix 32-bit buildsStephan Bergmann
Change-Id: I09049db51668176b90dabe2c82d525b2fab60299
2014-12-17rtl::OUStringLiteral to the rescueStephan Bergmann
...for cases where ? "a" : "bb" does not work, as well as to work around the MSVC bug for cases like ? "a" : "b". Change-Id: Id404716047aca5cc81440f291616d92365379b8f
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-17Bin code that became dead after 8ecf956d79878c9b24f5ddc51d6b723a76d334f5Tor Lillqvist
Change-Id: I310abed7e86f8b7153817be5ae03cc3c8fec3c50
2014-12-16sal: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I4382504549eb1e3a8c34495a21d6df10a86ac23b
2014-12-12sal: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I568c2e0c9b5b234d941e17d57bcb53374626909e
2014-12-12osl_getCommandArg always returns osl_Process_E_NoneStephan Bergmann
Change-Id: I0ff1e44f17976fd3a3060d8ee7fe15d77c918b79
2014-12-05[API CHANGE] Remove .link feature from bootstrap variablesStephan Bergmann
This feature had never been documented in include/rtl/bootstrap.h and had only been used internally in LO on Windows for the multi-layer installations (thus is unused since 827430c8c0417396b3c1d2a049ccddb818c89646 "Fold URE: Windows"), so it should not hurt to remove it even if it could be considered part of the stable URE interface. Change-Id: If0f59f30dad8b2c3ff5f7931c19cd254073ccf80
2014-12-04android: use ByteBuffer to send or store pointers in JNI bindingsTomaž Vajngerl
Using direct ByteBuffer is much nicer option to store or send pointers between C(++) code and Java via JNI as it handles endiness and pointer size for us. Using "long" type can have unexpected results in 32-bit architectures (mostly Android). This was causing grief especially when Android introduced support for 64-bit architectures starting with SDK 19. Change-Id: Ie92d0f913b668e1724e846d70d1820445d9cb086
2014-12-04Don't keep the LibreOfficeKit pointer in a global variableTor Lillqvist
It is invalid in case lo_destroy() has been called. Change-Id: I45533b66d32fc650e48748da8ea1d2f2aaa381e0
2014-12-04[API CHANGE] Remove osl_setCommandArgsStephan Bergmann
...it was added late in the LO 3.3 cycle apparently by error. While this is strictly speaking an incompatible change, no client code should ever have called this deprecated, internal functionality anyway. An aborting stub is left in place for soname stability. Change-Id: Ibbc96ccf76a07a80d732a0713c95ff7b6bf1e528
2014-12-04Still no need for osl_setCommandArgsStephan Bergmann
(TOCTOU and all) Change-Id: I81253c8790b631117634bafa4eea65991a975ba0
2014-12-02-Werror,-Wkeyword-macroStephan Bergmann
Change-Id: I4a42c9f795cfbaa0f6c7b68d8189204a63da2321
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
The ../../../program/ links in the URE jar Class-Paths are a temporary kludge (and juh.jar had lacked adaption for Mac OS X). Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
2014-11-27Make osl_getExecutableFile work even without a prior osl_setCommandArgsStephan Bergmann
After 2ad716f406e0fdb9b9294876c64ae92fecbf5e27 "Revert 'pyuno: set up fake command line in getComponentContext(),'" e.g. PythonTest_sw_python would fail on Windows, where WinSalGraphics::GetDevFontList (vcl/win/source/gdi/salgdi3.cxx) calls osl_getExecutableFile and is itself called in a python process where osl_setCommandArgs has not been set up. This patch makes osl_getExecutableFile on all platforms if osl_setCommandArgs has not (yet) been set fall back to the code that was osl_bootstrap_getExecutableFile_Impl (which was called from sal/rtl/bootstrap.cxx, which can now call osl_getExecutableFile). Change-Id: I6c1bb59205041b3208c830a8b8406e28128b4566
2014-11-26Needless indirectionStephan Bergmann
Change-Id: Idf514941f4bb05834d8ac0d7bafbe86e34377611
2014-11-25Adapt some logs and assertionsStephan Bergmann
...cf. previous 2ad716f406e0fdb9b9294876c64ae92fecbf5e27 "Revert 'pyuno: set up fake command line in getComponentContext().'" Change-Id: Ia77132465ada17a5839f9d4f9ccaf20f8b113075
2014-11-25Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann
This reverts commit 2386a92c1e6e8ec263edb4dc4fdcfeaa4673ce1f and its follow-ups 1acaa577b67158c060d2f57414f7aea86504a489 "sal: add special handling of argc==0 to osl_setCommandArgs()" and 01f27b5e5d428cc3c4aeabdcbbb8204494fbd435 "sal: fix osl_setCommandArgs() on WNT." The situation that osl_getCommandArgCount is called without a prior call to osl_setCommandArgs should be considered as harmless and can legitimately not only happen in the pyuno case discussed in the reverted commits, but also in case binary UNO is bootstrapped from within a Java process, as happens in test-javanative in ure/source/uretest/Makefile. Change-Id: I2829db390e37dfe5daeda33a4c0659b7d35e565a
2014-11-24typo: unknownAndras Timar
Change-Id: If89443c1668ca01c826c8fc353b20097c7da7bf4
2014-11-23Erm, setenv, not putenvStephan Bergmann
...so no need to leak an OString (and no need for a static char const *locale, as osl_getProcessLocale calling _imp_getProcessLocale already takes care about that). Change-Id: Ic831415596fe44335a6b12b5d884e781368676b8
2014-11-21Silence false cid#1255391 TOCTOU warningStephan Bergmann
Change-Id: Ifc35c379d5c68fb363ae3507ccb5bff37c8cd9aa
2014-11-21cid#1209049: Unchecked return valueStephan Bergmann
Change-Id: I7422cb010c38de34a7effa6124c5146f70419f79
2014-11-21cid#1255386: Unchecked return valueStephan Bergmann
Change-Id: Id55f27a3e1a35d1c5ebeccdd9a853f661b5c1746
2014-11-20osl_getVolumeInformation: only stat if necessaryStephan Bergmann
...in the hope that that makes cid#706206 (TOCTOU) go away Change-Id: I4bc7b44e0268cf5d46aaf55fb4073dcdf67b324c
2014-11-20sal: fix build with clang and --enable-crashdumpMichael Stahl
Change-Id: I148005489e4ef31b55886c1dd3076650d3a2ec17
2014-11-20At least old Mac OS X does not know AT_FDCWDStephan Bergmann
...lets hope it is actually declared as a macro wherever it is known. Change-Id: If541d02af3ac5d9ad4f0ac1cb4dd9f9f4550a78a
2014-11-20Let attemptChangeMetadata work on symlink itselfStephan Bergmann
Change-Id: I42a81e70e76cb4699052815cfd415a8efd902b03
2014-11-20fdo#83529: Only preserve metadata of moved, not copied filesStephan Bergmann
Change-Id: If3e436d137b6989af22df43c3a9a247bb2c9ffe9
2014-11-20Introduce OStringBuffer::appendUninitializedStephan Bergmann
...corresponding to the OUStringBuffer couterpart Change-Id: I3ab03343696e6755cf1ccc470e4decc2f41d2558
2014-11-20len cannot be <= 1 hereStephan Bergmann
Change-Id: I482e6eeca09e7b15a8d95a866ebab35d06f13e9e
2014-11-20Needless assignment len -> nStephan Bergmann
Change-Id: I9051284b34e5a6f3f48ee58243d6481b072e0a80
2014-11-20Remove comment junkStephan Bergmann
Change-Id: Ifaed964d084d0b7a2dacbc23a93fb77eb7515ab4
2014-11-20Clean up Mac _imp_getProcessLocaleStephan Bergmann
Introduces OUStringBuffer::appendUninitialized. Change-Id: If225ec4d798e0df91cad60130e3f22ee26b88abb
2014-11-20Unused return valueStephan Bergmann
Change-Id: I963d001aee68f1218ba7273562cb41f3cf4c5e20
2014-11-20sal: fix --enable-crashdump build in new C++ world orderMichael Stahl
Change-Id: I95e4f43f4ef40e8c04b37002bbae03f4f23a9e34
2014-11-19Blind fix for AndroidStephan Bergmann
Change-Id: I091fa9f9fd4c2df1818aadcba7995b174b07f098
2014-11-19system.h -> system.hxxStephan Bergmann
Change-Id: I39a60d0b775bfe40fa89e8b5d5f7466d0db5d36e
2014-11-19Remove obsolete osl_searchPath_implStephan Bergmann
(obsoleting cid#983584) Change-Id: Icbf25bd364fdabb208abe201ddc146daa60f9b62
2014-11-19Fold file_path_helper.h into file_path_helper.hxxStephan Bergmann
Change-Id: Ifad9594eb6fa396e32818b6d2bafc16adb478994
2014-11-19signal.c -> signal.cxxStephan Bergmann
Change-Id: I1d7f47b81e558a071a6beb52999d0bca185f02d5
2014-11-19HAVE_FEATURE_CRASHDUMP instead of manual SAL_ENABLE_CRASH_REPORTStephan Bergmann
Change-Id: Ifaf971d77f11cef207706989bba11dbe2028ca79