summaryrefslogtreecommitdiff
path: root/bean/native
AgeCommit message (Collapse)AuthorFilesLines
2021-01-05tdf#96505 : Get rid of cargo cult long integer literalsumutbayramoglu2-2/+2
Change-Id: I7b269fb5bafceba071ebe649a696ef61301c4018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107366 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-02Fix some warnings for Raspberry pi 4 (part2)Julien Nabet1-0/+10
Fix these kinds: /home/pi/lo/libreoffice/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx:103:10: error: externally available entity 'is_complex_struct' is not previously declared in an included file (if it is only used in this translation unit, make it static; otherwise, provide a declaration of it in an included file) [loplugin:external] bool is_complex_struct(const typelib_TypeDescription * type) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pi/lo/libreoffice/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx:129:10: error: externally available entity 'is_float_only_struct' is not previously declared in an included file (if it is only used in this translation unit, make it static; otherwise, provide a declaration of it in an included file) [loplugin:external] bool is_float_only_struct(const typelib_TypeDescription * type) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pi/lo/libreoffice/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx:168:6: error: externally available entity 'MapReturn' is not previously declared in an included file (if it is only used in this translation unit, make it static; otherwise, provide a declaration of it in an included file) [loplugin:external] void MapReturn(sal_uInt32 r0, sal_uInt32 r1, typelib_TypeDescriptionReference * pReturnType, sal_uInt32* pRegisterReturn) /home/pi/lo/libreoffice/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx:446:32: error: static_cast from 'void **' to 'sal_Int32 *' (aka 'long *') is not allowed sal_Int32 * pTempIndices = static_cast<sal_Int32 *>(pCppArgs + nParams); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ or some of these: In file included from /home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26: /usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1945:1: error: unknown attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes] _JNI_IMPORT_OR_EXPORT_ jint JNICALL ^ /usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1943:32: note: expanded from macro '_JNI_IMPORT_OR_EXPORT_' define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT ^ /usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:35:42: note: expanded from macro 'JNIIMPORT' define JNIIMPORT __attribute__((externally_visible,visibility("default"))) Change-Id: I7cae1c52ee10306da666c9c234b9af7248efd04e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108567 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-04-14loplugin:buriedassign in b*Noel Grandin1-2/+3
Change-Id: Ic20f46105a30b54bc5a991b4070e6c8edb15376e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92189 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-31bean: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski1-7/+2
Change-Id: Id575db58199f438e95d9c73778cc520c452e1a42 Reviewed-on: https://gerrit.libreoffice.org/48948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-01-14Fix typosAndrea Gelmini1-1/+1
Change-Id: I2a578961837076ebce3c1fb2681b0785d1d490ac Reviewed-on: https://gerrit.libreoffice.org/47857 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-27loplugin:includeform: bean (Windows)Stephan Bergmann1-1/+1
Change-Id: Id35caf31499a437cba9ed3329920c560705be0cf
2017-10-23loplugin:includeform: beanStephan Bergmann1-5/+5
Change-Id: I3487839569e34552d8b6409b04ef842346c43f5c
2017-09-30Use explicit function names for fooA/fooW WinAPI; prefer fooWMike Kaganski1-5/+5
We should only use generic foo function name when it takes params that are also dependent on UNICODE define, like LoadCursor( nullptr, IDC_ARROW ) where IDC_ARROW is defined in MSVC headers synchronised with LoadCursor definition. We should always use Unicode API for any file paths operations, because otherwise we will get "?" for any character in path that is not in current non-unicode codepage, which will result in failed file operations. Change-Id: I3a7f453ca0f893002d8a9764318919709fd8b633 Reviewed-on: https://gerrit.libreoffice.org/42935 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-18Use even more WIN32_LEAN_AND_MEANMike Kaganski1-0/+3
Change-Id: I538fe5b41156366e0e87b3a93e58a3947afd18f5 Reviewed-on: https://gerrit.libreoffice.org/42398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-10-16clang-cl loplugin: beanStephan Bergmann1-1/+1
Change-Id: Iedaf2fc0c1e2cab446687c6c73cceb3c6b77e6e1 Reviewed-on: https://gerrit.libreoffice.org/29880 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-14Revert "Don't use the (win32) jawt_md.h as we don't have that when ↵Stephan Bergmann1-23/+1
cross-compiling" This reverts commit db57823374ee65b80cd53c5fd4234ad3bf6e287d, as it causes loplugin:externandnotdefined under clang-cl, and cross-compiling Windows on Linux seems a rather dead project for now. Change-Id: Ia7fd742385fa0d609007f70e5116a99729224f77 Reviewed-on: https://gerrit.libreoffice.org/29835 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-05-08jboolean-related clean-upStephan Bergmann1-1/+1
Change-Id: Iecd03d0343b9b7c3a8b23b5a1e9654148b94d44c
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin2-4/+4
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-01-02Remove unnecessary bean/inc/comp_LocalOfficeWindow.hStephan Bergmann2-3/+0
Change-Id: Ia3f5d11aace705f36016aabda7f325ba46aa8640
2014-12-02Deprecated com.sun.star.beans is goneStephan Bergmann2-124/+0
Change-Id: Ifce16ea732dd79730bff7bfa6269bd8b1d8e8aa6
2014-07-11new loplugin: externalandnotdefinedNoel Grandin4-6/+5
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-02-14Remove (hopefully) obsolete workaroundsStephan Bergmann2-10/+0
...that lead to -Werror=unused-macros with gcj on Linux. Change-Id: I7a77789fe212d1c87a4ac0a93a79cc7a8ba7a7ad
2013-06-10mingw64: use integer able to contain pointerFridrich Štrba1-1/+1
Change-Id: Id37c488531add53fd8d7514cde9ac37e61f67c38
2013-06-07Fix bean linking on wntgccxFridrich Štrba1-3/+2
Change-Id: I8d5d62be630f85e9a807dc108baca8be2930224e
2013-03-27-Wunused-macrosStephan Bergmann2-15/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2012-06-12re-base on ALv2 code.Michael Meeks4-92/+56
2012-05-07fdo#49580: Fix bean after gbuild'ificationStephan Bergmann2-6/+11
4478b739ddade09425d496cbddee1542fdfd5e9b "convert bean to gbuild and add to tail_build" broke the following: * The name of the officebean dynamic library must not be changed (by adding the "lo" extension), as code in officebean.jar uses it in NativeLibraryLoader. * With gbuild's per-default hidden visibility, JNIEXPORT functions must instead use SAL_DLLPUBLIC_EXPORT. (Windows-only code in bean/native/win32/ should be safe to continue using JNIEXPORT.) Change-Id: I I3c312dd05c90421ba0c726496b7149a26d155604
2012-04-18WaE: cast from pointer to integer of different sizeDavid Tardon1-1/+1
2011-12-12Kill a bunch of empty linesTor Lillqvist1-10/+0
2011-10-07WaE: win32 cleanupMichael Meeks2-34/+0
2011-09-18convert bean to gbuild and add to tail_buildPeter Foley2-78/+0
2011-06-29Don't use the (win32) jawt_md.h as we don't have that when cross-compilingTor Lillqvist1-1/+22
Just insert the trivial JAWT_GetAWT declaration and JAWT_Win32DrawingSurfaceInfo struct definition.
2011-06-29jawt_md.h is not needed in this fileTor Lillqvist1-8/+0
2011-05-21Drop OS2Tor Lillqvist4-4/+0
2011-03-31we only need the java lib path to link beanCaolán McNamara2-0/+2
2011-02-01Clean up makefilesThomas Arnhold1-1/+0
2011-01-28Remove superfluous empty lines at endTor Lillqvist1-9/+0
2011-01-28Bypass if no SOLAR_JAVATor Lillqvist1-0/+4
2011-01-26Use SetWindowLongPtrTor Lillqvist1-1/+1
2011-01-25WaE: gcc 4.6.0 various warningsCaolán McNamara1-2/+0
2010-10-28add modelines to .hxx files as wellCaolán McNamara4-0/+8
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien4-16/+4
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2009-02-19CWS-TOOLING: integrate CWS sb104Oliver Bolte1-0/+1
2009-01-27 13:09:06 +0100 sb r266986 : #i97992# cws rebase: merged cws/sb104/config_office/set_soenv.in with moved tags/DEV300_m40/set_soenv.in 2009-01-27 10:56:40 +0100 sb r266966 : CWS-TOOLING: rebase CWS sb104 to trunk@266944 (milestone: DEV300:m40) 2009-01-20 14:37:00 +0100 sb r266581 : #i97992# missing treatment of Solaris-only adjustvisibility as build-internal tool 2009-01-20 09:32:38 +0100 sb r266554 : CWS-TOOLING: rebase CWS sb104 to trunk@266428 (milestone: DEV300:m39) 2009-01-14 13:40:45 +0100 sb r266296 : #i97992# do not pass comment lines to shell 2009-01-14 12:50:34 +0100 sb r266290 : #i97992# avoid problems with checkdll not finding AWTLIB and its dependents 2009-01-14 12:49:20 +0100 sb r266289 : #i97992# on Linux and Solaris, regxpcom apparently needs to be called with the libxpcom.so directory on the LD_LIBRARY_PATH 2009-01-13 09:41:37 +0100 sb r266196 : #i97992# fixed AUGMENT_LIBRARY_PATH definitions 2009-01-12 18:02:03 +0100 sb r266177 : #i97992# get rid of LD_LIBRARY_PATH in build environment
2008-10-01CWS-TOOLING: integrate CWS jsc311Vladimir Glazounov2-2/+14
2008-04-10INTEGRATION: CWS changefileheader (1.4.36); FILE MERGEDRüdiger Timm2-46/+36
2008/03/28 16:08:23 rt 1.4.36.1: #i87441# Change license header to LPGL v3.
2008-04-10INTEGRATION: CWS changefileheader (1.6.8); FILE MERGEDRüdiger Timm1-23/+18
2008/03/28 16:08:23 rt 1.6.8.1: #i87441# Change license header to LPGL v3.
2008-04-10INTEGRATION: CWS changefileheader (1.6.8); FILE MERGEDRüdiger Timm1-23/+18
2008/03/28 16:08:22 rt 1.6.8.1: #i87441# Change license header to LPGL v3.
2008-03-18INTEGRATION: CWS s390port01 (1.9.10); FILE MERGEDVladimir Glazounov1-3/+0
2008/02/29 23:19:13 cmc 1.9.10.1: #i86425# fix up s309
2007-10-04INTEGRATION: CWS pmladek06 (1.5.28); FILE MERGEDRüdiger Timm2-7/+7
2007/09/11 12:00:07 pmladek 1.5.28.1: #i81385# fixes build with IBM Java 1.5.0 on PPC; syntax error in jni.h
2007-06-26INTEGRATION: CWS ause081 (1.3.46); FILE MERGEDJens-Heiner Rechtien1-2/+0
2007/06/22 12:26:23 hjs 1.3.46.1: #i78393# remove now obsolete setting to avoid description
2007-06-26INTEGRATION: CWS ause081 (1.8.18); FILE MERGEDJens-Heiner Rechtien1-2/+0
2007/06/22 12:26:22 hjs 1.8.18.1: #i78393# remove now obsolete setting to avoid description
2006-08-11INTEGRATION: CWS gcjsix (1.7.28); FILE MERGEDJens-Heiner Rechtien1-3/+0
2006/08/02 10:46:15 cmc 1.7.28.1: #i67465# gcc's 4.1.2 libawt is like sun's now, and doesn't require linking against -lgcj, move -lgcj into AWTLIB if needed
2006-06-19INTEGRATION: CWS warnings01 (1.3.6); FILE MERGEDJens-Heiner Rechtien2-10/+39
2006/02/28 15:54:57 sb 1.3.6.1: #i53898# Made code waring-free.
2006-06-19INTEGRATION: CWS warnings01 (1.4.6); FILE MERGEDJens-Heiner Rechtien2-12/+10
2006/02/28 15:54:56 sb 1.4.6.2: #i53898# Made code waring-free. 2005/11/10 08:44:43 pl 1.4.6.1: #i53898# removed warnings
2005-09-07INTEGRATION: CWS ooo19126 (1.2.4); FILE MERGEDRüdiger Timm1-47/+21
2005/09/05 14:47:19 rt 1.2.4.1: #i54170# Change license header: remove SISSL