Commit Graph

57 Commits

Author SHA1 Message Date
7dac241ca0 Remove RTL_CONSTASCII_(U)STRINGPARAM in bridges
Change-Id: Id8777ee7f587846399e95cf3b1b37d669a76bae5
Reviewed-on: https://gerrit.libreoffice.org/3139
Reviewed-by: Christina Roßmanith <ChrRossmanith@web.de>
Tested-by: Christina Roßmanith <ChrRossmanith@web.de>
2013-04-02 20:25:44 +00:00
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
a477138dfa Work on the iOS C++/UNO bridge
Split uno2cpp.cxx and cpp2uno.cxx into separate files for the emulator
(i386) and device (ARM). Much cleaner like that.

Try harder to get the ARM stuff to actually work.

Add the rtti.h and unwind-cxx.h files from libcppabi as such instead
of cherry-picking stuff from them.

Change-Id: Ia238a9ce048116ad796dfb168fd4e5d3b9712ad5
2013-01-19 23:58:40 +02:00
b3aad50859 Be truthful to the compiler about registers clobbered by asm snippet
The asm code loads values into parameter-passing registers r0-r3.
(That is one of the very purposes of the asm snippet.) We need to tell
the compiler that. The compiler does not analyze the asm snippet and
has no idea by itself what it does.

Otherwise the compiler might well put one of the input values to the
asm snippet, like the "pmethod" (the value of the pMethod variable)
into one of those registers, so that when that value then is used in
the asm snippet, *after* r0-r3 have already been modified, it
obviously is totally unrelated to pMethod any more, and the result is
that the code jumps into hyperspace.

Apparently this has worked purely by luck, or thanks to GCC
conservatively avoiding using the r0-r3 parameter-passing registers in
this way. The problem was noticed when using the same code with Clang.

The above analysis tentatively confirmed by Caolán and Jani Monoses,
who wrote the code.

Change-Id: I3018c2e2ccb83e7a71144425fa404ad28bb955d6
2013-01-10 09:22:16 +02:00
17ff7b41d1 re-base on ALv2 code. Includes:
Patches contributed by: Armin Le Grand.
    #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task.
    http://svn.apache.org/viewvc?view=revision&revision=1195906
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166
    #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles
    http://svn.apache.org/viewvc?view=revision&revision=1293316
    #119337# Solves the wrong get/setPropertyValue calls in
    SvxShapeText (and thus in SvxOle2Shape)
    http://svn.apache.org/viewvc?view=revision&revision=1344156

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i117717#: remove wrong assertion
    http://svn.apache.org/viewvc?view=revision&revision=1172349

    Patch contributed by Herbert Duerr
    goodbye Registration and License dialogs, don't let the door hit you
    http://svn.apache.org/viewvc?view=revision&revision=1172613
    help gcc 4.6.0 on 32bit ubuntu 11.10"
    http://svn.apache.org/viewvc?view=revision&revision=1245357

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

Revert "sb140: #i117082# avoid unncessary static class data members
    commit 21d97438e2944861e26e4984195f959a0cce1e41.
remove obsolete FreeBSD visibility special case.
retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-15 16:06:08 +00:00
10511acd08 Revert "sb140: #i117295# use rtl::Static"
This reverts commit d3794d2d8ab2ee3f8118d61538bb753335b37f23.

Conflicts:
	bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
	bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx
	bridges/source/cpp_uno/gcc3_ios_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
2012-11-15 16:06:07 +00:00
99cfb6724b Revert "add forgotten asm file to build"
This reverts commit 492f9139c1033b3f069880bff8e7f2857cbca111.
2012-09-23 11:14:52 +02:00
492f9139c1 add forgotten asm file to build
Change-Id: I5c86e369649e71d785af06437b2af633d6805b8d
2012-09-23 08:40:15 +02:00
61c0a3a63d switch bridges to gbuild
Change-Id: Ia19ff61f1f7fb446298472acd6722b57ddaeddec
2012-09-22 08:15:30 +02:00
7b72d933f9 WaE: format '%lx' expects 'long unsigned int', argument is 'void*'
Change-Id: Id14a7be627502cb8aa2173f0206c84cd27fab2e6
2012-09-21 10:55:37 +03:00
ac6833f979 remove "TODO: add test" which is now done
since 99bf0c318b89c7d6acee364161b34b13d348a3bb

Change-Id: I0fbd88d842f750d101e3eec5a6b18f7e8bc062be
2012-05-17 14:43:29 +01:00
e13dc26e39 ARM bridge: fixes for passing double arguments on the stack 2012-02-21 01:15:02 +02:00
3dfae9e2e6 fix armel/armv4t build 2012-02-17 11:23:55 +01:00
dab11f7fe2 ARM bridge: VFP ABI (armhf) support 2012-02-16 16:25:22 +02:00
a55fa2d0a8 Remove unnecessary variable 2012-02-15 19:17:17 +02:00
4e679ee250 Simplify code and use proper register names for linux armhf 2012-02-15 19:17:17 +02:00
9377bb4dcc Some cppcheck cleaning 2012-02-05 10:19:40 +01:00
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
617c8075ac Use cacheflush() on Android 2012-01-13 13:04:31 +02:00
f233f39736 fix armhf build in bridges
Signed-off-by: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2011-12-19 10:51:43 +01:00
7904a8cc56 I don't see NO_BSYMBOLIC being used anywhere 2011-12-11 02:57:59 +02:00
c366d95851 Use RTLD_DEFAULT on Android
dlopen()ing NULL (the main program) and dlsym()ing on that handle does
not work on Android as in GNU/Linux. So don't bother with that, just
call dlsym(RTLD_DEFAULT, symbol) instead.

