summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-09 11:53:28 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-09 11:53:28 +0100
commit57091022781ac3d0509e417bf427d2edc723eed2 (patch)
tree17fe6e5cfca86c02031ca415444b70f498b3333d /extensions
parent0a096fd9739088a4425cf66c774742aa095b98b0 (diff)
Getting completely rid of the int32 and whatever
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx19
-rw-r--r--extensions/source/nsplugin/source/npshell.hxx4
-rw-r--r--extensions/source/plugin/inc/plugin/unx/plugcon.hxx21
-rw-r--r--extensions/source/plugin/unx/npnapi.cxx6
-rw-r--r--extensions/source/plugin/unx/nppapi.cxx2
5 files changed, 6 insertions, 46 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index 7d74dcc187c5..fa0e0a2104df 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -71,25 +71,6 @@
#include "boost/scoped_array.hpp"
#include "tools/pathutils.hxx"
-//http://qa.openoffice.org/issues/show_bug.cgi?id=82545
-//https://bugzilla.mozilla.org/show_bug.cgi?id=241262
-#ifndef _UINT32
-# if defined(__alpha) || defined(__LP64__) || defined(AIX) || defined(WNT)
- typedef unsigned int uint32;
-# else /* __alpha */
- typedef unsigned long uint32;
-# endif
-# define _UINT32
-#endif
-#ifndef _INT32
-# if defined(__alpha) || defined(__LP64__) || defined(AIX) || defined(WNT)
- typedef int int32;
-# else /* __alpha */
- typedef long int32;
-# endif
-# define _INT32
-#endif
-
#include "npapi.h"
#include "npshell.hxx"
#include "so_env.hxx"
diff --git a/extensions/source/nsplugin/source/npshell.hxx b/extensions/source/nsplugin/source/npshell.hxx
index c5821a0a10d4..a59175a21b6f 100644
--- a/extensions/source/nsplugin/source/npshell.hxx
+++ b/extensions/source/nsplugin/source/npshell.hxx
@@ -42,8 +42,8 @@ typedef struct _PluginInstance
Window window;
Display *display;
#endif
- uint32 x, y;
- uint32 width, height;
+ uint32_t x, y;
+ uint32_t width, height;
NPMIMEType type;
char *message;
diff --git a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
index b98ba85260d9..05740842de45 100644
--- a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
+++ b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
@@ -73,27 +73,6 @@ extern "C" {
#define MOZ_X11
#endif
-//http://qa.openoffice.org/issues/show_bug.cgi?id=82545
-//https://bugzilla.mozilla.org/show_bug.cgi?id=241262
-#ifdef UNIX
-# ifndef _UINT32
-# if defined(__alpha) || defined(__LP64__) || defined(AIX)
- typedef unsigned int uint32;
-# else /* __alpha */
- typedef unsigned long uint32;
-# endif
-# define _UINT32
-# endif
-# ifndef _INT32
-# if defined(__alpha) || defined(__LP64__) || defined(AIX)
- typedef int int32;
-# else /* __alpha */
- typedef long int32;
-# endif
-# define _INT32
-# endif
-#endif
-
#if ! defined ( _NPAPI_H_) && ! defined (npapi_h_)
extern "C" {
#include <npsdk/npupp.h>
diff --git a/extensions/source/plugin/unx/npnapi.cxx b/extensions/source/plugin/unx/npnapi.cxx
index ceb79cc3cbaf..6ca6ea86b3d4 100644
--- a/extensions/source/plugin/unx/npnapi.cxx
+++ b/extensions/source/plugin/unx/npnapi.cxx
@@ -811,7 +811,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
NPP instance = m_aInstances[ nInstance ]->instance;
sal_uInt32 nFileID = pMessage->GetUINT32();
NPStream* pStream = m_aNPWrapStreams[ nFileID ];
- int32 nRet = aPluginFuncs.writeready( instance, pStream );
+ int32_t nRet = aPluginFuncs.writeready( instance, pStream );
medDebug( 1, "pluginapp: NPP_WriteReady( %p, %p ) (stream id = %d) returns %d\n",
instance, pStream, nFileID, nRet );
@@ -827,10 +827,10 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
NPP instance = m_aInstances[ nInstance ]->instance;
sal_uInt32 nFileID = pMessage->GetUINT32();
NPStream* pStream = m_aNPWrapStreams[ nFileID ];
- int32 offset = pMessage->GetUINT32();
+ int32_t offset = pMessage->GetUINT32();
sal_uLong len;
char* buffer = (char*)pMessage->GetBytes( len );
- int32 nRet = aPluginFuncs.write( instance, pStream, offset, len, buffer );
+ int32_t nRet = aPluginFuncs.write( instance, pStream, offset, len, buffer );
medDebug( 1,"pluginapp: NPP_Write( %p, %p, %d, %d, %p ) returns %d\n"
"stream = { pdata = %p, ndata = %p, url = %s, end = %d, lastmodified = %d, notifyData = %p }\n",
diff --git a/extensions/source/plugin/unx/nppapi.cxx b/extensions/source/plugin/unx/nppapi.cxx
index 87baa29aae10..982672125421 100644
--- a/extensions/source/plugin/unx/nppapi.cxx
+++ b/extensions/source/plugin/unx/nppapi.cxx
@@ -571,7 +571,7 @@ int32_t UnxPluginComm::NPP_Write( NPP instance, NPStream* stream, int32_t offset
if( ! pMes )
return 0;
- int32 aRet = pMes->GetUINT32();
+ int32_t aRet = pMes->GetUINT32();
delete pMes;
return aRet;