summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2012-12-01Remove useless getpid implementation on Linux.Arnaud Versini
The new minimal target have a proper getpid implementation. Change-Id: I1cf209d8b4cb651866287c3a682ebd0806ab35b9 Reviewed-on: https://gerrit.libreoffice.org/1219 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-12-01unused variablesLuboš Luňák
Change-Id: Ia8b2ac25d3949508b132d1b0b05e5384633d935f
2012-12-01but back a unittest check about invalid char[] -> OUString(Buffer) conversionLuboš Luňák
It's invalid, so the additional ambiguity here doesn't matter, but I'd still prefer to check that it remains invalid. Change-Id: Ie05d393ad7f51738383bb98b911938506abd64fc
2012-12-01OUStringBuffer constructor from OUStringBuffer should use const argNorbert Thiebaud
Change-Id: I9f9e072c0a7ebde2de9be811f2378143b2b7abc6 Reviewed-on: https://gerrit.libreoffice.org/1209 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2012-11-30eradicate all traces of OLocale and rtl/locale.hxxMichael Stahl
... damn language tags breaking builds left and right ... Change-Id: I73224cb3fb2bb98779fdcace700cad2a4fb7cd0e
2012-11-30ditched rtl::OLocaleEike Rathke
Change-Id: I3f4a09c82df1bc71759331705c502320f973d4bb
2012-11-30Find a more sensible place for cssStephan Bergmann
Change-Id: I33fe83c47954f62d8b678430e97cf711a98568d1
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-28We only support MSVC 2008 (_MSC_VER 1500) or laterTor Lillqvist
We can drop or simplify many conditionals. Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28add SAL_WARN_UNUSED_RESULT in OString and OUString where appropriateNorbert Thiebaud
String used to do some operation by modifying itself whereas OUString never does that and when a modificaiton is needed it create a new copy. so it is very easy when one convert String code to OUString code to miss stuff like sString.ToUpperCase() which need to be converted into sString = sString.toAsciiUpperCase() and not sString.toAsciiUpperCase() This patch make the compiler generate a warning in that later _wrong_ case Change-Id: I4a9c0b4c7d0b75ad8850ac23b86e8508a334f5fe Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-11-28Clean up previous rtl::OUStringBuffer changesStephan Bergmann
The OUString assignment operator is less transactional than it could be, but is also not necessasry, as OUStringBuffer has a non-explicit conversion constructor from OUString. Added some missing @since tags. Change-Id: I830be93fde78422c5a7eff9437b53e2d2d70933a
2012-11-28Fix rtl::OUString::compareToIgnoreAsciiCaseStephan Bergmann
Change-Id: I40005ef4fad4d44314ec2fb2881fec82e926970e
2012-11-27OUString has a matchIgnoreAsciiCase but no compareTo version of itNorbert Thiebaud
Change-Id: Ie02dc3511e262a3b13df38ddbe0b3136f291ac9e
2012-11-27add API to OUStringBuffer to make assignment/copy more versatileNorbert Thiebaud
Change-Id: I95cd8e97044cd5a65500d3a674995f417c4f2e29
2012-11-27android folds libsal_textenc into libsalCaolán McNamara
Change-Id: I749238e38b64abde9b601fcee99bdd1f753cdcff
2012-11-27add dependency on sal_textenc dlopened libCaolán McNamara
Change-Id: I527536083d546afbb5673a16bc5527915ea9d3f7
2012-11-27warning C4309: '=' : truncation of constant valueStephan Bergmann
plus warning C4701: potentially uninitialized local variable 'cChar' used Change-Id: I41df38d0fe8e915cc2a366e0be509c4a0205b105
2012-11-27Make python3 work with custom VALGRIND_CFLAGSStephan Bergmann
Change-Id: Ia4b08a1b20bf46af4d06c0478ed8e795ee543703
2012-11-27implement a new iscii (devangari) <-> unicode converterCaolán McNamara
this time with support for the multi-byte encodings possible in ISCII Change-Id: I1dc09e8836676ab614b531e8dc10f91a90b7c4fd
2012-11-26get textencoding tests working againCaolán McNamara
Change-Id: Ia3e0b7be14800e1d50c3e785153b45d2b4a7dd6d
2012-11-26fix unicode to dingbats conversionCaolán McNamara
enabling the text encoding tests show that the unicode to dingbats conversion is wrong in two places. a) 0x27CF should be 0x25CF b) The unicode range starting at 0x2460 should map to 0xAB not 0xAC Change-Id: I3899e1bbfc3f20ef67eb75c703ad7f23abe81509
2012-11-26removal of ISCII code left a bogus hole in tableCaolán McNamara
Change-Id: I341e36a59172116c9f90c67c6ab23d9e4f2c5847
2012-11-22Add an $APP_DATA_DIR predefiend thingie in bootstrap ("rc") files for AndroidTor Lillqvist
It expands to what lo_get_app_data_dir() returns, i.e. the activity's getApplicationInfo().dataDir. Use it in the LibreOffice4Android app's rc files instead of a hardcoded (possibly device- and/or OS version dependent) path. Change-Id: I8145f2c86eeded39232fb251a79fa64f31f77f55
2012-11-22Add lo_get_app_data_dir()Tor Lillqvist
Change-Id: I13ab54ce5c6d67f1623b7f1923678091660d202d
2012-11-22create SAL_DEPRECATED_INTERNAL for annotating APIMichael Meeks
It flags methods that we don't want used externally, but havn't finished removing internally. Change-Id: I818ee0ea2bf5294be816256a0e7f1868f26806b8
2012-11-22Fail fastStephan Bergmann
Change-Id: I17d6ab71ec7bcf40dccb2c9ffe3d9f2e6b10f01c
2012-11-21Clean up remains of NativeActivity-based Android app supportTor Lillqvist
We haven't been able to build NativeActivity-based apps (like the android/qa/sc and anroid/qa/desktop thingies) since we switched to DISABLE_DYNLOADING and a single DSO liblo-native-code.so anyway. No lo_main() any more. <sal/main.h> should not be included ever when compiling for Android of iOS now. Lots of stuff binned from vcl's androidinst.cxx, in the (vain?) hope that it will reduce the amount of never invoked GUI code that gets linked in. Change-Id: I25f584864c40110774c728a23151e089620442d9
2012-11-21android: fix cppunit testingMichael Meeks
2012-11-21Use correct variable in the iOS and Android casesTor Lillqvist
Change-Id: I759ea062c6a0cc1d9a2aafba502057f53596459c
2012-11-21This function should obviously be exported for it to be callableTor Lillqvist
Change-Id: Ia63e27ec40a66c52b52292549ea03899c1b3801e
2012-11-21a replace() to OUStringBufferNorbert Thiebaud
Change-Id: I2cbfeea9800ad656c49ce1cae7ff1f4b830f1442 Reviewed-on: https://gerrit.libreoffice.org/1139 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-21fix sal buildCaolán McNamara
since reversion due to f78a2bcce88dd5c12052ae3e55c561cdd48b05fe Change-Id: If60bb1931c1305068a86257fbbaa18029872e22e
2012-11-21add strip* Family of function to OUStringBufferNorbert Thiebaud
Change-Id: I225f95601009704c93484b6a68a0efd2446d4b48 Reviewed-on: https://gerrit.libreoffice.org/1140 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-21fix day of week naming in sal unit test.Michael Meeks
2012-11-21re-base on ALv2 code. Includes:Michael Meeks
Patch contributed by Herbert Duerr: #i118662# remove berkeleyDB from module xmlhelp (author=orwitt) http://svn.apache.org/viewvc?view=revision&revision=1213188 #i119141# remove ISCII converter for now http://svn.apache.org/viewvc?view=revision&revision=1306246 make exceptions for cppunittester verbose http://svn.apache.org/viewvc?view=revision&revision=1174831 Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Patch contributed by Oliver-Rainer Wittmann 88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 drop OS/2 code, remove in-line assembler ARM atomics, and obsolete armarch header.
2012-11-21Revert "sb140: sb140: #i116981# clean up memory upon exit"Michael Meeks
This reverts commit 2d5dd9a9604aeb5fd4e347d7a46acc11da9985a5. Conflicts: sal/inc/rtl/bootstrap.h sal/rtl/source/bootstrap.cxx
2012-11-21Revert "#i116915# rewrote unx osl_getSystemPathFromFileURL to avoid mem leaks"Michael Meeks
This reverts commit 8c015fbb85f00fe1cc82e00ea1771ad9fba821d2. Conflicts: sal/osl/unx/file_url.cxx sal/osl/unx/makefile.mk sal/prj/build.lst sal/qa/osl/getsystempathfromfileurl/test-getsystempathfromfileurl.cxx
2012-11-21mingwport34: i#117493: mingw port of i109096tono
WCHAR is not compatible with sal_Unicode in mingw Conflicts: sal/osl/w32/module.cxx
2012-11-21We don't need the library search path anymoreTor Lillqvist
As we don't use any dlopen() etc wrappers now with just one single DSO, we have no use for the library search path either. Change-Id: Ifaf11c4785a90fe5c7dafb3310bc7933ea31238c
2012-11-21Enable storing some files gzipped in the .apkTor Lillqvist
We gzip them separately in the Makefile and the gzipped result will be stored without (further) compression in the .apk. Use this to store the ttf font files. Shaves off a bit .apk size. This might seem a bit odd way to do it, why not store these files in the normal Zip compressed fashion in the .apk? It seems hard to tell Ant (based on path, not extension) what files to compress and what not, so we have to keep telling it to not (further) compress any files at all. Change-Id: I0d40d8811e6c9df6b28c285845b1db225507f5d4
2012-11-20sal, cppuhelper, udkapi, offapi: s/@since 3.7/@since 4.0/Michael Stahl
Change-Id: Iefbe31af8d6ec421c6006423b6ee3a6375e3d453
2012-11-20WaE: -Wempty-bodyCaolán McNamara
Change-Id: I07e0b3b466a0fac4c8ddf279b546f807501bc2e7
2012-11-18add a variant of OUStringBuffer::remove() to truncate or empty the contentNorbert Thiebaud
Change-Id: I9f5f6106ec81c33383f5936335dc965b84360116
2012-11-17valgrind: rtl_ustr_asciil_reverseEquals_WithLength is a death trapCaolán McNamara
Change-Id: If5c4c0b59aa91ec3775e2c15c4edb57bd7ac9aa7
2012-11-15Replace medDebug with sal/log.hxx functionalityStephan Bergmann
Change-Id: I30bf94043b5b638260704629356d010c8ea6b4e0
2012-11-15Revert "use intrinsict to inline InterlockCount() on Windows too"Luboš Luňák
This reverts commit 5ae27819974e3492b6f4d33fa51ef2a9d77b5ce5. The commit breaks smoketest on Windows, for reasons unknown: C:/cygwin/home/tinderbox/tinderbox-master-build-libreoffice/smoketest/smoketest.cxx(197) : error : Assertion Test name: `anonymous namespace'::Test::test assertion failed - Expression: connection_.isStillAlive() I can't see why the commit should matter, given that the functions should be equivalent according to my reading of the docs. And debugging this on Windows is pain squared, so I can't even figure out what is going wrong where. Feel free to try your luck. Note that when debugging this, the code triggering this seems to be run only if SOLAR_JAVA and JAVA_HOME are set, so 'make verbose=t' and running just the command without this hides the problem.
2012-11-15Drop obsolete includes of deprecated rtl/memory.hStephan Bergmann
Change-Id: I532558f5502898e036e01d64faa854c68e7109c9
2012-11-15Mark rtl_*memory as deprecatedArnaud Versini
Change-Id: I0e5e85d6b23961baa9ef3ed4247e39497bb063d7 Reviewed-on: https://gerrit.libreoffice.org/865 Reviewed-by: Niko Rönkkö <ronkko@iki.fi> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-14Include clean-upStephan Bergmann
Change-Id: Ice3b97269640c0d739e5b4f4b27a0e07fc854f9f
2012-11-13fix system boostPeter Foley
Change-Id: Id80557cb47ab471a0f3a643a1c11a59e89c14c54