272 Commits

Author SHA1 Message Date
Stephan Bergmann
bec9f636da loplugin:sallogareas
Change-Id: I220735e76174438d18929a9a92e289933c12fb0c
2016-04-14 14:34:20 +02:00
Rohan Kumar
c829898453 tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I disentangled my previous patch and converted fprintf statements to
SAL_INFOs

Change-Id: I4b993e00f82bdf904586ab5e7c954c4ee3ff1bac
Reviewed-on: https://gerrit.libreoffice.org/22925
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-04-07 12:17:29 +00:00
Rohan Kumar
2e0c1e03e8 tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I replaced OSL_DEBUG_LEVEL > 1 with OSL_DEBUG_LEVEL > 0
and made sure that it doesn't break the build

Change-Id: I9febeed949a24d7bc5afb13dedde03fd812b5b20
Reviewed-on: https://gerrit.libreoffice.org/23077
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-03-11 14:01:07 +00:00
Rohan Kumar
05bca56923 tdf#91794: Remove OSL_DEBUG_LEVEL > 1 conditionals
Updates pointed by sberg

Change-Id: Ie12548dfa9ad3a6836efbfe64153bc075f138fc6
Reviewed-on: https://gerrit.libreoffice.org/22622
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-08 16:57:42 +00:00
Stephan Bergmann
2ed1b3e0cd Keep entries sorted (and no need for a @section here)
Change-Id: I356a6bde62d883adf4cfa9e34e87791eee9668ca
2016-03-08 16:09:09 +01:00
Rohan Kumar
26b69a9d0f tdf#91794 Remove OSL_DEBUG_LEVEL > 1 conditionals
I removed the fprintf statements and replaced them with
SAL_WARN statements.

