Commit graph

4735 commits

Author SHA1 Message Date
Stephan Bergmann
e9febb63db Related fdo#46249: FileStatus can have fewer fields than requested
Turns out 608fe962cc "Let osl::FileStatus getters
assert programming errors" was overly optimistic and misunderstood that
osl_getFileStatus(..., nMask) /can/ return a FileStatus for which isValid(nMask)
is false, esp. for stuff like file names and URLs of Windows drives and servers.
That in turn leads to existing code now calling
rtl::OUString(_aStatus.ustrFileName) etc. with null argument and crashing.

Change-Id: Icd2168e209aa1c7a6df30cd954513d01034923db
2012-08-21 12:39:43 +02:00
Luboš Luňák
95b26a37ee mingw doesn't know __uuidof
Copied from fpicker/source/win32/filepicker/comptr.hxx, which
otherwise seems to be the same file.

Change-Id: I51ca96c1280e75f9318fcbc74997b2bf755fff95
2012-08-21 10:28:36 +02:00
Stephan Bergmann
e642eec333 fdo#53252: _toupper is unreliable
<http://msdn.microsoft.com/en-us/library/45119yx3%28v=vs.80%29.aspx> "toupper,
_toupper, towupper, _toupper_l, _towupper_l: Visual Studio 2005" states: "In
order for toupper to give the expected results, __isascii and isupper must both
return nonzero."  But a community comment clarifies: "This is incorrect, and
should refer to '_toupper' (the macro form), not 'toupper'."  (Which makes
sense, as otherwise toupper would violate the C Standard.)

And indeed, at least for some LO built against MSVC 2008 Express on Windows 7,
_toupper('C') = '#' is broken, while toupper('C') = 'C' is good.  (And the
unexpected '#' then causes all sorts of errors in the code.)

Change-Id: Iddaddcaf0cc3ffb30e55b0f410a6cfe9118accc8
2012-08-20 15:37:22 +02:00
Tor Lillqvist
d3721e5000 Handle CppUnit::DynamicLibraryManagerException
Change-Id: I81f9b133ffb03c225b276639f60ad5e7f38ec1ef
2012-08-17 20:28:49 +03:00
Tor Lillqvist
8b5cf7fb57 For kicks, enable cross-building for Android on MIPS
Change-Id: I6fa2b9a50c525fb2d8666a144409eb9a3ad2698a
2012-08-16 21:05:14 +03:00
Stephan Bergmann
2ee7681013 -Werror,-Wstrncat-size (Clang towards 3.2)
Change-Id: Ifdf0c47b38621835d6c6fa3a180d78f3f14edabf
2012-08-15 14:01:05 +02:00
Olivier Hallot
3c23dfb5d0 Remove some dead assignements in sal/cipher.cxx
Remove some dead assignements indicated by clang scan-build report.
Thanks to John Smith clang investigation
Patch corrected

Change-Id: Icbee3a65b6753d45433f1a4ca30567675e27e6d9
2012-08-14 16:22:09 +02:00
Stephan Bergmann
9960899e37 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: Ib98c4d608f15980449a6949615a38cd8a436012f
2012-08-14 10:39:10 +02:00
Stephan Bergmann
65842bb5cd -Werror,-Wunique-enum (Clang towards 3.2)
Change-Id: Ibb711d12561040404e819cb4a6ed4daa7581cd7c
2012-08-14 10:39:10 +02:00
Thomas Arnhold
2beba8f93e reduce ascii noise and useless comments
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08 13:53:54 +02:00
Thomas Arnhold
49ad17e2b1 remove include comments and boxes
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Stephan Bergmann
7cbb6d9ad0 Refactor expandMacros somewhat...
...so that backward compatibility ${file::key} -> ${file:key} does not kick in
for the special .link and .override cases.

Change-Id: If009b8ecdbb7662c21e87e7bccb50a0ebbb0190f
2012-08-07 11:01:07 +02:00
Tor Lillqvist
30e1b61157 No point with these executables for non-desktop OSes
Change-Id: If2e086cf2783c187f2cdb479608aa91561e0d674
2012-08-07 08:55:24 +03:00
Michael Meeks
69207d1f69 android: expose dummy JNI gnustl patching method for x86 2012-08-06 10:33:47 +01:00
Michael Stahl
dae7245c1a sal: let DISABLE_SAL_DBGBOX only disable GUI message boxes
If DISABLE_SAL_DBGBOX is set, fall back to printing on stderr.

Change-Id: Id525b4012291b6b29cca7abcaad7483bc6bfba3b
2012-08-03 23:27:13 +02:00
Tor Lillqvist
850d9be56d Bin no longer used iOS cppunit stuff that breaks build even
Change-Id: I78c71b22816834c66c8283e3d85e357b7b8d2836
2012-08-01 19:19:04 +03:00
Tor Lillqvist
9211f4ac41 WaE: comparison is always false due to limited range of data type
Change-Id: I7147d6ab8433976cc0c76620db2a519f306a3fa9
2012-07-30 16:14:16 +03:00
Tor Lillqvist
6247f4889a Work around isfinite crack with NDK r8b and the 4.6 toolchain
Change-Id: I66e499d942b34d27e765d00f1ddfb3bbd1f78480
2012-07-30 16:14:16 +03:00
Arnaud Versini
d6c284e4b1 Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in sal
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
2012-07-27 20:19:13 +02:00
Caolán McNamara
4f1e5b3421 weak symbols don't link on macosx
Change-Id: If4e8adfb4199863cd2f6d8d8a419762fcbaa6599
2012-07-25 10:32:39 +01:00
Caolán McNamara
962c7209b6 make mips (and others?) pass java extension smoketest with gcj's libjvm
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-25 10:02:15 +01:00
Arnaud Versini
ba47dd6f03 Don't use a mutex for gethostbyname_r on Mac OS X
Change-Id: I5b8c7901266ae73d95626e98116b9a3b43710642
2012-07-23 15:36:37 +01:00
Stephan Bergmann
8ee7c47404 Make rtl::O[U]String::isEmpty return true bool
...instead of sal_Bool, to work around MSVC warning C4805: unsafe mix of type
'sal_Bool' and type 'bool'.

