Export the CNavDTD interface so DTD's residing in remote shared libraries

can use it.
This commit is contained in:
spider 1998-07-14 19:24:54 +00:00
Родитель 70231ed330
Коммит d1d33900f8
6 изменённых файлов: 46 добавлений и 8 удалений

Просмотреть файл

@ -60,7 +60,7 @@ class nsParser;
***************************************************************/
//#define _dynstack 1
class CTagStack {
CLASS_EXPORT_HTMLPARS CTagStack {
enum {eStackSize=200};
public:
@ -93,7 +93,7 @@ public:
***************************************************************/
class CNavDTD : public nsIDTD {
CLASS_EXPORT_HTMLPARS CNavDTD : public nsIDTD {
public:

Просмотреть файл

@ -26,6 +26,7 @@
#ifndef NS_IDTD__
#define NS_IDTD__
#include "nshtmlpars.h"
#include "nsISupports.h"
#include "prtypes.h"
@ -43,8 +44,20 @@ class nsString;
enum eAutoDetectResult {eUnknownDetect, eValidDetect, eInvalidDetect};
class nsIDTD : public nsISupports {
// XXX: Disable warning message about nsISupports not being exported. I *believe* this
// to be a harmless warning message on windows, a better fix would be to export
// the nsISupports interface.
#if defined(XP_PC)
#pragma warning( disable : 4275 )
#endif
CLASS_EXPORT_HTMLPARS nsIDTD : public nsISupports {
#if defined(XP_PC)
#pragma warning( default : 4275 )
#endif
public:
/**

Просмотреть файл

@ -32,6 +32,12 @@
#define NS_HTMLPARS NS_IMPORT
#endif
#if defined(XP_MAC)
#define CLASS_EXPORT_HTMLPARS NS_HTMLPARS class
#else
#define CLASS_EXPORT_HTMLPARS class NS_HTMLPARS
#endif
#endif /* nshtmlpars_h___ */

Просмотреть файл

@ -60,7 +60,7 @@ class nsParser;
***************************************************************/
//#define _dynstack 1
class CTagStack {
CLASS_EXPORT_HTMLPARS CTagStack {
enum {eStackSize=200};
public:
@ -93,7 +93,7 @@ public:
***************************************************************/
class CNavDTD : public nsIDTD {
CLASS_EXPORT_HTMLPARS CNavDTD : public nsIDTD {
public:

Просмотреть файл

@ -26,6 +26,7 @@
#ifndef NS_IDTD__
#define NS_IDTD__
#include "nshtmlpars.h"
#include "nsISupports.h"
#include "prtypes.h"
@ -43,8 +44,20 @@ class nsString;
enum eAutoDetectResult {eUnknownDetect, eValidDetect, eInvalidDetect};
class nsIDTD : public nsISupports {
// XXX: Disable warning message about nsISupports not being exported. I *believe* this
// to be a harmless warning message on windows, a better fix would be to export
// the nsISupports interface.
#if defined(XP_PC)
#pragma warning( disable : 4275 )
#endif
CLASS_EXPORT_HTMLPARS nsIDTD : public nsISupports {
#if defined(XP_PC)
#pragma warning( default : 4275 )
#endif
public:
/**

Просмотреть файл

@ -32,6 +32,12 @@
#define NS_HTMLPARS NS_IMPORT
#endif
#if defined(XP_MAC)
#define CLASS_EXPORT_HTMLPARS NS_HTMLPARS class
#else
#define CLASS_EXPORT_HTMLPARS class NS_HTMLPARS
#endif
#endif /* nshtmlpars_h___ */