Commit Graph

24908 Commits

Author SHA1 Message Date
David Tardon
c67bf5ce71 add (pre|post)extstl.h around cppunit headers 2011-02-07 13:24:55 +01:00
David Tardon
4fd74f21dd comment out the failing test case for now 2011-02-07 10:25:18 +01:00
David Tardon
386711957c use rtl::OStringBuffer for message 2011-02-07 10:17:10 +01:00
Wilhelm Pflueger
7e8efb4b44 Removed unnecessary includes 2011-02-07 10:05:59 +01:00
Wilhelm Pflueger
24968350f7 Re-animated tests that were based on testshl.
One test in test_outstring_convert.cxx fails for method
rtl::OUString::convertToString().
2011-02-07 10:05:58 +01:00
Fridrich Štrba
5befef49dd std::hash -> boost::hash 2011-02-06 15:23:59 +01:00
Thomas Arnhold
c58c6f98a9 OSL_DEBUG_LEVEL formatting 2011-02-06 12:29:56 +01:00
Fridrich Štrba
259c35955a don't crash trying to erase one past end 2011-02-06 11:49:10 +01:00
Fridrich Štrba
93c5442bd2 Revert "revert this change for now as its triggering a crash in saxparser"
This reverts commit b73cf2b1ef3892b4c200c05fd617bfd099aceee5.
2011-02-06 11:47:56 +01:00
Caolán McNamara
1d6bdb8380 revert this change for now as its triggering a crash in saxparser 2011-02-04 19:50:27 +00:00
Thomas Arnhold
097ea7234a OString: New method isEmpty() 2011-02-04 12:29:38 +00:00
Thomas Arnhold
83734eea36 Clean up makefiles 2011-02-04 12:45:54 +01:00
Fridrich Štrba
c36e6badf3 Put this two includes back 2011-02-04 07:02:15 +01:00
Joseph Powers
a3d4063f88 Add missing #include <vector> to the file. 2011-02-03 21:35:13 -08:00
Fridrich Strba
030633cd53 moving the rest of ure repository to boost unordered containers 2011-02-04 00:28:23 +01:00
Fridrich Strba
aac09aee67 move bridges to boost::unordered_map 2011-02-04 00:02:36 +01:00
Fridrich Strba
e309a0b2ac move module rdbmaker to boost unordered containers 2011-02-03 23:39:38 +01:00
Fridrich Strba
7895563216 move module cppuhelper to boost unordered containers 2011-02-03 23:39:38 +01:00
Fridrich Strba
4724f82bf2 move module cppu to boost unordered containers 2011-02-03 23:39:38 +01:00
Fridrich Strba
8554daf5cd move codemaker module to the boost unordered containers 2011-02-03 22:48:54 +01:00
Fridrich Strba
f8e27a7c46 some std::hash_map/set -> boost::unordered_map/set changes 2011-02-03 22:32:23 +01:00
Fridrich Strba
712fba7496 Build module registry with MSVC stl 2011-02-03 11:37:48 +01:00
Fridrich Strba
f3b5287172 Use rtl::Allocator in MSVC hash containers 2011-02-03 10:59:33 +01:00
Fridrich Strba
1c17bf61a5 include MSVC STL code path 2011-02-03 10:33:49 +01:00
Tor Lillqvist
8a91eee9c3 More work on except.cxx, intermediate commit
Now I have some understanding what it is the code here should do, and
have found 3rd-party documentation (in source code form even) for the
exception-related data structures.

It still crashes, but I hope that is just because of thinkos that need
to be fixed by debugging, or reading the code. There are some horrible
code with quite complex casts in places, I need to introduce some
macros or inline functions instead to make the casting from RVAs to
real pointers and back cleaner. Also maybe just use DWORD instead of
sal_uInt32 for terseness, and use a specific typedef name for DWORDs
that actually are RVAs for clarity?
2011-02-02 13:29:43 +02:00
Thomas Arnhold
1a6617cf05 Clean up makefiles 2011-02-01 18:22:56 +01:00
Thomas Arnhold
95012b599b Remove RCS information 2011-02-01 18:22:56 +01:00
Aurimas Fišeras
d2b8cb3cf4 Some fixes to documentation (part 6)
Fixes many spelling errors (checked with en_US spell checker).
Unifies spelling of some common words.
Replaces single quotes ('') with double quotes ("").
Fixes several other errors.
2011-02-01 10:37:11 +00:00
Thomas Arnhold
0e91a5b571 Remove RCS lines. 2011-01-31 19:03:47 +01:00
Fridrich Štrba
fb3ba76c8c Revert "Temporary revert to compile on Windows XP"
This reverts commit 6734127f11b49e65571f8e1d6b346db9e94ea64d.
2011-01-31 14:44:14 +01:00
Aurimas Fišeras
406a63e9a0 Some fixes to documentation (part 5)
Fixes many spelling errors (checked with en_US spell checker).
Unifies spelling of some common words.
Replaces single quotes ('') with double quotes ("").
Fixes several other errors.
2011-01-31 10:43:16 +00:00
Tor Lillqvist
a129a38585 Fix thinko 2011-01-31 09:29:55 +02:00
Tor Lillqvist
d398fd1383 Now the C++-UNO bridge on x64 Windows works a bit better
I had implemented a couple of basic things quite wrong, partly because
of easily misunderstood Microsoft documentation. A couple of things I
just had forgot to do properly.