Change-Id: Ia3477539ccc23aa9daec49d633f023d414f2b4bf
2012-07-23 12:09:12 +02:00
Michael Meeks
d3c4d9a0f8 android: x86 porting work. 2012-07-20 16:40:21 +01:00
Stephan Bergmann
1ac4c2cf79 saltextenc.map is unncessary
...as sal_textenc lib is not part of stable URE interface.

Change-Id: I5aeacd7668cca36f900aede4012d508217f3ab46
2012-07-20 15:55:44 +02:00
Julien Nabet
ba768f83cf Fix "Same expression on both sides of '|'"
Change-Id: I8f71f0b20f3f1f41acde05d59a9b94d1ce942a7b
2012-07-16 22:41:41 +02:00
Stephan Bergmann
208b380090 echo -e is not POSIX (and unknown to Mac OS X)
Change-Id: Id55d2028e44bfea57cd8d6c0d7085f5f6f2c77ed
2012-07-16 20:20:37 +02:00
Luboš Luňák
6080259862 allow using rtl::OUString etc. simply as OUString, without rtl::
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-16 16:03:03 +02:00
Michael Meeks
0dde6d4a2d fix 32bit build wrt. int vs. sal_Int32 comparison
Change-Id: I7ae0014c2b8e14dabab0d64cb498abb820b3968d
2012-07-16 11:19:34 +01:00
Stephan Bergmann
4ad006fc76 Confusing behavior of cmopareToAscii overloads
Change-Id: If432b67cebdb9a009a015ddf046ed1ce15920e57
2012-07-16 10:37:33 +02:00
Thomas Arnhold
1340890ccd simplify include guards
Change-Id: Id4210229b20a1d54b680ff1a2ccbcdd3684ecf5f
2012-07-14 05:44:15 +02:00
Julien Nabet
c48c7560ee Let's check struct var != NULL before initializing its attributes
Change-Id: I968292c1c64bcd3dd3d21dfd991c1a31edec8893
2012-07-14 01:05:03 +02:00
Stephan Bergmann
a23f7ddee2 Revert "WaE: logically last test always passes"
This reverts commit 0b1f424833, which appears to
be a bogus fix (for a bogus warning?).  Also needs adaption a la
3c598c4064 "sal: work around spurious signed
overflow warnings."

Conflicts:

	sal/inc/rtl/ustring.hxx

Change-Id: I7e9d94fd93a37bb10604c1895ab619a8ac2c3f43
2012-07-11 15:48:54 +02:00
Christophe JAILLET
3396c06c55 Use rtl_zeroMemory in place of rtl_fillMemory(..., 0)
Change-Id: Idd83f6340d13a1d7111d0d5a7268f1aa8bf5c09e
2012-07-11 12:31:49 +05:30
Pierre-Eric Pelloux-Prayer
34f8b2b78e single cpu detection: remove 'defined(__SUNPRO_C)' requirement
Change-Id: Iab3d103688d07ceea05b257ac012a0292c837a85
2012-07-10 16:23:35 +01:00
Christophe JAILLET
a076603a60 Report correct test name
Change-Id: I8181713f28e500b9aaaa60b9c32be304cdf93231
2012-07-08 19:34:04 +02:00
David Tardon
38b39d3f86 coverity: protect against buffer overflow
Change-Id: Id3b47712ee1457bda5313a0665a9bb34db035cb0
2012-07-03 17:47:20 +02:00
David Tardon
aea8838e25 coverity: ensure the string is null-terminated
Change-Id: I88040319f931598ca4fa17e440e0dba214109dfa
2012-07-03 17:47:19 +02:00
Thomas Arnhold
278000a28b Remove unused defines
Some of them were commented out for documentation purpose.

Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
Thomas Arnhold
8e1bffe7ff Remove include guards
Change-Id: Ib4ba76d0083e5bd75cc589a55318089c004f591f
2012-06-29 15:59:53 +02:00
Thomas Arnhold
b63027f099 Remove some unused defines and controls
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-06-29 15:59:53 +02:00
Michael Meeks
a203a6692c rename unittest from ZeroMemory causing issues on windows. 2012-06-29 11:13:58 +01:00
Thomas Arnhold
4c4d748767 Remove some more include guards
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-29 09:25:10 +02:00
Michael Meeks
2c3aa4f3a5 remove malingering legacy RCS tags. 2012-06-28 19:59:06 +01:00
Michael Meeks
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
Michael Meeks
69a51d2bb6 re-base on ALv2 code. 2012-06-26 11:33:02 +01:00
Thomas Arnhold
49f9ecb0fa Remove unused defines
Second is already commented out, first is unused, too.

Change-Id: I1429cab3186189a96d0a07fa7097d87d372b372a
2012-06-25 14:12:57 +02:00
Thomas Arnhold
66cd9eeb90 Remove various commented out defines
Most of them in hrc files.

Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
Michael Meeks
ecf943247f re-base on ALv2 code.
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-22 09:51:05 +01:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00