summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2012-12-11SAL_DELETE -> SAL_DELETED_FUNCTION, for a more descriptive nameLuboš Luňák
2012-12-11Introduce SAL_DELETEStephan Bergmann
Change-Id: I7ac7392646ea34fb2e6a9f15990aca05a2c1e484
2012-12-11use SAL_WARN_UNUSED_RESULT for OUString::replaceAllIvan Timofeev
Change-Id: I30754e4d0cb0c490e6c125ba034e2e0eac3751e7 Reviewed-on: https://gerrit.libreoffice.org/1297 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-12-10operator+ for stringbufferLuboš Luňák
This is to complement the RTL_FAST_STRING variant, which allows any combination, so even two stringbuffers. Change-Id: Ic15d81246b3d0f3e22b51c0516409e95c3a4dc8d
2012-12-10No config_global.h in SDKStephan Bergmann
Change-Id: I6e9947f056c0b70d629ac27d57b3d7d115f8d487
2012-12-10Do not fail for unset OSL_DEBUG_LEVEL (as happens in SDK)Stephan Bergmann
Change-Id: I0e9b8a251ed790d1505566ef4fa991309986522d
2012-12-10remove unneeded PCH stuffLuboš Luňák
Since the PCH is now explicitly included using the command line, it is no longer necessary to have include guards or #ifdefs for enabling it. Change-Id: Ie64fdc75129af7097213d86f2daec461993fb6f4
2012-12-10no longer necessary to add include path for PCH headerLuboš Luňák
MSVC uses full path with -FI, Clang uses full path to .pch file. Change-Id: I403a8a919a8b672d1e98c2ea1fee50097e535351
2012-12-10rename to gb_Library_set_precompiled_headerLuboš Luňák
There can be only one precompiled header with some compilers anyway. Change-Id: I59e84bee2f57f36753b59b7518d701573affac12
2012-12-10#define _BSD_SOURCE to 1 (that's what compilers set it to, at least)Luboš Luňák
Change-Id: Id192488bb89d7f57dbd7ae3ddd33fb2b7569172e
2012-12-10include guards for precompiled_xxx.hxx filesLuboš Luňák
It seems this makes clang somewhat faster. Change-Id: I5a22763acf7991c45d7e9fd25eb0b5bda1fae27f
2012-12-10more headers to be precompiled for salLuboš Luňák
2012-12-10testing PCH support in salLuboš Luňák
Change-Id: Ie8c981a0d02f06738d2082abf6ef345f24449ffa
2012-12-10-Werror,-Wtautological-constant-out-of-range-compareStephan Bergmann
Change-Id: I99ae1590067d66f0af968833bc75d773ad3cb15c
2012-12-10Avoid "deleted function definitions are a C++11 extension" in a better wayTor Lillqvist
Tell also Apple's Clang to compile to the "gnu++0x" standard. Change-Id: Ia9f5f2f5a62ac8c0cbbfbbdffede6f308aea8534
2012-12-09WaE: deleted function definitions are a C++11 extensionTor Lillqvist
Change-Id: I8f070fb53c0310761c3a0a2407d48ca1c1ac5e18
2012-12-07add rtl::OUStringBuffer::append(bool)Luboš Luňák
The same as 563fa900ba22bf83dfa58e67807ed0337f810576 , but this time with extra care to not break anything with pointer->bool conversions. Change-Id: Ifcea840e96da0fbfcf92b54141fb8ef9c5eb94ff
2012-12-07use config_xxx.h files instead of -DHAVE_XXX on the command lineLuboš Luňák
As the latter does not quite scale, and also source files depending on the setting/feature did not rebuild in case of a change. There are intentionally more config_xxx.h files (so autoheader from autotools is not used), so that a setting change does not force automatically a rebuild of everything. Running configure does not touch those config_xxx.h files that have not changed. There's config/README with a howto. Change-Id: I6d6e82050ff8faf5364ed246848b8401aca3e0e5
2012-12-06OUStringBuffer::remove( int ) -> truncate( int )Luboš Luňák
Although this may seem consistent with remove( int, int ), it is in fact rather misleading API. The biggest offender is most probably buffer.remove( 'a' ) , which definitely does not do what it suggests to do. Change-Id: I287619cd4b953228b93fa68fb381d66c344c3865 Reviewed-on: https://gerrit.libreoffice.org/1256 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-12-06int vs oslInterlockedCount ambiguityLuboš Luňák
Change-Id: I096b1232427ad6996e0b2cfafc9ba38386e19208
2012-12-06unittest for fast string operator+ not allowing unwanted combinationsLuboš Luňák
Change-Id: I5891efcec7db373407a661636108fd979839db52
2012-12-06use rtl_(u)string_alloc where the contents clearly don't need to be clearedLuboš Luňák
Change-Id: I3e8d8f123aaa43ee3721fae6f220a8c5f959a0ea
2012-12-06mvoe rtl_(u)string_alloc to salLuboš Luňák
No point in hidding something useful like this in some helper lib. Change-Id: I7332d7f6bd428378cd19e7e95ad130771a541140
2012-12-06acquire on the shared empty string does nothingLuboš Luňák
Change-Id: I03a38c387044bda8cec6287ab41c6d202c496473
2012-12-06pass string by reference instead of by valueLuboš Luňák
Should not make that big difference, but still. Should not be BIC in practice because it's inline. Change-Id: I53ec7dec46356fb63b0f6f73579cff1ca8495fbf
2012-12-06support for fast string operator+ in operator+=/appendLuboš Luňák
Not much point in building a string instance that will be copied elsewhere immediatelly. Change-Id: I38b7d3696f2c619e6424eb3959b00cd2c7738c47
2012-12-06rtl_(u)String_ensureCapacityLuboš Luňák
Ensure there will be enough extra space in a string, to be used for string appending. A bit like rtl_(u)String_newConcat(), but without the function actually appending anything. Unlike the stringbuffer variant this does not allocate any extra. Change-Id: Ic6f84bf014a713f9912c81d8f1405c593978822d
2012-12-06add doxygen tags to the internal fast string stuffLuboš Luňák
Change-Id: Ie5026c116f9cc7d5b10981d53881f8a0d7986a68
2012-12-06remove needless friend declarationLuboš Luňák
Change-Id: Ib816e8126193a3477fca1334d7526743da0d4423
2012-12-06ostream/OString operator<< no longer neededLuboš Luňák
Change-Id: I223a9088a3465a51ea44ef28ac604f3d864f933c
2012-12-06reduce a bit the rtl vs rtlunittest mess in string headersLuboš Luňák
Change-Id: I27bf6d5466313a7e4a1363f481b2bd7eab142a5c
2012-12-06committed by mistakeLuboš Luňák
Change-Id: I40a4aa2239736a081a94b04c2f510866be5ac54c
2012-12-06API CHANGE: drop obsolete rtl/oustringostreaminserter.hxxStephan Bergmann
...its functionality moved directly into rtl/ustring.hxx Change-Id: I5a1af63a4fd61c71e6594f1fab0c17f503fdd1c5
2012-12-06Put stubs for removed functionality into compat.cxxStephan Bergmann
Change-Id: I634c6c699f8573113cdf0763c2cc83dcc04b0b0e
2012-12-04LIBO_UDK_3.7 -> LIBO_UDK_4.0Luboš Luňák
There will be no 3.7. Change-Id: Ib2808aa259baaa7eac42c7ec7a640105fc8c07a1
2012-12-04replace #pragma weak with __attribute__((weak))Luboš Luňák
They do the same in this case, but clang doesn't know the former and warns. Change-Id: I4895f80d4b25c147e073f3fea7db6fd2acfb84a4
2012-12-04remove unused variables and codeLuboš Luňák
Change-Id: I4cd76fb5bb3187a9a25e9a73556c8ee3be1a5361
2012-12-04sal: warning C4267: return: conversion from 'size_t' to 'int'...Michael Stahl
... possible loss of data. Minimal fix that inserts casts when calling strlen; other option would be to change all length() to return size_t... Change-Id: I5d1e0b0c7175a1957aad3acd89884fcd37089454
2012-12-04Fixup: putting back dummy methods for removed semaphoreThorsten Behrens
We don't want to change sal SONAME just yet. Change-Id: I3a9de9a53a4ba845c00a26450e281534ca5d97f6
2012-12-04API CHANGE: remove long-deprecated Semaphore & related stuff.Thorsten Behrens
osl::semaphore was not portable & thusly long-deprecated. Also killing further unused clients of that code in salhelper. Change-Id: Ie1c1924e06e8ce3be33fd1dc2c6933f2de8b5217
2012-12-04fix non-fast string operator+ debug buildLuboš Luňák
the asserts I've added need string.h , which was not available in that case Change-Id: If8dbedcb48400e5edd0bde0214640c2c392fde2b
2012-12-04Fix fast concat of empty stringsStephan Bergmann
Change-Id: Ice9c6974f44be3bc4c9b3533de2a9beb5b146ca5
2012-12-04mac gcc 4.0.1 does not support __attribute((warn_unused_result)) very wellNorbert Thiebaud
Change-Id: Ie8a6a06cd923192891453c9291f37709dfc15079
2012-12-03fix capacity in stringbuffersLuboš Luňák
rtl_stringbuffer_* functions silently allocate +16 extra for capacity, but rtl_string_* functions do not. As intuitive and obvious as ever. Change-Id: Ia0bb63dedf31f6ad5c687187221d7385043b5456
2012-12-03avoid unused warning in non-debug modeLuboš Luňák
Change-Id: I9687f5388a8c01075ee6e359ff9350edff296f4d
2012-12-03assert on strange lengths of string literalsLuboš Luňák
It's better to detect corner cases this way rather than get possibly incorrect results. And strlen() should be easy to optimize out for string literals. Change-Id: Id762e256207668a0cbefe4e13d5f2067f373e783
2012-12-03make sure fast string operator+ is used only by LO codeLuboš Luňák
Change-Id: Iaa8fc379e4d032931c0f60a3e3525783d8d28964
2012-12-03fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák
Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
2012-12-03support for fast O(U)String concatenation using operator+Luboš Luňák
Operator+ now, instead of requiring O(U)String operands and returning another O(U)String object, keeps a track of the whole concatenation operation using temporary O(U)StringConcat objects and performs the whole operation only at the very end. Change-Id: I94b3348300a137498514d26e96459c1698328520
2012-12-03Improve English commentsNaser Sharifi
Corrected types and grammer errors in comments Change-Id: I47ce77a8d36d71677720be6dd80594ec76970376