Commit Graph

24945 Commits

Author SHA1 Message Date
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
Caolán McNamara
1c72c5eaae move cxxabi.h after stl headers to workaround gcc 4.6.0 and damn stlport
Signed-off-by: David Tardon <dtardon@redhat.com>
2011-02-03 17:06:57 +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
Caolán McNamara
5e8635f624 move cxxabi.h after stl headers to workaround gcc 4.6.0 and damn stlport 2011-01-27 20:26:07 +00:00
Tor Lillqvist
abb0932a33 Revert "Turn OSL_TRACE output on only if OSL_DEBUG_LEVEL > 2"
Nah. I was misunderstanding. OSL_DEBUG_LEVEL == 1 is the normal one,
and OSL_DEBUG_LEVEL > 1 should turn on debugging output.

This reverts commit c91a84441c05d4f2d8541719ed439e7a2c27e675.
2011-01-27 14:02:15 +02:00
Michael Meeks
5f70fc05fc revert accidental change to UNO API - to fix spelling of Cancelled 2011-01-27 10:36:24 +00:00
Aurimas Fišeras
85f4d5e755 Some fixes to documentation (part 3)
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-27 10:17:20 +01:00
Aurimas Fišeras
5c0a22ab34 Some fixes to documentation (part 2)
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-27 09:25:03 +01:00
Tor Lillqvist
67a5f332ea These files are C, not C++ 2011-01-27 01:25:00 +02:00
Tor Lillqvist
72f06717f6 Intermediate commit 2011-01-26 23:08:54 +02:00
Tor Lillqvist
e8e2ce6c67 Why OSL_ENSURE something that is not required? 2011-01-26 23:08:52 +02:00
Tor Lillqvist
d2d18606f8 Add the location of the 64-bit jvm.dll 2011-01-26 23:08:51 +02:00
Caolán McNamara
54c47b5408 tweak this slightly differently 2011-01-26 20:24:07 +00:00
Kenneth Venken
3332802ff5 Cpp cleanliness: redundant assignment to self 2011-01-26 20:21:52 +00:00
Tor Lillqvist
dd9197c7fb Manipulate also the C runtime's environment
Fixes fdo#33355.
2011-01-25 16:35:41 +02:00
Tor Lillqvist
180a7519fb Manipulate also the C runtime's environment
Fixes fdo#33355.

Signed-off-by: Fridrich Strba <fridrich.strba@bluewin.ch>
2011-01-25 16:30:06 +02:00
Thomas Arnhold
48d7b43535 Code-cleanup for testintrosp.cxx. 2011-01-25 13:52:53 +01:00
Caolán McNamara
c2915ab373 WaE: gcc 4.6.0 various warnings 2011-01-25 10:33:54 +00:00
David Tardon
33e2f55fdf WaE: remove unused variable 2011-01-25 08:55:28 +01:00
David Tardon
73dcbdac37 WaE: remove unused variable 2011-01-25 08:47:08 +01:00