summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2014-04-24More hacking on --with-localesTor Lillqvist
Propagate the restriction of locales into <config_locales.h>. Note that in the normal case, with no locale restrictions, all the WITH_LOCALE_xx macros are zero anyway, but WITH_LOCALE_ALL is one. Restrict which character encodings are handled in sal/textencsal/textenc/tables.cxx based on the WITH_LOCALE_ macros. (Don't simply always do it for iOS.) Massage the affected unit tests to not crash when only partial character encoding information is present. Change-Id: Ie2c882c262ebd0d2b37dde66b8fe3c3e2570da14
2014-04-24Get rid of the "failure #23" style messages in CppunitTest_sal_rtl_textencTor Lillqvist
While at it, print the character values in assertion messages in hex, not decimal. Change-Id: I61a5efca0a800ea295afc81e2b2f234844428b1c
2014-04-24Add a test listener that outputs failures to stderr as they happenTor Lillqvist
Makes them intermix properly with debugging output from the tested functionality. After the test has run, don't repeat the failure messages, just print a short summary. Change-Id: I6b491d3a34094df2da11df5e404adb63299de342
2014-04-24Add missing right paren in assertion log messagesTor Lillqvist
Change-Id: Ia6f3f0f74b6de127d8989935e10c15a6cf52e5d7
2014-04-24Add informative comment about cross-compiling to iOS in particularTor Lillqvist
Change-Id: I7c38efdafea13bb5ae5e8a5e1cb07e77853b5c4b
2014-04-23Make assertion failures in CppunitTest_sal_rtl_textenc more informativeTor Lillqvist
I have plans to change the sal textenc stuff to use ICU so better assertion messages is essential. Change-Id: I764a317435b6bd7c88d6e42fcfbefb1ec9c308fd
2014-04-23Typo fix: s/temporaer/temporary/Tor Lillqvist
Change-Id: I8f845323ccc6446fe74ef7c1f8d55c49ed070f53
2014-04-24Avoid possible memory leaks in case of exceptionsTakeshi Abe
Change-Id: I047fd88a89900153089a55b6af123f11fb8bde55
2014-04-22Bypass EUC and ISO-2022 encoding tables for iOSTor Lillqvist
It is questionable whether they are needed for any document format. Saves 0.4 MB of app executable size. If it turns out that some document format that support is needed for actually does need these tables, will have to revert this then. An alternative, but more complex, way to save executable size would be to put this, and other, conversion data into a data file instead. Change-Id: I017e8f15626023af1344964be54c09fe2d937acc
2014-04-21remove comments why a file gets includedThomas Arnhold
also remove some commented out code Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-20cpplint: [readability/utf8] Line contains invalid UTF-8Julien Nabet
Change-Id: I8052539d86fbda5631b31f3163b1c51666153c8c
2014-04-18Typo: s/shure/sureTor Lillqvist
Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
2014-04-14update_pchThomas Arnhold
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-14typo: independend -> independentThomas Arnhold
2014-04-11Fix boundsStephan Bergmann
Change-Id: I61ce5563d90bb2cf8d186586f15ef4318acdc963
2014-04-10It's "its", not "it's"Tor Lillqvist
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-04Clean up unreferenced functionsStephan Bergmann
Change-Id: Id9cb4dbeb6b3313974b881efd6a7c43cb5e314ce
2014-04-04Remove dead test codeStephan Bergmann
Change-Id: Id03246fa9eefce718c36d73f84875f26d58caeba
2014-04-04Fix ASCII-only checkStephan Bergmann
...which did not work e.g. for broken single-byte input 0x80. Change-Id: I4dff41e4f18dfce376695b438004c2af853cf4fa
2014-04-04Remove dead interlock code:Stephan Bergmann
* Remove interlck_x86.s leftover from 417c85bf582e0d1dbabb7b0f16d60a394d537e61 "fdo#72598 Remove SunStudio cruft from code base." * osl_isSingleCPU is always 0. Change-Id: I44f633d503af0a033a977e0f812e6bd6e4282fca
2014-04-03C++11-only stdint.h SIZE_MAX -> std::numeric_limitsStephan Bergmann
Change-Id: I6bf80d034490583afa9e51cf720703cdf60a924a
2014-04-03Properly cover in #ifdef TIMETESTSStephan Bergmann
Change-Id: Iff8f992e5260150b9ba108698b506f5a9ec7dea2
2014-04-03Kill "Portal Demo HACK", whatever it isTor Lillqvist
Change-Id: Ie07576d2d63f4db9acf7ebf09ebd25a4f7bd014b
2014-04-03Kill superfluous vertical whitespaceTor Lillqvist
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
2014-04-03Use boost::noncopyableStephan Bergmann
Change-Id: Ifeee0632f6e163037bea9ba2ee8d19f050f9a212
2014-04-02Handle missing SIZE_MAXTor Lillqvist
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
2014-04-02coverity#1194930 Avoid TOCTOU between access and mkdirStephan Bergmann
Change-Id: I6567313abdacd06b59f7004c970b954a4b42419e
2014-04-02sal/osl/unx/security.c -> .cxxStephan Bergmann
Change-Id: If8dbfa3e26a02ac3d5ee0077f730eeca4b59c4d7
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01WaE: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0Tor Lillqvist
(When compiling for iOS.) Change-Id: I9f9f5b122c1bfac4ff670a4302fb10b6b82685ac
2014-04-01sal: add aligned memory allocation with malloc for OS X < 10.6Douglas Mencken
Note that posix_memalign is not available everywhere (as are its replacements like memalign). For example, Darwin/OSX <10.6 has neither posix_memalign or memalign. Incorporating changes by Stephan Bergmann <sbergman@redhat.com>. Change-Id: I4a02b40c36d353c2b7a78d0bacb3b14e1f2d94da Reviewed-on: https://gerrit.libreoffice.org/8405 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-31Remove unused inline functionsStephan Bergmann
Change-Id: Ic31f99d6185000660750041065937845d4903bb3
2014-03-31coverity#983373 Dereference before null checkCaolán McNamara
Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef
2014-03-31Missing dependencyStephan Bergmann
Change-Id: I4e2444113871376c5ba134c523752e08812e70d9
2014-03-31Move invariant writes outside loopStephan Bergmann
Change-Id: Ia254fe382a00be13a631fcc1b23f940352d8d3ba
2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud
unottols TempFile class check in debug bod for and env variable LO_TESTNAME.. if present it use that as the root for the tempfile filename. cppunitteset framework is augmented so that it export such LO_TESNAME using the cppunit testName(), after replacement of non-alphnum characters by _ Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-29typo: inteface -> interfaceThomas Arnhold
2014-03-28coverity#705205 Missing break in switchCaolán McNamara
Change-Id: Iaee3b73ceed5df9928514e55d00ac6292b8b2249
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-25Remove the obsolete functionality originally underlying osl/diagnose.hStephan Bergmann
...before that got rebased onto sal/log.hxx. That functionality is considered an implementation detail, so it should be safe to remove it from the URE interface. As usual, aborting stubs are retained for SONAME stability. Change-Id: If948b9714c26a3871e38dea4d4d5b5466d6ee258
2014-03-25Adapt to sal/log.hxxStephan Bergmann
Change-Id: I9c59495977e111d94077470f07591c91fa3c1665
2014-03-24fdo#56284 : soffice fails to start unless ~/.config exists and is writableMichaël Lefèvre
Try to create $HOME/.config if not present. If present, check that it's a directory with RWX user permission Change-Id: Icef558b2185ad7a7b3518d097f7b62a0b3344083 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-23WaE: unused variablesTor Lillqvist
Change-Id: Ieac3cd6bf9ef883cbc3b295e25867a76ac68b88f
2014-03-23sal: add boost for rt_digest testsTomaž Vajngerl
Change-Id: Icced4134ecaa4ac2b3ae90253a4e91f1ea613669
2014-03-23sal: Add rtl_digest_SHA1 which shows wrong sha1 calculationTomaž Vajngerl
This test shows wrong sha1 calculation after 52 bytes of input data. For now this test is commented. Change-Id: Id6df40ecc4059d4a4f9e1646a2c1bb7242f4cf69
2014-03-23sal: Rewrite digest tests to be simpler, enable them in checkTomaž Vajngerl
Change-Id: I610e615be498237e5cd9dd963bca60c7f8f62aac
2014-03-19loplugin:passstringbyrefStephan Bergmann
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
2014-03-19coverity#984119 Uninitialized pointer fieldCaolán McNamara
Change-Id: I6bbb181b892f22d05be76fc75506d94543eb7ee7
2014-03-17sal,toolkit,unotools: prefer passing OUString by referenceNoel Grandin
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-11"overflow" is one wordTor Lillqvist
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee