Commit graph

24840 commits

Author SHA1 Message Date
Caolán McNamara
4b37d9a8ef WaE: gcc 4.6.0 various warnings 2011-01-24 11:06:55 +00:00
Caolán McNamara
d9742013dd WaE: gcc 4.6.0 various warnings 2011-01-24 10:58:17 +00:00
Caolán McNamara
8c2cd1675f WaE: gcc 4.6.0 various warnings 2011-01-24 10:55:39 +00:00
Caolán McNamara
b3e081013d WaE: gcc 4.6.0 various warnings 2011-01-24 10:52:43 +00:00
Caolán McNamara
68ae086bca WaE: gcc 4.6.0 various warnings 2011-01-24 10:51:12 +00:00
Michael Meeks
73f0bb99d8 add since version to new API 2011-01-24 09:23:20 +00:00
Thomas Arnhold
21d81532ad New method: isEmpty() - Checks if a string is empty.
This could simplify logics in the source. Now this test is done
like 'if (aStr.getLength() != 0) {...}' or 'if (!aStr.getLength()) {...}'.

With isEmpty() this looks like:
if (aStr.isEmpty()) {...}
if (!aStr.isEmpty()) {...}

I think this would make the code more readable.
2011-01-24 09:23:20 +00:00
Tor Lillqvist
a9509d4a5f Kill Win9x code in file.cxx 2011-01-24 02:37:27 +02:00
Tor Lillqvist
df918eeac8 Kill Win9x security code 2011-01-24 02:34:47 +02:00
Tor Lillqvist
3489d95db9 Kill Win9x mutex code 2011-01-24 02:26:49 +02:00
Tor Lillqvist
8fcfefaecc Drop pipeimpl.obj from SLOFILES, too 2011-01-24 02:25:41 +02:00
Tor Lillqvist
1e04593caf Kill Win9x code 2011-01-24 01:57:17 +02:00
Tor Lillqvist
0ec0d899bf Add debug output to the dummy functions to see if/when they get called 2011-01-23 03:26:40 +02:00
Tor Lillqvist
c598951738 Dont assert in safe situations 2011-01-23 03:24:45 +02:00
Tor Lillqvist
1bff69d294 Turn OSL_TRACE output on only if OSL_DEBUG_LEVEL > 2 2011-01-23 01:46:51 +02:00
Tor Lillqvist
48252aada0 If CPPU_LEAK_STATIC_DATA is defined, don't bother with assertions
Re-introduce the possibility to define CPPU_LEAK_STATIC_DATA. This
time use it to bypass just the assertions that check that the type
description counts really are zero at the end of the
TypeDescriptor_Init_Impl destructor.

Add more informative debugging printout of which counts are non-zero.

Define CPPU_LEAK_STATIC_DATA for x64 Windows for now. But we do get
the same assertions also on x86 Windows if cppu is built with
OSL_DEBUG_LEVEL>1.
2011-01-23 01:05:45 +02:00
Tor Lillqvist
fc381c2b2f Use correct name for mscx_uno.dll and deliver it 2011-01-23 00:55:22 +02:00
Tor Lillqvist
989bbfb350 Remove pointless debugging output
We do print out a message if struct size verifications fail. That is
enough. No point in printing out the same

> sizeof(AlignSize_Impl) = 16
> sizeof(M) = 8
> sizeof(N) = 12

