summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* Fix 32-bit buildsStephan Bergmann2014-12-171-2/+2
| | | | Change-Id: I09049db51668176b90dabe2c82d525b2fab60299
* rtl::OUStringLiteral to the rescueStephan Bergmann2014-12-171-0/+18
| | | | | | | ...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
* Introduce rtl::OUStringLiteral1Stephan Bergmann2014-12-171-0/+24
| | | | | | | | | | | | | | | | | | ...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
* Bin code that became dead after 8ecf956d79878c9b24f5ddc51d6b723a76d334f5Tor Lillqvist2014-12-171-87/+0
| | | | Change-Id: I310abed7e86f8b7153817be5ae03cc3c8fec3c50
* sal: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-164-24/+22
| | | | Change-Id: I4382504549eb1e3a8c34495a21d6df10a86ac23b
* sal: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-122-4/+5
| | | | Change-Id: I568c2e0c9b5b234d941e17d57bcb53374626909e
* osl_getCommandArg always returns osl_Process_E_NoneStephan Bergmann2014-12-122-36/+31
| | | | Change-Id: I0ff1e44f17976fd3a3060d8ee7fe15d77c918b79
* [API CHANGE] Remove .link feature from bootstrap variablesStephan Bergmann2014-12-051-25/+0
| | | | | | | | | | 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
* android: use ByteBuffer to send or store pointers in JNI bindingsTomaž Vajngerl2014-12-041-2/+6
| | | | | | | | | | | 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
* Don't keep the LibreOfficeKit pointer in a global variableTor Lillqvist2014-12-041-7/+4
| | | | | | It is invalid in case lo_destroy() has been called. Change-Id: I45533b66d32fc650e48748da8ea1d2f2aaa381e0
* [API CHANGE] Remove osl_setCommandArgsStephan Bergmann2014-12-043-17/+4
| | | | | | | | | | ...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
* Still no need for osl_setCommandArgsStephan Bergmann2014-12-042-1/+2
| | | | | | (TOCTOU and all) Change-Id: I81253c8790b631117634bafa4eea65991a975ba0
* -Werror,-Wkeyword-macroStephan Bergmann2014-12-021-1/+0
| | | | Change-Id: I4a42c9f795cfbaa0f6c7b68d8189204a63da2321
* Fold URE: Linux ure/lib/* -> program/Stephan Bergmann2014-11-281-4/+0
| | | | | | | 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
* Make osl_getExecutableFile work even without a prior osl_setCommandArgsStephan Bergmann2014-11-274-89/+30
| | | | | | | | | | | | | | | 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
* Needless indirectionStephan Bergmann2014-11-261-7/+2
| | | | Change-Id: Idf514941f4bb05834d8ac0d7bafbe86e34377611
* Adapt some logs and assertionsStephan Bergmann2014-11-252-11/+14
| | | | | | | ...cf. previous 2ad716f406e0fdb9b9294876c64ae92fecbf5e27 "Revert 'pyuno: set up fake command line in getComponentContext().'" Change-Id: Ia77132465ada17a5839f9d4f9ccaf20f8b113075
* Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann2014-11-252-26/+10
| | | | | | | | | | | | | | | 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
* typo: unknownAndras Timar2014-11-241-1/+1
| | | | Change-Id: If89443c1668ca01c826c8fc353b20097c7da7bf4
* Erm, setenv, not putenvStephan Bergmann2014-11-231-32/+15
| | | | | | | | ...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
* Silence false cid#1255391 TOCTOU warningStephan Bergmann2014-11-211-0/+4
| | | | Change-Id: Ifc35c379d5c68fb363ae3507ccb5bff37c8cd9aa
* cid#1209049: Unchecked return valueStephan Bergmann2014-11-211-1/+9
| | | | Change-Id: I7422cb010c38de34a7effa6124c5146f70419f79
* cid#1255386: Unchecked return valueStephan Bergmann2014-11-211-5/+7
| | | | Change-Id: Id55f27a3e1a35d1c5ebeccdd9a853f661b5c1746
* osl_getVolumeInformation: only stat if necessaryStephan Bergmann2014-11-201-66/+71
| | | | | | ...in the hope that that makes cid#706206 (TOCTOU) go away Change-Id: I4bc7b44e0268cf5d46aaf55fb4073dcdf67b324c
* sal: fix build with clang and --enable-crashdumpMichael Stahl2014-11-201-4/+4
| | | | Change-Id: I148005489e4ef31b55886c1dd3076650d3a2ec17
* At least old Mac OS X does not know AT_FDCWDStephan Bergmann2014-11-201-2/+5
| | | | | | ...lets hope it is actually declared as a macro wherever it is known. Change-Id: If541d02af3ac5d9ad4f0ac1cb4dd9f9f4550a78a
* Let attemptChangeMetadata work on symlink itselfStephan Bergmann2014-11-201-10/+16
| | | | Change-Id: I42a81e70e76cb4699052815cfd415a8efd902b03
* fdo#83529: Only preserve metadata of moved, not copied filesStephan Bergmann2014-11-201-30/+22
| | | | Change-Id: If3e436d137b6989af22df43c3a9a247bb2c9ffe9
* Introduce OStringBuffer::appendUninitializedStephan Bergmann2014-11-202-4/+9
| | | | | | ...corresponding to the OUStringBuffer couterpart Change-Id: I3ab03343696e6755cf1ccc470e4decc2f41d2558
* len cannot be <= 1 hereStephan Bergmann2014-11-202-2/+2
| | | | Change-Id: I482e6eeca09e7b15a8d95a866ebab35d06f13e9e
* Needless assignment len -> nStephan Bergmann2014-11-201-2/+1
| | | | Change-Id: I9051284b34e5a6f3f48ee58243d6481b072e0a80
* Remove comment junkStephan Bergmann2014-11-202-8/+0
| | | | Change-Id: Ifaed964d084d0b7a2dacbc23a93fb77eb7515ab4
* Clean up Mac _imp_getProcessLocaleStephan Bergmann2014-11-205-22/+42
| | | | | | Introduces OUStringBuffer::appendUninitialized. Change-Id: If225ec4d798e0df91cad60130e3f22ee26b88abb
* Unused return valueStephan Bergmann2014-11-202-4/+2
| | | | Change-Id: I963d001aee68f1218ba7273562cb41f3cf4c5e20
* sal: fix --enable-crashdump build in new C++ world orderMichael Stahl2014-11-201-4/+4
| | | | Change-Id: I95e4f43f4ef40e8c04b37002bbae03f4f23a9e34
* Blind fix for AndroidStephan Bergmann2014-11-191-1/+1
| | | | Change-Id: I091fa9f9fd4c2df1818aadcba7995b174b07f098
* system.h -> system.hxxStephan Bergmann2014-11-1923-30/+24
| | | | Change-Id: I39a60d0b775bfe40fa89e8b5d5f7466d0db5d36e
* Remove obsolete osl_searchPath_implStephan Bergmann2014-11-193-81/+55
| | | | | | (obsoleting cid#983584) Change-Id: Icbf25bd364fdabb208abe201ddc146daa60f9b62
* Fold file_path_helper.h into file_path_helper.hxxStephan Bergmann2014-11-195-237/+200
| | | | Change-Id: Ifad9594eb6fa396e32818b6d2bafc16adb478994
* signal.c -> signal.cxxStephan Bergmann2014-11-192-19/+17
| | | | Change-Id: I1d7f47b81e558a071a6beb52999d0bca185f02d5
* HAVE_FEATURE_CRASHDUMP instead of manual SAL_ENABLE_CRASH_REPORTStephan Bergmann2014-11-192-12/+15
| | | | Change-Id: Ifaf971d77f11cef207706989bba11dbe2028ca79
* Revert "-Werror,-Wc++11-compat-deprecated-writable-strings"Stephan Bergmann2014-11-191-1/+1
| | | | | This reverts commit 0e589394e8452ee8dea8e807d3b5ef6620a1c6c1, which was a misguided attempt at solving a problem already solved by Tor.
* -Werror,-Wc++11-compat-deprecated-writable-stringsStephan Bergmann2014-11-191-1/+1
| | | | Change-Id: I4a8cbbbebe9833625af4805074d0c68ef3623ebd
* ISO C++11 does not allow conversion from string literal to 'char *'Tor Lillqvist2014-11-191-1/+1
| | | | Change-Id: I098d0b8b3428cbf57a69c331515093df36e0c172
* Fold uunxapi.h into uunxapi.hxxStephan Bergmann2014-11-195-77/+41
| | | | Change-Id: Ic16758e436da13684320e7e3bf07b80d8d8c7c5d
* sockimpl.h -> sockimpl.hxxStephan Bergmann2014-11-194-35/+27
| | | | Change-Id: Ic11f5e0923b8b9d656b74b900f52ff154bb65971
* secimpl.h -> secimpl.hxxStephan Bergmann2014-11-194-18/+10
| | | | Change-Id: I0fb87c5658bd02e327df8fdf3e0aa79f20bbc111
* saltime.h -> saltime.hxxStephan Bergmann2014-11-193-12/+4
| | | | Change-Id: I930c581525ed5b02dd8850e9781b01eed12c857f
* readwrite_helper.h -> readwrite_helper.hxxStephan Bergmann2014-11-195-24/+15
| | | | Change-Id: If0d71f0660d60e3bcea4db3906ffe600e00f69f2
* Fold procimpl.h into process.cxxStephan Bergmann2014-11-192-44/+8
| | | | Change-Id: I1adcaeea7a1a3f7a3634897821f15443dbc78e94