Change-Id: Id75e310e3a95b249fdf92a4dd5a9bcf1b7fb9be6
Reviewed-on: https://gerrit.libreoffice.org/22984
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-08 13:29:14 +00:00
Stephan Bergmann
9055fb4840 clang-cl: Enable more warnings etc. (like in the Clang/GCC case)
Change-Id: Ia1fb09b89d3ccc3c7f4a11799f0d8eac99c6c7a9
2016-03-04 17:08:08 +01:00
Stephan Bergmann
d7c4c45bc8 Use existing "sal.osl" log area
Change-Id: I7d48c1543b0d3239c8e646ca0765421f933cfecc
2016-03-04 12:35:42 +01:00
Stephan Bergmann
c3ab4e1970 sal/test/testbootstrap.cxx is dead test code
...so no need to add dead log areas here (as questionably introduced with
f59136a2ed1e3eb01cc5b62c5a7da07c34cbdfae "tdf#91794 remove OSL_DEBUG_LEVEL > 1
conditionals")

Change-Id: Id0544a76f9c426bc06e327f0f2ec2d421da1fa50
2016-03-04 12:31:13 +01:00
Stephan Bergmann
d35eac83ab This is test code, OK to unconditionally print to stdout
...and where appropriate use CPPUNIT_ASSERT_EQUAL to have no need to always
print out certain values

Change-Id: Iad2ccb235b09852fffd3f010cf069c45b36e2d4b
2016-03-04 12:21:03 +01:00
Stephan Bergmann
066a81ee8d This is test code, OK to unconditionally print to stdout
Change-Id: I419aba8728b3a65fca69c82a4f950daaf4815187
2016-03-04 12:14:51 +01:00
Rohan Kumar
f59136a2ed tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
Change-Id: If329cf8257684e7bd2936641b8f14ec3e9b9f733
Reviewed-on: https://gerrit.libreoffice.org/22647
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-03-03 17:00:26 +00:00
Michael Stahl
46251758a3 sw: new sw.a11y log area
Change-Id: I43b6b60ac91c7934d4045b8df618dc6592c0e688
2016-02-25 12:34:31 +01:00
Stephan Bergmann
2bec27302a Various loplugin warnings
Change-Id: I6489043ee629e1f411f303c1c43a00975aacf5c4
2016-02-23 14:19:35 +01:00
Noel Grandin
2087484c65 use consistent #define checks for the Windows platform
stage 2 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

In this stage we focus on replacing usage of the WIN macro

Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84
Reviewed-on: https://gerrit.libreoffice.org/22393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17 11:33:57 +00:00
Noel Grandin
ce43d0ae92 use consistent #define checks for the Windows platform
stage 1 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f
Reviewed-on: https://gerrit.libreoffice.org/22390
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-16 10:37:55 +00:00
Stephan Bergmann
d6eaa8d863 Work around loplugin:oncevar with --disable-dbgutil
Change-Id: I8f2a2910993609dec91e63074a5b9195a2352bb5
2016-02-11 16:06:03 +01:00
Andrea Gelmini
534b2a4b58 Fix typos
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3
Reviewed-on: https://gerrit.libreoffice.org/21797
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-05 06:48:38 +00:00
Stephan Bergmann
3c51c3db18 Attempted fix for "Resolves: #i126762# Ignore dictionary not in specified...
...location."  Caused many crashed during "make check", when aLocaleNames is a
sequence of 17 ("ar-SA", "ar-DZ", ...), but aLcoations merely a sequence of 2
(".../dict-ar/ar.aff", ".../dict-ar/ar.dic").

From comments further down below, it looks like aLocations will always contain
exactly two entries ("also both files have to be in the same directory and the
file names must only differ in the extension (.aff/.dic)"), and that all the
aLocaleNames members share the same set of aLocations ("Thus here we work-around
this by adding the same dictionary several times. Once for each of its supported
locales"), so that it would appear to be OK to just check once for the existenceof aLocations[0].

(There is a check for

    if (aDictIt->aLocaleNames.getLength() > 0 &&
        aDictIt->aLocations.getLength() > 0)

below, so it might be that these can be empty, or it might just be "defensive
programming."  Play it safe, and check here that aLocations is not empty.)

Change-Id: I82bea6571983e397a9e164b294a5ba656b511a67
2016-02-02 12:40:06 +01:00
Caolán McNamara
4ebe249104 drop basebmp entirely now
Change-Id: I534848c4be8eadf86b7f31ac742a80982405f56f
2016-01-20 09:43:28 +00:00
Stephan Bergmann
55a5ac48c2 Get parenthesisation right
...for

  #define COMMA ,
  if (SAL_LIKELY(void() COMMA true)) ...

Change-Id: I607d3da52e769035b35cefe1103675d89d5a3b9b
2016-01-06 13:46:48 +01:00
Michael Stahl
cd103a888b sal: don't use reserved identifiers, much less in public API
rename to SAL_DETAIL_BOOLEAN_EXPR

Change-Id: Ifb2b2d09a421313e021062cb37ade8777c30f25a
2016-01-06 13:04:50 +01:00
Michael Meeks
e75406e54c tdf#39631 - branch hints: comment, and tweak variously, also use.
Find a few million mis-predicted branches (according to callgrind)
and annotate them. Mark string acquire/release as hot, and a number of
deprecated methods as cold.

Change-Id: I678b3981794221c97f9ebb70fd0161c0fda5dceb
2016-01-06 09:38:16 +00:00
Sheikha AL-Hinai
eafb1ebf74 tdf#39631: Add optimisation helpers
Change-Id: I3d09eea11e7acabcd9b692bf5abd7676b89f1323
2016-01-06 09:38:16 +00:00
Stephan Bergmann
39b2c40761 minuscule whitespace cleanup
(in an attempt to cause tinderboxes to rebuild)

Change-Id: I5cc94a988303b7b1ff85ec09c3d4f88d300f73b0
2015-12-11 21:18:10 +01:00
Michael Meeks
94427a1b00 sal: add SAL_DEBUG_TRACE debugging API for Windows, with UNX stub.
Change-Id: I2fdbc2ac10f483eee154bdf69479ba217a91ef7f
Reviewed-on: https://gerrit.libreoffice.org/19605
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-12-02 16:47:16 +00:00
Stephan Bergmann
5e2455c6b1 Keep items sorted
Change-Id: Ifa66e63e67d6ae0a6453d86634e2aa998c442adc
2015-11-30 16:25:05 +01:00
Michael Meeks
9c554c2c8c vcl: improve scheduler debugging information.
Change-Id: I6f7d7d3b5b027097417a15804a42aaaab4a03158
Reviewed-on: https://gerrit.libreoffice.org/20185
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-25 23:15:42 +00:00
Stephan Bergmann
91cbbb7797 loplugin:sallogareas
Change-Id: Ibffaa2e3924877b22abbcd17aaa8fac01607f639
2015-11-23 09:56:10 +01:00
Stephan Bergmann
ab9add5c96 loplugin:sallogareas
Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
2015-11-20 10:14:49 +01:00
Stephan Bergmann
b0339005b8 loplugin:sallogareas
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19 16:05:35 +01:00
Stephan Bergmann
0b07406f71 Use C++11 char16_t for sal_Unicode
...in LIBO_INTERNAL_ONLY, __cplusplus, non-MSVC case.

It turns out that sal_Unicode happens to not be mangled into any symbols that
make up the stable URE interface, so (for LIBO_INTERNAL_ONLY, at least) we are
free to replace the typedef to sal_uInt16 with a typedef to any integral type
layout-compatible with that.  (sal_Unicode does appear in some symbols in sal's
PRIVATE_textenc.1 section, but that is private between the sal and sal_textenc
libraries, so changing those symbols does not require a change of SONAME.)
C++11 chart16_t is the obvious choice (and will ultimately allow using u"..."
to write literals of type array-of-sal_Unicode).  Reportedly, char16_t is
supported since GCC 4.4 and Clang 2.9 but will only be available in MSVC 2015.

For plain C, we continue to use sal_uInt16.  We could theoretically use C11
char16_t from <uchar.h>, but at least the Mac OS X 10.11 SDK still does not
offer that C11 header.

For MSVC, we continue to use wchar_t (which is actually unsigned short, due to
/Zc:wchar_t-) for now.  Potential options there include dropping /Zc:wchar_t-
and using true wchar_t, or using C++11 char16_t once support for MSVC 2013 is
dropped.

Some code needed to be adapted that was written in a way assuming that
sal_Unicode is unsigned short (which indicates that changing sal_Unicode for
non-LIBO_INTERNAL_ONLY would be an ABI change).  OUStringBuffer::append can now
differentiate between being called with sal_Unicode (to append a single
character) and erroneously being called with sal_uInt16 (intending to append a
number's textual representation, for which the sal_Int32 overload must be used
instead).  Bugs found are 379fe0409e7973b36210cffa3dd1dfd4032f0ecc "Assume that
this code wants to append a number, not a character" and
dc148335a6a438848325f24c49198fba81043279 "Assume this wants to append the
numerical representation."

The GDB support for pretty-printing of sal_Unicode-related data in
solenv/gdb/libreoffice/sal.py can presumably be simplified now.

Change-Id: I445b3a80e65b7cb004d9e08b38bdc9ee93bc9401
Reviewed-on: https://gerrit.libreoffice.org/20036
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-11-18 15:20:43 +00:00
Stephan Bergmann
97ce93ec64 loplugin:nullptr
Change-Id: I22f1205396c502b6d3e937343e2ea9698b756f77
2015-11-13 15:39:34 +01:00
Stephan Bergmann
b9f34146be HAVE_CXX11_FINAL is required on all supported toolchains
Change-Id: I85ed86fdd8b11863c96b7a6c3ba76d77dbecf192
2015-10-12 17:52:29 +02:00
Stephan Bergmann
b08247a12b HAVE_CXX11_OVERRIDE is required on all supported toolchains
Change-Id: Ibc5462642d0a3cd0f96668472ddc0ac0ae407132
2015-10-12 17:52:26 +02:00
Stephan Bergmann
27491c28cb HAVE_CXX11_DELETE is required on all supported toolchains
Change-Id: I53c746be98972c7024dc2f340738182e46c24241
2015-10-12 17:52:25 +02:00
Michael Stahl
a8f053697c filter: convert OSL_FAIL to SAL_WARN
That literal %s was irritating.

Change-Id: I2925b26b1f3d1c101106ca616d18b24b41210c72
2015-10-09 18:03:48 +02:00
Samuel Mehrbrodt
338f19a8ce Emscripten: First steps of porting to Emscripten
See https://wiki.documentfoundation.org/Development/Emscripten for details

Change-Id: I977a8b9e98b9be13c263fef48f567b92347d0492
Reviewed-on: https://gerrit.libreoffice.org/18643
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-05 10:24:35 +00:00
Caolán McNamara
b40b601007 ditch gnome-vfs2 support
Change-Id: I882c04fd3a255f55511b1884157de26e7574e6db
Reviewed-on: https://gerrit.libreoffice.org/18262
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-02 11:46:18 +00:00
Norbert Thiebaud
a8db357874 gbuild/config stop using VERBOSE, use only verbose=t
configure.ac was setting VERBOSE=YES/NO when really
we use verbose=t or verbose=

Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299
Reviewed-on: https://gerrit.libreoffice.org/17634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 04:34:45 +00:00
Michael Stahl
f168fcaed2 sal: partially revert a251fe4d48237a4d9c9530dafc7bbdce6028e9cf
The change to sal/log.hxx affects extensions too which are not required
to use a C++11 compiler.

Change-Id: I3ed08f9a02a2e082fcdb821bce84244597f2390a
2015-08-04 11:46:10 +02:00
Michael Stahl
26aebe26f7 vcl: use SAL_INFO for available X11 clipboard formats
Change-Id: Ifbd87e59fa91241dd5852f7dc6b63e65d8ca6bad
2015-07-08 16:57:48 +02:00
Stephan Bergmann
ecc617e797 configmgr: support reading from a dconf layer (WIP)
Work in progress to allow integration of LO with
<https://wiki.gnome.org/Projects/FleetCommander>.

During configuration, dconf support is implicitly enabled when available on the
host (which is presumably only available on Linux).  It is explicitly disabled
for TDF Linux builds for now, though, to avoid accidental dependencies of the
distributed installation sets on system dconf libraries.

A dconf layer is represented in the CONFIGURATION_LAYERS bootstrap variable with
type "dconf" and an empty URL.  See the comment at the top of
configmgr/source/readdconflayer.cxx for the encoding of component-data in dconf.

All of this is still subject to change.

Change-Id: I2d08d81c8ea43ba4a99040a8882ae75b91bcfdb9
Reviewed-on: https://gerrit.libreoffice.org/16848
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-07-08 12:06:04 +00:00
Stephan Bergmann
f749a970e2 Remove obsolete comment
...that should have been removed as part of
7196df7ac616be39689f21d8784fd78030868586 "tdf#43157: Enable format check in
sal_detail_logFormat"

Change-Id: I331359bfa0e7c678f662f3de63257ccc0b528484
2015-06-02 12:53:36 +02:00
Stephan Bergmann
de8afb9a2b First cut at reporting missing GStreamer plugins
Change-Id: Ia3cd8a2f0979f2312a70b8ee169fe9d6eef85c81
2015-05-13 16:45:09 +02:00
Michael Stahl
10d55afd40 sal: match the defintions of SAL_MAX_SIZE and sal_Size
With 64-bit MSVC, sizeof(long) is 4 but sizeof(void*) is 8, so this
would select sal_uInt64 but SAL_MAX_UINT32.

This should make sizeof(sal_Size) the same as sizeof(size_t) on all
supported platforms, but still sal_Size maps to different integer
type (long vs. int) than size_t on 32-bit.

Change-Id: I638aac6b502e624ed6b01f5921e20bc40f42480c
2015-05-04 14:34:05 +02:00
Michael Stahl
7259901b25 dbaccess: log exception messages in ORowSetCache
Change-Id: I1c76d4ce91d1f22d88106918ab139b17f6f017f0
2015-04-29 16:13:10 +02:00
Stephan Bergmann
8e6c335c19 Update @since tags LO 4.5 -> 5.0
Change-Id: Idb2e46fcaa080d6763d2e3ed963f7673a2353eb2
2015-04-10 11:50:37 +02:00
Tor Lillqvist
a251fe4d48 We require MSVC2013 (_MSC_VER == 1800) now
Change-Id: Ice8504041f22e00f2e5010813d9dff1d2987c8d6
2015-03-19 10:57:17 +02:00
Tor Lillqvist
1290c28959 '#if defined(SAL_W32) || defined(SAL_UNX)' matches all our platforms.
Change-Id: I6b46eea0890573166d8a49e8060716907f223a1d
2015-03-18 13:08:28 +02:00