зеркало из https://github.com/mozilla/pjs.git
Export the CNavDTD interface so DTD's residing in remote shared libraries
can use it.
This commit is contained in:
Родитель
70231ed330
Коммит
d1d33900f8
|
@ -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,7 +44,19 @@ 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,7 +44,19 @@ 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___ */
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче