summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-01-14 19:11:13 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-01-14 19:11:13 +0100
commit0dc15d0bc9adb9dcd2a1a5deea3f952b8a4e6689 (patch)
tree1fe24b3ce25cdfece23f43d4663f1adff67b6a1d /rsc
parent64e8661d76db6b02396d82b7d1f28dd3088a334f (diff)
parent8765a3bf9f2926a50d0f644e4263782269abe023 (diff)
rebase to DEV300_m69
Diffstat (limited to 'rsc')
-rw-r--r--rsc/inc/rsctools.hxx44
-rw-r--r--rsc/source/parser/rsclex.cxx2
-rw-r--r--rsc/source/parser/rsclex.hxx2
-rw-r--r--rsc/source/rsc/makefile.mk4
4 files changed, 34 insertions, 18 deletions
diff --git a/rsc/inc/rsctools.hxx b/rsc/inc/rsctools.hxx
index eb9f8937b939..fd8e49135eb0 100644
--- a/rsc/inc/rsctools.hxx
+++ b/rsc/inc/rsctools.hxx
@@ -138,28 +138,41 @@ public:
sal_uInt32 Size(){ return( nLen ); };
void Put( sal_uInt64 lVal )
{
+ union
+ {
+ sal_uInt64 lVal64;
+ sal_uInt32 aVal32[2];
+ };
+ lVal64 = lVal;
if( bSwap )
{
- Put( *(((sal_uInt32*)&lVal)+1) );
- Put( *(sal_uInt32*)&lVal );
+ Put( aVal32[1] );
+ Put( aVal32[0] );
}
else
{
- Put( *(sal_uInt32*)&lVal );
- Put( *(((sal_uInt32*)&lVal)+1) );
+ Put( aVal32[0] );
+ Put( aVal32[1] );
}
}
void Put( sal_Int32 lVal )
{
+ union
+ {
+ sal_uInt32 lVal32;
+ sal_uInt16 aVal16[2];
+ };
+ lVal32 = lVal;
+
if( bSwap )
{
- Put( *(((sal_uInt16*)&lVal) +1) );
- Put( *(sal_uInt16*)&lVal );
+ Put( aVal16[1] );
+ Put( aVal16[0] );
}
else
{
- Put( *(sal_uInt16*)&lVal );
- Put( *(((sal_uInt16*)&lVal) +1) );
+ Put( aVal16[0] );
+ Put( aVal16[1] );
}
}
void Put( sal_uInt32 nValue )
@@ -171,15 +184,22 @@ public:
void PutAt( sal_uInt32 nPos, INT32 lVal )
{
+ union
+ {
+ sal_uInt32 lVal32;
+ sal_uInt16 aVal16[2];
+ };
+ lVal32 = lVal;
+
if( bSwap )
{
- PutAt( nPos, *(((sal_uInt16*)&lVal) +1) );
- PutAt( nPos + 2, *(sal_uInt16*)&lVal );
+ PutAt( nPos, aVal16[1] );
+ PutAt( nPos + 2, aVal16[0] );
}
else
{
- PutAt( nPos, *(sal_uInt16*)&lVal );
- PutAt( nPos + 2, *(((sal_uInt16*)&lVal) +1) );
+ PutAt( nPos, aVal16[0] );
+ PutAt( nPos + 2, aVal16[1] );
}
}
void PutAt( sal_uInt32 nPos, sal_uInt32 lVal )
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index 3c2c95e541d1..8c34637fa304 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -317,7 +317,7 @@ int yylex()
/****************** yyerror **********************************************/
#ifdef RS6000
extern "C" void yyerror( char* pMessage )
-#elif defined HP9000 || defined SCO || defined IRIX || defined SOLARIS
+#elif defined HP9000 || defined SCO || defined SOLARIS
extern "C" void yyerror( const char* pMessage )
#else
void yyerror( char* pMessage )
diff --git a/rsc/source/parser/rsclex.hxx b/rsc/source/parser/rsclex.hxx
index 89feed4dd132..63afd0b208c7 100644
--- a/rsc/source/parser/rsclex.hxx
+++ b/rsc/source/parser/rsclex.hxx
@@ -107,7 +107,7 @@ class ObjectStack {
extern "C" int yyparse(); // forward Deklaration fuer erzeugte Funktion
extern "C" void yyerror( char * );
extern "C" int yylex( void );
-#elif defined( HP9000 ) || defined( SCO ) || defined ( IRIX ) || defined ( SOLARIS )
+#elif defined( HP9000 ) || defined( SCO ) || defined ( SOLARIS )
extern "C" int yyparse(); // forward Deklaration fuer erzeugte Funktion
extern "C" void yyerror( const char * );
extern "C" int yylex( void );
diff --git a/rsc/source/rsc/makefile.mk b/rsc/source/rsc/makefile.mk
index 40e2d77740a3..89abd22207d9 100644
--- a/rsc/source/rsc/makefile.mk
+++ b/rsc/source/rsc/makefile.mk
@@ -40,10 +40,6 @@ ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
-.IF "$(OS)"=="IRIX"
-NOOPTFILES= $(OBJ)$/rsc.obj
-.ENDIF
-
OBJFILES= $(OBJ)$/rsc.obj
.INCLUDE : target.mk