Commit graph

616 commits

Author SHA1 Message Date
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
David Tardon
75c2c58a6c add external for unistd.h
Change-Id: I728b162e21a7a2c02cb76af110cc0a01a762fdbd
2013-04-09 19:29:12 +02:00
Peter Foley
84068dae54 fix logical-op-parenthesis warning
Change-Id: Ib97f667c9acb644c3becb81f851ad8c7e4ff31ea
2013-04-07 09:42:18 -04:00
Luboš Luňák
ba044b1e96 remove needless forward rtl::OUString declarations
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Stephan Bergmann
ce2991ee86 Forbid old-style services/singletons inheriting new-style services
...does not make sense.  Adapted some old-style services accordingly, where the
inherited service had been changed to new-style after the fact.

Change-Id: I5f3e4ddf99160778a319062a6c84f83529ff177b
2013-04-03 11:30:06 +02:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Thomas Arnhold
488e6875e9 remove external include guards
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25 19:58:16 +01:00
Stephan Bergmann
fa545023ad Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}
...replacing hard-coded GCC version checks.  Those checks that guard

  #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"

appear relevant only for GCC itself, not Clang (which used to fail the old
guards because it typically announces itself with a rather low
__GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0
"Enable -Wnon-virtual-dtor for GCC 4.6"

Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
2013-03-25 08:52:54 +01:00
Takeshi Abe
c7af37db60 deleting NULL is safe
Change-Id: I3748d0034b2c8e9d9122ad2a9001763eb1265e1d
2013-03-25 10:54:05 +09:00
Julien Nabet
0ed451e338 coverity#704237 Logically dead code
Change-Id: I7a5087b2ac89ee2839f0e0d8450efc7fca1dd68b
2013-03-23 17:28:48 +01:00
Julien Nabet
25363b4e45 coverity#440066 Logically dead code
Change-Id: I54d1b22859bd4f0a1e68ce79ed2ce4d7fbeb5107
2013-03-22 19:53:41 +01:00
Julien Nabet
f25fcba2f2 coverity#440065 Logically dead code
Change-Id: I6b735ca48bd996c71ad6c6103e68af2cd2890d98
2013-03-22 19:42:28 +01:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
Thomas Arnhold
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
Thomas Arnhold
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
Michael Meeks
79b0046ba0 remove legacy build.pl prj/build.lst files. 2013-03-14 17:05:51 +00:00
Matúš Kukan
bdfdd054bd more subtle dependencies for cross-compilation
Now we build only what we really need for 'build' platform - there is
new build-tools make target.
The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk.
Also similar is done to some extent for 'host' platform using
gb_Module_add_targets_for_build which is ignored for 'host'.

Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
2013-03-13 16:26:10 +01:00
Noel Grandin
1b4b53a2ec fix spelling
Change-Id: I52eb4153c3396be88b72cab3b7899f0c6ab18103
2013-03-07 08:23:37 +02:00
Kenneth Beck
21e1e859a7 fdo#60724 change spelling error REMOVEABLE -> REMOVABLE
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments.
All other instances of the misspelling have remained the same.
Example: AF_REMOVEABLE

Change-Id: I391f4101bbc3e06689318235a37d616065bc1686
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-06 10:39:30 +01:00
Michael Stahl
b768611724 remove all d.lst
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28 18:40:06 +01:00
Stephan Bergmann
b324cbefb0 flex output needs soltools' unistd.h on WNT
Change-Id: Id7b5e421f8ff9d6db923a1fb01b1071f75a6842d
2013-02-25 16:18:32 +01:00
Julien Nabet
f68cd77923 Fix type unkown -> unknown
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-21 21:50:01 +01:00
Julien Nabet
814ae45d4b Some cppcheck cleaning
Change-Id: I099171d85a51095f0ff6d592c1260d931f9769b2
2013-02-13 15:08:20 +01:00
Julien Nabet
56f4d7dc9d Some cppcheck cleaning
Change-Id: I8609949377181f8edb30ac07b2791cfcd079fc7d
2013-02-12 21:24:25 +01:00
Stephan Bergmann
f8569cd9a2 UNO constants cannot be of CHAR type
Change-Id: I13f2f1d38b99a5eb1d10f40c524894e37a47f7e2
2013-01-30 13:52:03 +01:00
Stephan Bergmann
a39c302d4b Clarify that constant groups cannot be typedef'ed
Change-Id: Ie169ac426d6de107025023dae987cbce6179007f
2013-01-29 09:55:22 +01:00
Stephan Bergmann
2a54af218c Clarify that bound attribute can specify getter/setter raises lists
Change-Id: I49ffee7c1e65d8e79865e5b596d18111e0c64279
2013-01-29 09:54:38 +01:00
Stephan Bergmann
b38cc6f5ab Clarify that attribute setter raises list must not be empty
Change-Id: Ic2d8b1e6f9dbaeee3e3ad9280236abd503de3ffd
2013-01-29 09:53:29 +01:00
Michael Stahl
5a61e28378 gbuild: fix silly "expandtabs" in makefile VIM modelines
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26 22:20:07 +01:00
Michael Stahl
a53586f4ef gbuild: do not copy boost headers around
- do not use gb_UnpackedTarball_copy_header_files for boost
- adapt the optimization in concat-deps.c for new path
- use boost_headers in all LinkTargets that require it
- add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus

Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26 22:20:06 +01:00
Michael Stahl
7cf3b1ffcb idlc: silence annoying test spew on success
Change-Id: I7c9ff31a8f4578afdb9056d6d204bd688c3c3473
2013-01-26 22:20:06 +01:00
Stephan Bergmann
f1bca26afc Remove redundant braces around for loops
...that had once been workarounds for compilers that did not yet support the
C++98 scoping rules for declarations in for-init-statements.

Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2013-01-26 16:36:09 +01:00
Stephan Bergmann
3b269d6d2d API CHANGE: Remove support for individual constants from UNOIDL
...i.e., "const X = N;" declarations outside of constant groups.  This appears
to be unused in practice, and removing it will allow to simplify future code
related to UNO type information.

This removes the definition of "constant-decl", and the branch mentioning
"constant-decl" from the definition of "declaration" at
<http://wiki.openoffice.org/w/index.php?title=Documentation/DevGuide/AppendixD/UNOIDL_Syntax_Specification&oldid=137490>.

Change-Id: I218626f02ebd46ee438bf5453ca1510c9ed8e5f0
2013-01-22 18:39:28 +01:00
Stephan Bergmann
147b7f0df3 Adapt idlc/test/parser/ to gbuild
Change-Id: If57ab37dd4d062e3f6bbf5b75a0cde2524b635bd
2013-01-22 18:39:27 +01:00
Luboš Luňák
f728eda909 unlink() doesn't work that well with URLs
Change-Id: I1d0cbd8b8cbbd3ea5c73d0cea6d9e354b1740c7c
2012-12-02 16:17:03 +01:00
Stephan Bergmann
299036996a [oneway] removal cleanup
Change-Id: I1d60bb4042753bd18475166054ad57dceb2fc97d
2012-11-30 16:33:30 +01:00
Thorsten Behrens
90eac3e697 API CHANGE remove [oneway] method attributes
Remove non-functional and broken [oneway] attributes from all idl
files. Change idl compiler to no longer digest such idl.

Change-Id: Ie14c5012beccb6242d7cd592d434a88091b695d1
2012-11-30 14:36:35 +01:00
Stephan Bergmann
44ea5d1414 Adding SAL_DEPRECATED_INTERNAL to an implementation function is pointless
...as there are typically no direct calls to it anyway.  What is apparently
needed is to decorate the cppumaker-generated headers instead:

* cppumaker obtains deprecation-information from the documentation strings in
  .rdb files.  As these are normally generated by idlc without documentation
  included (no -C), idlc got changed to nevertheless contain documentation
  consisting of just "@deprecated" in this case, to allow to easily tunnel this
  information to cppumaker always.

* The mechanism of parsing for "@deprecated" in documentation strings is
  somewhat crude, of course.

* For now, cppumaker only decorates C++ functions that correspond to UNOIDL
  interface attributes and methods.  More should be possible (but, e.g., being
  able to decorate a complete C++ class corresponding to a deprecated UNOIDL
  interface type depends on whether all platforms would accept
  SAL_DEPRECATED_INTERNAL at the same position in a C++ class declaration.

* This could also be extended to other languages than C++/cppumaker.

* Always using SAL_DEPRECATED_INERNAL instead of SAL_DEPRECATED for decoration
  is to keep things simple and our codebase working.  Improvements are possible
  here, too, of course.

Change-Id: Ia2917892f780d477652e4cd9f286588a6898c3f5
2012-11-23 14:04:51 +01:00
Rene Engelhard
5c0424c271 use proper URL for UCPP in Executable_idlc.mk
Change-Id: I882abb339bb160f74cfd00c1c005585d4478ac8d
2012-11-21 22:47:24 +01:00
Rene Engelhard
c0fb5ed758 add --with-system-ucpp
Change-Id: Ic322d1be23033049fa3b5cd60c00479bb6cae3ca
2012-09-27 22:45:03 +02:00
Stephan Bergmann
6189ffc7ed Fix bool -> byte coercion logic
Change-Id: Iab6dba9484fb5ddb8a8d4efcd46d7b9c8d1acca8
2012-09-26 13:31:45 +02:00
Noel Grandin
20b77f616a sal_Bool -> bool
Change-Id: I4fd6d247fdc0333ccdace4ebfa947c8d02e559bc
2012-09-26 13:31:44 +02:00
Michael Stahl
39c3a4d664 idlc: clear include file set in Idlc::reset():
Resetting the set between files reduces the size of the generated
offapi.d from 41M to 4.5M.

Change-Id: I221e6dfb75cbadb5d970f18eccfc85ffdb83ce6c
2012-09-05 15:07:29 +02:00
Tor Lillqvist
30e1b61157 No point with these executables for non-desktop OSes
Change-Id: If2e086cf2783c187f2cdb479608aa91561e0d674
2012-08-07 08:55:24 +03:00
Christophe JAILLET
cf239da5c4 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-06 12:22:10 +01:00
David Tardon
00f4aabc86 fix typo
Change-Id: I663127446e7d9a38693ce46a7a42b5bec8cb8d51
2012-07-22 08:06:33 +02:00
Michael Stahl
7c10706845 idlc: do not use -I., deps need absolute paths
(regression from 63c508e3e8)

Change-Id: I03ae2cf6fdb229e26d33ef4611a1495590f90df7
2012-07-20 19:56:17 +02:00
Matúš Kukan
904f2de7c6 idlcpp was replaced by ucpp
Change-Id: I4bb299e8d0d41fd27c84b84e32057eb43feb7fa4
2012-07-20 12:46:57 +02:00
Michael Meeks
63c508e3e8 re-base on ALv2 code. Includes:
118568: switch to using ucpp
    Patch contributed by Juergen Schmidt
    http://svn.apache.org/viewvc?view=revision&revision=1209396
2012-07-18 09:29:19 +01:00