summaryrefslogtreecommitdiff
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
commit2632ad08c68dbd2235b38080d40ae2c09a882815 (patch)
tree0ca3d7fea9f364d738aa5391196313a90d86910b /codemaker
parent8d6c8178f08bc378a8c24f3850566d2b15e0ca4c (diff)
#92951# added CPPU_GCC3( super_type ) for structs
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx22
1 files changed, 17 insertions, 5 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index 9fa5e0624..66ea06f38 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,8 +3228,14 @@ 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";
+ }
dec();