But, it doesn't help, it won't find the type_infos anyway, as they are
weak symbols and the dlsym() at least in Android 4.0 does not like
weak symbols, "Symbol is not global."

So the fallback branch that dynamically generates a type_info, which
normally should get used only for inter-process UNO (and thus
presumably never on Android) is taken instead.

But, that didn't work either at least with NDK r7 thanks to a bug in
its libgnustl_shared.so. But we now patch that at run-time in
android_main() in sal/osl/android/jni/lo-bootstrap.c.

Are we having fun yet?
2011-11-24 19:20:15 +02:00
42acf7a6d5 Don't use USE_DOUBLE_MMAP on Android 2011-11-21 18:21:52 +02:00
e2989c8400 Let's try using the gcc3_linux_arm code for Android, too 2011-11-17 17:46:13 +02:00
0122cd3a53 fix mangled indent 2011-11-14 07:35:57 +00:00
60ad74a87c sb140: #i117295# removed obsolete LEAK_STATIC_DATA defines 2011-09-12 22:47:47 +02:00
d3794d2d8a sb140: #i117295# use rtl::Static 2011-09-09 17:46:39 +02:00
2ba07916ff Add some comments 2011-08-14 00:51:31 +03:00
adc6fe00e3 Move OSL_ENSURE(0,...) to OSL_FAIL(...) 2011-03-12 14:19:48 +01:00
0d139d3d2e Oops, use #if instead of #ifdef 2011-03-01 17:12:28 +01:00
61100f6fc6 Move CMC_DEBUG to OSL_DEBUG_LEVEL 3
This level means 'ultra-verbose'.
2011-03-01 17:05:34 +01:00
aac09aee67 move bridges to boost::unordered_map 2011-02-04 00:02:36 +01:00
36e2296bf8 Replace all occured, occurance etc. 2010-12-06 09:16:29 +00:00
d7fa5f9a1c RTL macro converted from createFromAscii 2010-11-09 16:55:45 +00:00
da5cef0ab4 add modelines to .h and .c files as well 2010-10-27 16:04:46 +01:00
bc9aea44a7 explicitly -fno-strict-alias for linux bridges by default 2010-10-20 08:53:25 +01:00
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
867721d3e8 armeabi02: #i105359# fix arm-eabi uno bridge 2010-05-04 14:33:17 +01:00
dce434e245 armeabi02: #i105359# fix arm-eabi uno bridge, fix exception handling, and fix struct returning rules 2010-04-27 11:17:28 +01:00
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
c4989e147f #i105302# allow build with -mfloat-abi=softfp -mfpu=vfp 2009-10-06 15:00:30 +00:00
bb490edf43 CWS-TOOLING: integrate CWS selinux01
2009-01-13 12:54:38 +0100 cmc  r266213 : #i97320# might as well be silent if we fallback
2009-01-07 11:17:16 +0100 cmc  r265957 : #i97320# use a double-mmap of an anonymous file under linux to keep onside of selinux
2009-01-20 10:20:47 +00:00
ab0131a9af INTEGRATION: CWS cmcfixes43 (1.3.20); FILE MERGED
2008/03/07 16:56:40 cmc 1.3.20.1: string.h for strdup
2008-04-24 16:02:06 +00:00
b8316e888f INTEGRATION: CWS changefileheader (1.3.24); FILE MERGED
2008/03/28 16:30:03 rt 1.3.24.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:27:28 +00:00
3bcd37d7ec INTEGRATION: CWS changefileheader (1.4.20); FILE MERGED
2008/03/28 16:30:02 rt 1.4.20.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:51 +00:00
c8763626dc INTEGRATION: CWS changefileheader (1.3.24); FILE MERGED
2008/03/28 16:30:02 rt 1.3.24.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:33 +00:00
b4c6057f0f INTEGRATION: CWS changefileheader (1.4.12); FILE MERGED
2008/03/28 16:30:01 rt 1.4.12.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:14 +00:00
4a22f421e4 INTEGRATION: CWS ia64port01_DEV300 (1.3.6); FILE MERGED
2008/02/18 10:40:36 cmc 1.3.6.1: #i84999# follow sb's suggested pattern, stage 1, gcc3_linux_*
2008-02-27 08:50:53 +00:00
681fd1cc81 #i84858# Correct license header: remove SISSL. 2008-01-04 07:58:39 +00:00