Attempt to make the source code more consistent in spacing and
variable naming. Clean away meaningless vertical space wasting
non-verbal comments.

The bridgetest over in testtools now runs through quite a lot of its
paces successfully. But exception handling and RTTI, the stuff in
except.cxx, is still not really done at all. And even if I comment out
those checks in bridgetest so that no exceptios are thrown, I then get
a crash later.
2011-01-31 01:23:16 +02:00
Jesús Corrius
fd17eed870 Temporary revert to compile on Windows XP 2011-01-29 20:09:27 +01:00
Thomas Arnhold
1eb936d245 Use errno to get the correct error message if mkstemp() fails. 2011-01-29 15:39:11 +01:00
Thomas Arnhold
9c03e3097f cppcheck: remove unused variable strLen. 2011-01-29 15:39:11 +01:00
Thomas Arnhold
31ca64f91e Remove double line spacing and correct indentation 2011-01-29 15:39:11 +01:00
Caolán McNamara
539d976bc6 that decrement doesn't look right 2011-01-29 13:36:24 +00:00
Joseph Powers
2c04fa0b99 Fix interlck.c to work on Mac OS again...
mmeeks, we love your patch; however, some of us are forced to use the very
old 4.0 version of GCC (I blame Apple) and __sync_add_and_fetch() wasn't
added until version 4.4.

PS: Moving the target OS version to 10.5 wont help because that still uses
the 4.2.1 version.
2011-01-28 21:28:46 -08:00
Tor Lillqvist
b7d48fa5ac Skip the this pointer in cpp2uno_call()
Also change a few variable names to consistently use the "TD" suffix
for typelib_TypeDescription variables.
2011-01-29 01:40:14 +02:00
Tor Lillqvist
75e02ab302 Let's use a shared privateSnippetExecutor() approach as on x64 Linux
It simplifies function table and unwinding info management, as those
are now static for the privateSnippetExecutor() function in
call.asm. Even if it is slightly ugly to have to poke in more
instructions in codeSnippet().

Out privateSnippetExecutor() is much simpler than the x64 Linux one,
thanks to the simpler calling convention.
2011-01-28 18:41:07 +02:00
Tor Lillqvist
96b1611644 Fix typo and thinko 2011-01-28 17:19:18 +02:00
Michael Meeks
d7f50df652 further simplify old-style interlocked inc/dec 2011-01-28 15:17:58 +00:00
Jani Monoses
5b3360fa45 use gcc builtins for POWERPC and ARM cases if we have GCC 2011-01-28 15:04:26 +00:00
Tor Lillqvist
31a8176ab6 More work on x64 Windows C++-UNO bridge
Now the call through the trampoline into cpp_vtable_call() seems to
work, but I get a crash later. Glitches in parameter passing, no
doubt. Debugging needed in cpp_vtable_call() and cpp2uno_call().

The basic implementation is probably sane. But I wonder if I after all
should have done like in the x86-64 Linux implementation, with the
dynamically generated trampoline just jumping into fixed code shared
between all trampolines. Probably should redo it like that, yes.

Will it then cause a problem for OS unwinding if the caller of the
trampoline calls a short dynamically generated code snippet, which
then jumps into the fixed part, and only the fixed part has a
(assembler-generated) function table and unwind info? Probably not.

It is quite impossible that such a short dynamically generated snippet
with just a couple of instructions would cause an exception, and when
we have jumped into the fixed part, where the call to
cpp_vtable_call() is done, it doesn't matter any more that the caller
in fact didn't call what the function table claims is the entry
point. Or does it?

Doing it that way would mean no RtlAddFunctionTable() and
RtlDeleteFunctionTable() would be needed, and especially doing the
latter correctly is a bit hairy.
2011-01-28 16:41:04 +02:00
Aurimas Fišeras
207456b80e Some fixes to documentation (part 4)
Fixes many spelling errors (checked with en_US spell checker).
Unifies spelling of some common words.
Replaces single quotes ('') with double quotes ("").
Fixes several other errors.
2011-01-28 12:14:19 +00:00
Tor Lillqvist
5287150cb7 Add a function table entry for the dynamically generated trampoline 2011-01-28 04:22:11 +02:00
Tor Lillqvist
44abf1ea66 Need to use exactly the same names as in the JDK in the non-SOLAR_JAVA case
Use struct JNIEnv_ and struct JavaVM_, with underscores. Otherwise a
mangled name in the map files won't match.
2011-01-28 00:10:54 +02:00
Tor Lillqvist
1a041ea2bf Corect copyright header and comment 2011-01-27 23:58:27 +02:00
Tor Lillqvist
dc433642ab More work on the x64 Windows C++-UNO bridge 2011-01-27 23:39:59 +02:00