summaryrefslogtreecommitdiff
path: root/sal/osl
AgeCommit message (Collapse)Author
2013-05-14Fix syntax errorTor Lillqvist
Change-Id: I161cf0fb2c5bd071a963ece61928efb7938de6c2
2013-05-14Include PID and TID in SAL_DEBUG outputStephan Bergmann
...and clean up log.cxx somewhat. Change-Id: I657cf6c938cafa61959a8dc59c9f95dba5183d9f
2013-05-13Use clock_gettime instead of gettimeofday to have more precise timeArnaud Versini
Change-Id: I8e568368e7626789dee21d4823dbedec6257a231 Reviewed-on: https://gerrit.libreoffice.org/3841 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-06fix typos (wich instead of which)Philipp Riemer
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-17-Werror=unused-macros (MinGW, sal)Stephan Bergmann
Change-Id: I7c0411320798721e70de32580de6adcf5565f12a
2013-04-16Further clean-up related to removed library unloading featureStephan Bergmann
Change-Id: I1ec2aa4d0ed0940e7c0a26a18c78f2df4693d278
2013-04-16API CHANGE: remove some of useless rtl/unload.h functionalityMatúš Kukan
Change-Id: If32923e35ef97f42d5203975362e5c76948ff327 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-15tune up debug level required for popping up dialogs from MSVCRTDMichael Stahl
Change-Id: I3cfa050ecf5c3c2ec66b11519c30d48459a9cafe
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-10sal: that TimeValue define causes -Wunused-macros with 10.6 SDK tooMichael Stahl
So since that is the new baseline let's get rid of it. Change-Id: I7b645fe2f6e641012919a87b63d5e14acce9e52b
2013-04-10Revert "If you can't load a shared library it should be a warning"Stephan Bergmann
This reverts commit 8b561c0012546aabbaff33b32a79833997aa8902. There are legitimate cases for osl_loadModule to fail (like when UNO only resorts to indirect bridging via binary UNO once it has not found a direct bridge implementation), so this adds too much noise. (Rather add SAL_WARNs to those places up the call stack where it is known to be an error, and/or enable +INFO.sal.osl.)
2013-04-07fix up c code after move to c++Caolán McNamara
Change-Id: Id3de792f47c778c7a79cc9160ca3480affcaf3cf
2013-04-05No need to setenv SAL_LOG in the code for iOSTor Lillqvist
One can set environment variables to be used when debugging an app in Xcode, which is when it is interesting to see SAL_INFO output anyway. (This is very different from Android, where one can't set environment variables "before" an app starts, as apps there aren't separate programs that would be exec'ed.) Change-Id: I3971d1b2d1a849deac2722a90271ef2458db1643
2013-03-31If you can't load a shared library it should be a warningPeter Foley
This has bitten me more than once when working on Library_merged. Change-Id: I829f5d010b6df2935fd191bdec9bac04bb003f16
2013-03-27-Werror=unused-macrosStephan Bergmann
Change-Id: Ia02ff34be9eff80fd8f9d76f034d76c3791342f2
2013-03-27WaE: macro is not used: STACKTYPETor Lillqvist
Change-Id: If20c7637d13f37029e447e779586fcfad21c3305
2013-03-27At least Mac OS X SDK 10.7 doesn't experience TimeValue clash hereStephan Bergmann
(causes -Werror,-Wunused-macros, rather) Change-Id: I1dc05a5cf73aec7827df662342f5d9189215e64e
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann
Change-Id: Ibd06e49e78a6d6a69521a65b53b056e85b64765b
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann
Change-Id: I7b88ff1a8c53fbb875d5cb84060c726fd7d06c9c
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-25remove external include guardsThomas Arnhold
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-26Temporary hack for iOS: open files read-only if read-write open failsTor Lillqvist
Change-Id: Ifc400d9843b23ef942c43af3a2b8830ccff71a7e
2013-03-22WaE: unused functionsTor Lillqvist
Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
2013-03-21Re-work the vcl aspects of the iOS portTor Lillqvist
Don't try to use similar code as for OS X to manage windows, events etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in the Android port, use the "headless" vcl backend. Do keep using CoreText, though, not FreeType & fontconfig. Start changing the iOS "Viewer" app to correspond to the Android "desktop" app (so it should be renamed). Work in progress since a long time, several crucial details still missing, but committing for now. Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
2013-03-21std::min() parameters must be of same typeTor Lillqvist
Change-Id: If8ac23dcf2a9e5811c1b2fe84c92d78cdfbc825b
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18Use InterlockedIncrement() and InterlockedDecrement() unconditionallyTor Lillqvist
Much simpler. Change-Id: I6837f95121f881d6265eb65343f6b311c1a6c33f
2013-03-07Use __android_log_print directlyTor Lillqvist
Change-Id: I67d90eb58faa0427c4de894eac107cc2d05a3477
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-03-03coverity#705121: missing unlock of mutexMarkus Mohrhard
Change-Id: Ib36a2f0ada0f0e1af631f3a1698a44edbd3dd59e
2013-03-03coverity#705120: missing unlock of mutexMarkus Mohrhard
Change-Id: I341ba77e459967ece5916ed897b76e9f63164e58
2013-03-03coverity#983100: close resource handleMarkus Mohrhard
Change-Id: I7e637fcafff08e4299a90887dbcfc60613377c9d
2013-03-03coverity#983099: fix memory leakMarkus Mohrhard
Change-Id: I2fe582bc9b082ab4cac7cc7e6c521087f4906436
2013-03-02coverity#982797: Out-of-bounds writeJulien Nabet
Change-Id: I58f2040ffc7d56e8e4418a29de0dd4d263defbd2 Reviewed-on: https://gerrit.libreoffice.org/2499 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-03-01Pass log output directly to the Android log mechanismTor Lillqvist
Writing to stderr just takes a detour through the pipe we set up ourselves and read in a separate thread, and eventually ends up being passed to __android_log_print() anyway. Change-Id: I46356910e48926f22c8dc88d9eba6acbc8bce751
2013-03-01Open files from /assets (i.e. read-only) even if asked for write accessTor Lillqvist
It seems to work better to silently "open" a such file read-only even if write access is requested, and let write attempts, if any, fail later. Otherwise loading a document from /assets fails with that idiotic "General Error" dialog... Change-Id: I95cbe18010ec5e75ee5993faef2656ae8a2f981b
2013-02-22Not using NativeActivity means no lo_main() stuff used eitherTor Lillqvist
Hopefully also fixes build for iOS by re-introducing checks for DESKTOP. Also this commit partially reverts 52a8744afee2cd589813f0377d93f821fce7aedd. Change-Id: Ie94c771b72ba138bb0481b054285916618baf6eb
2013-02-22Fix misspellings detected by https://github.com/lyda/misspell-checkTor Lillqvist
Just as a test to check the usefulness of that tool. It needs some improvement before really usable. Change-Id: I875e79c1992ed5f3b695736b0d49938ad0ba2d55
2013-02-22s/the the/the/Tor Lillqvist
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-21Revert "Clean up remains of NativeActivity-based Android app support"Michael Meeks
This reverts commit cecc926070ee3d2ad6296fc5e0cfcde8642bb140. Conflicts: sal/android/lo-bootstrap.c sal/inc/osl/detail/android-bootstrap.h
2013-02-19fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: Ib47c4b4c9604bca1f8a635dd01bb89702b47b591 Reviewed-on: https://gerrit.libreoffice.org/2010 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-15prevent out-of-bounds buffer writes in EnumLocalesParamsEike Rathke
osl_getTextEncodingFromLocale() In case of the Language code being longer than 2 characters the string written to the struct EnumLocalesParams member was not 0-terminated if a Country code was also given (consecutive fields in the struct) unless the struct was packed in 4-byte alignment and luckily contained a 0 as the 4th byte. The locale could not had been matched in these cases. In case of a sufficiently long language or country argument the entire EnumLocalesParams struct could had been overflown. Change-Id: I1ec67ad0b3d12b0fa944d7e759bb5cb701842e39
2013-02-08Some cppcheck cleaningJulien Nabet
Change-Id: I1dc8415569f7133d57c495e47f038e98d50d64d7
2013-01-29Strip SRCDIR from the logging outputTor Lillqvist
Change-Id: I6069102f6b9df72a63a840758158f672fdd6c621