etc messages every time a cppu-using program is run and cppu has been
built for debugging.
2011-01-23 00:55:20 +02:00
Thomas Arnhold
b61dc1b964 Remove some dead code. 2011-01-22 16:57:17 +01:00
Tor Lillqvist
28787edbd8 More hacking on the C++-UNO bridge for x64 Windows
I think I might actually be able to manage without any assembly coding
here, thanks to the clean design of the x64 Windows calling
convention, and tricking the compiler (in a fully documented and
stable way) by using varargs. uno2cpp.cxx might even be getting close
to working now, but cpp2uno.cxx and except.cxx parts are just forced
to compile by using dummy code.
2011-01-22 03:20:19 +02:00
Tor Lillqvist
525f7823d6 Define SAL_TYPES_SIZEOFPOINTER for x64 Windows 2011-01-22 02:38:56 +02:00
Tor Lillqvist
f974bfffd9 Use separate .map files for 64-bit MSVC build 2011-01-22 02:38:54 +02:00
Thomas Arnhold
0f63709f2b Remove empty description and dates. 2011-01-22 00:17:02 +01:00
Thomas Arnhold
34d4dae35d Remove obsolete RCS lines. 2011-01-21 20:44:20 +01:00
Caolán McNamara
679ca29014 cppcheck: misc scope and unused variables 2011-01-21 14:22:31 +00:00
Thomas Arnhold
113a18833a Remove old RCS lines. 2011-01-21 14:31:33 +01:00
Robert Nagy
1c321e027d use errno to get the correct error message if mkstemp() fails 2011-01-21 11:03:11 +01:00
Thomas Arnhold
fa14c14dc2 Don't replace equalsAscii() with equalsAsciiL() in measure_oustrings.cxx. 2011-01-21 00:18:51 +01:00
Thomas Arnhold
1a1bf03786 Replace suitable equalsAscii calls with equalsAsciiL.
Done with sed -i 's%\(\.equalsAscii\)(\(\s\?"[^"]\+"\)\(\s\?\))%\1L(\3RTL_CONSTASCII_STRINGPARAM(\2\3)\3)%g'.
2011-01-20 11:38:15 +01:00
Tor Lillqvist
266c2d6b34 More hacking on the wntmscx bridge, still far from ready
See asmbits.asm for some general comments and pointers to useful
information.
2011-01-20 02:39:23 +02:00
Caolán McNamara
7a042510db remove unused dirs 2011-01-17 09:58:53 +00:00
Caolán McNamara
a6b72e9d88 fix documentation typo 2011-01-17 08:37:13 +00:00
Tor Lillqvist
acf1b8ee70 Commit 64-bit Win32 C++ bridge files
Just copies of the 32-bit ones so far, so obviously don't compile
even. No in-line assembly in 64-bit MSVC for instance.
2011-01-17 03:52:12 +02:00
Tor Lillqvist
f8d004e413 Use separate .map file for cppuhelper for 64-bit MSVC build 2011-01-17 03:03:45 +02:00
Tor Lillqvist
3e3482dc6e Use separate .map files for 64-bit MSVC build
Unfortunately the C++ name mangling in a 64-bit MSVC compilation is
slightly different from that in a 32-bit one:

-- An 'E' is inserted for pointers to indicate that they are 64
bits. I don't fully understand the rationale for this; isn't that the
only kind of pointer in 64-bit code produced by a C++ compiler anyway?

-- As there is only one calling convention on x64 Windows, __cdecl,
the indications for other calling conventions (here, especially
__thiscall) change to that for __cdecl.

It should be possible to write a tool to at least partially automate
conversion of 32-bit mangled names to 64-bit ones, and thus make it
easy to create mscx map files from the corresponding msci ones in
LibreOffice. Sure, it probably wouldn't work 100% correctly in all
cases, but it would help a lot.
2011-01-16 23:31:10 +02:00
Tor Lillqvist
726f5b622b Use mscx.map for 64-bit MSVC build
Unfortunately the C++ name mangling in a 64-bit MSVC compilation is
slightly different from that in a 32-bit one:

-- An 'E' is inserted for pointers to indicate that they are 64
bits. I don't fully understand the rationale for this; isn't that the
only kind of pointer in 64-bit code produced by a C++ compiler anyway?

-- As there is only one calling convention on x64 Windows, __cdecl,
the indications for other calling conventions (here, especially
__thiscall) change to that for __cdecl.

It should be possible to write a tool to at least partially automate
conversion of 32-bit mangled names to 64-bit ones, and thus make it
easy to create mscx map files from the corresponding msci ones in
LibreOffice. Sure, it probably wouldn't work 100% correctly in all
cases, but it would help a lot.
2011-01-16 22:23:32 +02:00
Tor Lillqvist
7e86fc3fe7 Initial hacks for 64-bit Windows build 2011-01-16 21:57:00 +02:00
Caolán McNamara
9eda1ec830 equalsAsciiL faster than equals 2011-01-16 15:41:23 +00:00
Caolán McNamara
e6c0094b20 drop two arg one from this test, because it has different semantics 2011-01-15 21:21:50 +00:00
Caolán McNamara
f192c141ad fix test name 2011-01-15 21:17:29 +00:00
Caolán McNamara
fe0d14fae3 and test with a precreated string 2011-01-15 21:14:20 +00:00
David Tardon
d1d16c48ff fix break on parallel build 2011-01-15 18:10:49 +01:00
Caolán McNamara
1caefa80cf equalsAsciiL faster than equalsAscii when length available 2011-01-15 16:51:30 +00:00
Caolán McNamara
692840565d add performance comparison test for equalsAscii group 2011-01-15 15:20:17 +00:00
Caolán McNamara
9d32411a43 port runtime G_SLICE aware valgrind-friendly allocator over to current impl 2011-01-14 20:46:54 +00:00
Caolán McNamara
eba7563505 cppunit: enable these tests 2011-01-14 15:44:26 +00:00
Caolán McNamara
387b321092 cppunit: port these tests over to canonical cppunit 2011-01-14 15:36:53 +00:00
Caolán McNamara
f2abd69d6a get this to build again 2011-01-14 15:15:22 +00:00
Caolán McNamara
e2f14d9061 cppcheck: prefer prefix variant 2011-01-14 15:05:19 +00:00
Caolán McNamara
39b67dcf71 add an explicit 2011-01-13 08:59:22 +00:00