summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16For kicks, enable cross-building for Android on MIPSTor Lillqvist1-3/+3
Change-Id: I6fa2b9a50c525fb2d8666a144409eb9a3ad2698a
2012-08-15-Werror,-Wstrncat-size (Clang towards 3.2)Stephan Bergmann1-3/+3
Change-Id: Ifdf0c47b38621835d6c6fa3a180d78f3f14edabf
2012-08-14Remove some dead assignements in sal/cipher.cxxOlivier Hallot1-4/+0
Remove some dead assignements indicated by clang scan-build report. Thanks to John Smith clang investigation Patch corrected Change-Id: Icbee3a65b6753d45433f1a4ca30567675e27e6d9
2012-08-14-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann1-17/+16
Change-Id: Ib98c4d608f15980449a6949615a38cd8a436012f
2012-08-14-Werror,-Wunique-enum (Clang towards 3.2)Stephan Bergmann1-1/+1
Change-Id: Ibb711d12561040404e819cb4a6ed4daa7581cd7c
2012-08-08reduce ascii noise and useless commentsThomas Arnhold1-1/+1
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08remove include comments and boxesThomas Arnhold3-10/+1
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-07Refactor expandMacros somewhat...Stephan Bergmann1-52/+51
...so that backward compatibility ${file::key} -> ${file:key} does not kick in for the special .link and .override cases. Change-Id: If009b8ecdbb7662c21e87e7bccb50a0ebbb0190f
2012-08-07No point with these executables for non-desktop OSesTor Lillqvist1-4/+7
Change-Id: If2e086cf2783c187f2cdb479608aa91561e0d674
2012-08-06android: expose dummy JNI gnustl patching method for x86Michael Meeks1-3/+3
2012-08-03sal: let DISABLE_SAL_DBGBOX only disable GUI message boxesMichael Stahl2-4/+6
If DISABLE_SAL_DBGBOX is set, fall back to printing on stderr. Change-Id: Id525b4012291b6b29cca7abcaad7483bc6bfba3b
2012-08-01Bin no longer used iOS cppunit stuff that breaks build evenTor Lillqvist6-243/+0
Change-Id: I78c71b22816834c66c8283e3d85e357b7b8d2836
2012-07-30WaE: comparison is always false due to limited range of data typeTor Lillqvist1-2/+2
Change-Id: I7147d6ab8433976cc0c76620db2a519f306a3fa9
2012-07-30Work around isfinite crack with NDK r8b and the 4.6 toolchainTor Lillqvist1-1/+2
Change-Id: I66e499d942b34d27e765d00f1ddfb3bbd1f78480
2012-07-27Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in salArnaud Versini13-77/+94
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
2012-07-25weak symbols don't link on macosxCaolán McNamara1-1/+2
Change-Id: If4e8adfb4199863cd2f6d8d8a419762fcbaa6599
2012-07-25make mips (and others?) pass java extension smoketest with gcj's libjvmCaolán McNamara1-0/+17
i.e. force the __data_start symbol to exist in any executables that link against libuno_sal so that dlopening of the libgcj provided libjvm.so on some platforms where it needs that symbol will succeed. e.g. Debian mips/lenny with gcc 4.3. With this in place the smoketest succeeds with libgcj provided java. Quite possibly also required/helpful for s390x/s390 and maybe some others. Without it the dlopen of libjvm.so will fail with __data_start not found Change-Id: I01a4de3d7e72d000a8d56a1b9101a187c26a1751
2012-07-23Don't use a mutex for gethostbyname_r on Mac OS XArnaud Versini1-5/+20
Change-Id: I5b8c7901266ae73d95626e98116b9a3b43710642
2012-07-23Make rtl::O[U]String::isEmpty return true boolStephan Bergmann2-10/+4
...instead of sal_Bool, to work around MSVC warning C4805: unsafe mix of type 'sal_Bool' and type 'bool'. Change-Id: Ia3477539ccc23aa9daec49d633f023d414f2b4bf
2012-07-20android: x86 porting work.Michael Meeks1-13/+17
2012-07-20saltextenc.map is unncessaryStephan Bergmann2-42/+0
...as sal_textenc lib is not part of stable URE interface. Change-Id: I5aeacd7668cca36f900aede4012d508217f3ab46
2012-07-16Fix "Same expression on both sides of '|'"Julien Nabet1-1/+1
Change-Id: I8f71f0b20f3f1f41acde05d59a9b94d1ce942a7b
2012-07-16echo -e is not POSIX (and unknown to Mac OS X)Stephan Bergmann1-14/+14
Change-Id: Id55d2028e44bfea57cd8d6c0d7085f5f6f2c77ed
2012-07-16allow using rtl::OUString etc. simply as OUString, without rtl::Luboš Luňák9-0/+160
http://lists.freedesktop.org/archives/libreoffice/2012-April/029940.html The RTL_USING #define (set by gbuild for anything that's not public API) allows to use such classes simply by their name, without having to use the namespace or do explicit using rtl::OUString (which half of the sources do anyway). Change-Id: I7edaf12cd278489cdc1d5ff782f0a86361c13c0a
2012-07-16fix 32bit build wrt. int vs. sal_Int32 comparisonMichael Meeks1-1/+1
Change-Id: I7ae0014c2b8e14dabab0d64cb498abb820b3968d
2012-07-16Confusing behavior of cmopareToAscii overloadsStephan Bergmann1-0/+13
Change-Id: If432b67cebdb9a009a015ddf046ed1ce15920e57
2012-07-14simplify include guardsThomas Arnhold7-12/+7
Change-Id: Id4210229b20a1d54b680ff1a2ccbcdd3684ecf5f
2012-07-14Let's check struct var != NULL before initializing its attributesJulien Nabet1-4/+5
Change-Id: I968292c1c64bcd3dd3d21dfd991c1a31edec8893
2012-07-11Revert "WaE: logically last test always passes"Stephan Bergmann1-1/+3
This reverts commit 0b1f4248338ff28208b3368b66690a84a75cc480, which appears to be a bogus fix (for a bogus warning?). Also needs adaption a la 3c598c4064cffdc2c9ff19e094594ca360779b66 "sal: work around spurious signed overflow warnings." Conflicts: sal/inc/rtl/ustring.hxx Change-Id: I7e9d94fd93a37bb10604c1895ab619a8ac2c3f43
2012-07-11Use rtl_zeroMemory in place of rtl_fillMemory(..., 0)Christophe JAILLET1-2/+2
Change-Id: Idd83f6340d13a1d7111d0d5a7268f1aa8bf5c09e
2012-07-10single cpu detection: remove 'defined(__SUNPRO_C)' requirementPierre-Eric Pelloux-Prayer1-1/+1
Change-Id: Iab3d103688d07ceea05b257ac012a0292c837a85
2012-07-08Report correct test nameChristophe JAILLET1-1/+1
Change-Id: I8181713f28e500b9aaaa60b9c32be304cdf93231
2012-07-03coverity: protect against buffer overflowDavid Tardon1-0/+3
Change-Id: Id3b47712ee1457bda5313a0665a9bb34db035cb0
2012-07-03coverity: ensure the string is null-terminatedDavid Tardon1-3/+3
Change-Id: I88040319f931598ca4fa17e440e0dba214109dfa
2012-07-02Remove unused definesThomas Arnhold4-13/+0
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-06-29Remove include guardsThomas Arnhold8-125/+20
Change-Id: Ib4ba76d0083e5bd75cc589a55318089c004f591f
2012-06-29Remove some unused defines and controlsThomas Arnhold4-8/+0
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-06-29rename unittest from ZeroMemory causing issues on windows.Michael Meeks1-4/+4
2012-06-29Remove some more include guardsThomas Arnhold2-27/+1
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-28remove malingering legacy RCS tags.Michael Meeks4-4/+4
2012-06-27targetted re-work of cppunit pieces.Michael Meeks61-592/+389
2012-06-26re-base on ALv2 code.Michael Meeks1-23/+14
2012-06-25Remove unused definesThomas Arnhold1-3/+0
Second is already commented out, first is unused, too. Change-Id: I1429cab3186189a96d0a07fa7097d87d372b372a
2012-06-25Remove various commented out definesThomas Arnhold1-43/+0
Most of them in hrc files. Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-22re-base on ALv2 code.Michael Meeks11-237/+164
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21re-base on ALv2 code.Michael Meeks44-893/+686
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21re-base on ALv2 code.Michael Meeks15-221/+208
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-20Clarify SIGHUP behaviorStephan Bergmann1-2/+1
The combination of marking it as ACT_IGNORE and osl_Signal_Terminate was strange, as osl_Signal_Terminate caused SalMainPipeExchangeSignal_impl (desktop/source/app/officeipcthread.cxx) to call DisableOfficeIPCThread, but ACT_IGNORE (instead of ACT_EXIT, like other signals marked osl_Signal_Terminate) caused the process to continue running. The net effect was that calling an additional soffice instance after a SIGHUP would no longer connect to the first instance, but instead would lead to two soffice instances running simultaneously on the same UserInstallation. Marking SIGHUP as ACT_HIDE most closely resembles the old behavior (of having ~no effect). Other options would be to mark it as ACT_IGNORE and osl_Signal_System or as ACT_EXIT and osl_Signal_Terminate, which would both result in instant termination. I do not know if that wouldn't actually be better. Change-Id: Id1ee7c1108765301e6010e0e05d6c1ff5894a414
2012-06-18ByteBufferWrapper tweaksTor Lillqvist1-17/+6
operator() gets called in a Java GC thread. A JNIEnv* saved in the constructor (which is called from the UI thread) is not valid in other threads (although for now, Dalvik notices, warns, and works around it). So don't bother keeping the JNIEnv*. Instead fetch one when needed. Move the method implementations from inline in the header to libotouch's android.cxx. Change-Id: I7de6fc54bb8d9a59146576d6e8c325fe917393ee
2012-06-18fdo#50603: Close fds across a restart of soffice on Mac OS XStephan Bergmann1-0/+32
...where the restart is directly from the old soffice instance, via exec, so the restarted soffice would inherit all open fds from the old one. The easiest approach appears to close fds upon startup. Change-Id: I89bb1c78f3adf2da1cd3cbd58c22df276133a883