summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2012-03-23removed duplicate includes in salTakeshi Abe
2012-03-22Add JNI wrappers for InitVCL and osl_setCommandArgsTor Lillqvist
2012-03-22No point searching PATH on Android and iOSTor Lillqvist
2012-03-22Clarify rtl_bootstrap_get documentation.Will Thompson
2012-03-22rtl::bootstap: rename filename parameter to contain "uri"Will Thompson
2012-03-22MinGW apparently needs to be forced into __cdeclStephan Bergmann
...otherwise bridges/source/cpp_uno/mingw_intel C++ ABI assumptions would not meet what i686-w64-mingw32-g++ emits (though it is unclear to me how this shall ever have worked before, as kendy claims it once did; also, at least for me, "wine soffice.exe" still does not work, as there is apparently confusion about C++ exception stack unwinding between GCC and cpp_uno/mingw_intel code).
2012-03-21chmod -xTor Lillqvist
2012-03-21More hacking on static linking (iOS) supportTor Lillqvist
2012-03-21Need the weird vnd.sun.star.pathname: prefixTor Lillqvist
2012-03-21Simply hardcode the inifile as "rc" in the app bundle directory on iOSTor Lillqvist
2012-03-21Clean up OSL_TRACE output a little bitTor Lillqvist
2012-03-18sal_osl_module depends on Module_DLL (uses the library)Luboš Luňák
2012-03-16sal: fix warningsMichael Stahl
2012-03-16sal: remove unx implementation of osl_sendResourcePipe/osl_receiveResourcePipeJonathan Adams
These are deprecated and not used in LO.
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann
...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed.
2012-03-13checked that we do not use OString ctor with literals with \0'sLuboš Luňák
Except in some unittests, which are sometimes rather silly and broken about it, which might explain why they're disabled.
2012-03-13make OString work even with old gcc that has SFINAE brokenLuboš Luňák
Since OString already has a ctor accepting const char*, I cannot find out a way to distinguish string literals other than using a template, otherwise const char* somehow takes precedence (all of gcc, clang, msvc). But the template requires the Substitution Is Not A Failure Idiom to actually create only wanted instances. And the compiler can try evaluate the OString ctor as a possibility when comparing an int to an anonymous enum, and anonymous enum as a type without linkage cannot be a template argument before C++11. SFINAE should still work, but not with gcc older than 4.0.2 (which we right now use only on macs). So for that case disable the string literal ctors, which means macs will have one extra strlen call, and also that embedded \0's in string literals will be inconsistent. The tiny performance problem shouldn't matter that much and will eventually go away, the \0 problem should not matter, since before string literal ctors were introduced \0's had not been included anyway unless RTL_CONSTASCII_STRINGPARAM was used. So we should be safe and when removing the CONSTASCII macros \0 cases should be handled by explicitly mentioning the length.
2012-03-13Removed FileStatus::isFile. Use ::isRegular instead.Josh Heidenreich
See: https://bugs.freedesktop.org/show_bug.cgi?id=44982#c6 https://bugs.freedesktop.org/show_bug.cgi?id=44982#c7 for why.
2012-03-13Use _NSGetExecutablePath also on iOSTor Lillqvist
2012-03-12SAL_DLLPUBLIC_TEMPLATELuboš Luňák
On Linux, public templates should not be hidden at the linker level. But on Windows, dllimport causes trouble. So create a new macro to be used specifically with templates that does the right thing on both platforms. (http://lists.freedesktop.org/archives/libreoffice/2012-March/028041.html and followups)
2012-03-12handle msvc not even compiling a test that should failLuboš Luňák
but that is fine, because outside the unittest it should fail everywhere
2012-03-12Fix Android compilation errorTor Lillqvist
2012-03-12@since 3.6 -> @since LibreOffice 3.6Luboš Luňák
To help distinguish between OOo derivatives.
2012-03-12implement OUString::endsWithIgnoreAsciiCase()Luboš Luňák
match() has matchIgnoreAsciiCase(), so it makes sense that endsWith() also has the IgnoreAsciiCase variant, especially given there already is endsWithIgnoreAsciiCaseAsciiL()
2012-03-12also check that string literals do not actually trigger OUString ctorsLuboš Luňák
2012-03-12forgot to disable mixed char and const char overloadsLuboš Luňák
the comment was wrong, char gets converted to const char, not the other way around
2012-03-12unittest checking basic string literals OUString functions functionalityLuboš Luňák
2012-03-12unittests for some possible OUString string literal handling problemsLuboš Luňák
2012-03-12replace usage of OUString::replace*AsciiL() with string literal overloadsLuboš Luňák
2012-03-12replace replace*AsciiL() OUString methods with string literal onesLuboš Luňák
The AsciiL variants are new for 3.6 anyway, so there's no need to keep new functions that'd be obsolete before their first release.
2012-03-12string literal overloads for some OUString methodsLuboš Luňák
2012-03-12some fixes for OUString docsLuboš Luňák
2012-03-12make the OUString unittest ctor contain garbageLuboš Luňák
this will make it easier to detect errors, rather than making it empty
2012-03-12prevent using RTL_CONSTASCII_* macros with string literal functionsLuboš Luňák
This is to prevent things like by mistake doing match( RTL_CONSTASCII_STRINGPARAM("foo")), which will call match(const char(&)[N], int=0), where the second argument is the fromIndex argument.
2012-03-12OString ctor for string literals without RTL_CONSTASCII stuffLuboš Luňák
2012-03-12rtl_uString_newFromLiteral() for string literalsLuboš Luňák
Drop the recently introduced rtl_uString_newFromAscii_WithLength() and replace it with this one. The name fits better and it'll be also a distinct function that specifically includes embedded \0's (because that's what OUString supports and if a string literal explicitly includes it, it makes sense to copy it as such).
2012-03-12osl_loadModuleRelativeAscii was erroneously not exportedStephan Bergmann
2012-03-12module.c -> module.cxx, use sal/log.hxxStephan Bergmann
2012-03-11sal_Bool to bool in SAL_LOG if possibleLuboš Luňák
otherwise clang warns about things like 1 && 1
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan
2012-03-10SAL_DLLPUBLIC_IMPORT with gcc should not be emptyLuboš Luňák
Otherwise when using a template from another module, an instance of it may end up being non-exported even though it's used by something exported.
2012-03-09Let osl::FileStatus getters assert programming errorsStephan Bergmann
...instead of arbitrarily returning certain values when the requested information is not available. This reveals a problem in strmunx.cxx that is apparently a regression introduced with 4a086fca7b0a77c20bc9f1c97507966e2861f3da "fix SvStream to not require a custom open or lstat method."
2012-03-09Fixed @since tagsStephan Bergmann
2012-03-09sal file.hxx documentationJosh Heidenreich
2012-03-09Added FileStatus methods isFile, isDirectory, isRegular, isLinkJosh Heidenreich
2012-03-08In osl::Thread::create, do not access members after starting the threadStephan Bergmann
...as the Thread may already have been destroyed by that time. Also, no need to programmatically check fro programming errors when they have already been addressed by assert.
2012-03-07use the new license header, this file has been written by meLuboš Luňák
2012-03-07probable intentDavid Tardon
2012-03-07WaE: missing braces around initializerDavid Tardon
2012-03-07suppress compiler error when building with -WerrorDavid Tardon
Return value of the function is set by the inline assembler code.