summaryrefslogtreecommitdiffstats
path: root/codemaker
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-10-19 12:26:20 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-10-19 12:26:20 +0000
commitda49fa8f5108dbb80c9a7036519e7e3649c544b9 (patch)
treec50ac204511ca3dbc86abaae7014ef1222a2c509 /codemaker
parent#92951# alignment tests (diff)
downloadcore-da49fa8f5108dbb80c9a7036519e7e3649c544b9.tar.gz
core-da49fa8f5108dbb80c9a7036519e7e3649c544b9.zip
#92951# added CPPU_GCC3( super_type ) for structs
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx20
1 files changed, 16 insertions, 4 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index ac52c42fff22..65b2d6416d85 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cpputype.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: jsc $ $Date: 2001-08-17 13:15:48 $
+ * last change: $Author: dbo $ $Date: 2001-10-19 13:26:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2876,7 +2876,13 @@ sal_Bool StructureType::dumpDeclaration(FileStream& o)
o << indent();
dumpType(o, fieldType);
- o << " " << fieldName << ";\n";
+ o << " " << fieldName;
+ if (i == 0 && superType.getLength() &&
+ !fieldType.equals("double") && !fieldType.equals("hyper") && !fieldType.equals("unsigned hyper"))
+ {
+ o << " CPPU_GCC3_ALIGN( " << scopedName(m_typeName, superType) << " )";
+ }
+ o << ";\n";
}
dec();
@@ -3222,7 +3228,13 @@ sal_Bool ExceptionType::dumpDeclaration(FileStream& o)
o << indent();
dumpType(o, fieldType);
- o << " " << fieldName << ";\n";
+ o << " " << fieldName;
+ if (i == 0 && superType.getLength() &&
+ !fieldType.equals("double") && !fieldType.equals("hyper") && !fieldType.equals("unsigned hyper"))
+ {
+ o << " CPPU_GCC3_ALIGN( " << scopedName(m_typeName, superType) << " )";
+ }
+ o << ";\n";
}