[Libreoffice-commits] .: 2 commits - idlc/inc idlc/source idlc/test sal/inc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Nov 30 07:34:09 PST 2012
idlc/inc/idlc/astoperation.hxx | 2 --
idlc/inc/idlc/errorhandler.hxx | 3 ---
idlc/source/errorhandler.cxx | 6 ------
idlc/test/interface.idl | 1 -
sal/inc/sal/types.h | 23 +++++++++++------------
5 files changed, 11 insertions(+), 24 deletions(-)
New commits:
commit e65e90562432a8b8279a9c79a5e347aad0090e81
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 30 16:33:19 2012 +0100
Find a more sensible place for css
Change-Id: I33fe83c47954f62d8b678430e97cf711a98568d1
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index a6be155..53d1645 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -374,20 +374,27 @@ typedef struct _sal_Sequence
#define SAL_THROW_EXTERN_C()
#endif
-
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#ifdef __cplusplus
+
enum __sal_NoAcquire
{
/** definition of a no acquire enum for ctors
*/
SAL_NO_ACQUIRE
};
-#endif /* __cplusplus */
+namespace com { namespace sun { namespace star { } } }
+
+/** short-circuit extra-verbose API namespaces
+
+ @since LibreOffice 4.0
+*/
+namespace css = ::com::sun::star;
-#ifdef __cplusplus
-}
#endif /* __cplusplus */
#ifdef __cplusplus
@@ -411,14 +418,6 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
}
-namespace com { namespace sun { namespace star { } } }
-
-/** short-circuit extra-verbose API namespaces
-
- @since LibreOffice 4.0
-*/
-namespace css = ::com::sun::star;
-
#else /* __cplusplus */
/**
commit 299036996af6ae8897b1f2e07bbab7074955dfe8
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 30 16:24:17 2012 +0100
[oneway] removal cleanup
Change-Id: I1d60bb4042753bd18475166054ad57dceb2fc97d
diff --git a/idlc/inc/idlc/astoperation.hxx b/idlc/inc/idlc/astoperation.hxx
index 304113c..90ea5c9 100644
--- a/idlc/inc/idlc/astoperation.hxx
+++ b/idlc/inc/idlc/astoperation.hxx
@@ -24,8 +24,6 @@
namespace typereg { class Writer; }
-#define OP_NONE 0x0000
-
class AstType;
class AstOperation : public AstDeclaration
diff --git a/idlc/inc/idlc/errorhandler.hxx b/idlc/inc/idlc/errorhandler.hxx
index 978003f..0853bb1 100644
--- a/idlc/inc/idlc/errorhandler.hxx
+++ b/idlc/inc/idlc/errorhandler.hxx
@@ -36,7 +36,6 @@ enum ErrorCode
EIDL_MULTIPLE_BRANCH, // More than one union branch with this label
EIDL_COERCION_FAILURE, // Coercion failure
EIDL_SCOPE_CONFLICT, // Between fwd declare and full declare
- EIDL_ONEWAY_CONFLICT, // Between op decl and argument direction
EIDL_DISC_TYPE, // Illegal discriminator type in union
EIDL_LABEL_TYPE, // Mismatch with discriminator type in union
EIDL_ILLEGAL_ADD, // Illegal add action
@@ -54,13 +53,11 @@ enum ErrorCode
EIDL_DECL_NOT_DEFINED, // Forward declared but never defined
EIDL_FWD_DECL_LOOKUP, // Tried to lookup in fwd declared intf
EIDL_RECURSIVE_TYPE, // Illegal recursive use of type
- EIDL_NONVOID_ONEWAY, // Non-void return type in oneway operation
EIDL_NOT_A_TYPE, // Not a type
EIDL_TYPE_NOT_VALID, // Type is not valid in this context
EIDL_INTERFACEMEMBER_LOOKUP, // interface is not defined or a fwd declaration not exists
EIDL_SERVICEMEMBER_LOOKUP,
EIDL_TYPE_IDENT_CONFLICT, // type and identifier has equal names
- EIDL_ONEWAY_RAISE_CONFLICT, // oneway function raised excpetion conflict
EIDL_WRONGATTRIBUTEFLAG,
EIDL_DEFINED_ATTRIBUTEFLAG,
EIDL_WRONGATTRIBUTEKEYWORD,
diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx
index 2b91d4d..447e8c3 100644
--- a/idlc/source/errorhandler.cxx
+++ b/idlc/source/errorhandler.cxx
@@ -42,8 +42,6 @@ static const sal_Char* errorCodeToMessage(ErrorCode eCode)
return "coercion failure ";
case EIDL_SCOPE_CONFLICT:
return "definition scope is different than fwd declare scope, ";
- case EIDL_ONEWAY_CONFLICT:
- return "oneway operation with OUT|INOUT parameters or raises exceptions, ";
case EIDL_DISC_TYPE:
return "union with illegal discriminator type, ";
case EIDL_LABEL_TYPE:
@@ -78,8 +76,6 @@ static const sal_Char* errorCodeToMessage(ErrorCode eCode)
return "";
case EIDL_RECURSIVE_TYPE:
return "illegal recursive use of type: ";
- case EIDL_NONVOID_ONEWAY:
- return "non-void return type in oneway operation: ";
case EIDL_NOT_A_TYPE:
return "specified symbol is not a type: ";
case EIDL_TYPE_NOT_VALID:
@@ -90,8 +86,6 @@ static const sal_Char* errorCodeToMessage(ErrorCode eCode)
return "error in lookup of symbol, expected service is not defined: ";
case EIDL_TYPE_IDENT_CONFLICT:
return "type and parameter/member name are equal: ";
- case EIDL_ONEWAY_RAISE_CONFLICT:
- return "oneway operation cannot raises exceptions: ";
case EIDL_WRONGATTRIBUTEFLAG:
return "the used flag is not valid in this context: ";
case EIDL_DEFINED_ATTRIBUTEFLAG:
diff --git a/idlc/test/interface.idl b/idlc/test/interface.idl
index 7af48c8..8787c4d 100644
--- a/idlc/test/interface.idl
+++ b/idlc/test/interface.idl
@@ -35,7 +35,6 @@ interface XBase
interface XTestBaseTypes : XBase
{
void voidFunc();
- void onewayFunc();
short shortFunc( [in] short inparam, [out] short outparam, [inout] short inoutparam);
unsigned short uShortFunc( [in] unsigned short inparam, [out] unsigned short outparam, [inout] unsigned short inoutparam);
More information about the Libreoffice-commits
mailing list