fix build bustage due to use of nscore.h before it is exported - I don't understand why this stuff is being compiled in the export phase. We can that later.

This commit is contained in:
jband%netscape.com 1999-03-25 09:05:28 +00:00
Родитель 7f9da604ec
Коммит e0c20dd684
4 изменённых файлов: 24 добавлений и 34 удалений

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

@ -18,8 +18,6 @@
/* Implementation of nsIInterfaceInfoManager. */
#include "nscore.h"
#include "nsISupports.h"
#include "nsIInterfaceInfo.h"
#include "nsIInterfaceInfoManager.h"
@ -121,9 +119,9 @@ nsInterfaceInfo::GetMethodInfo(uint16 index, const nsXPTMethodInfo** info)
}
// else...
*info = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[index - mMethodBaseIndex]);
*info = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[index - mMethodBaseIndex];
return NS_OK;
}
@ -133,20 +131,19 @@ nsInterfaceInfo::GetMethodInfoForName(const char* methodName, uint16 *index,
{
// XXX probably want to speed this up with a hashtable, or by at least interning
// the names to avoid the strcmp
nsresult rv;
for (uint16 i = mMethodBaseIndex; i < mMethodCount; i++) {
const nsXPTMethodInfo* info;
info = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex]);
info = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex];
if (PL_strcmp(methodName, info->name) == 0) {
#ifdef NS_DEBUG
// make sure there aren't duplicate names
for (; i < mMethodCount; i++) {
const nsXPTMethodInfo* info2;
info2 = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex]);
info2 = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex];
NS_ASSERTION(PL_strcmp(methodName, info2->name)!= 0, "duplicate names");
}
#endif
@ -171,10 +168,9 @@ nsInterfaceInfo::GetConstant(uint16 index, const nsXPTConstant** constant)
}
// else...
*constant =
NS_REINTERPRET_CAST(nsXPTConstant*,
&mInterfaceRecord->interfaceDescriptor->
const_descriptors[index-mConstantBaseIndex]);
*constant = (nsXPTConstant*)
&mInterfaceRecord->interfaceDescriptor->
const_descriptors[index-mConstantBaseIndex];
return NS_OK;
}

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

@ -19,7 +19,6 @@
/* Implementation of nsIInterfaceInfo. */
#include <sys/stat.h>
#include "nscore.h"
#include "nsISupports.h"
#include "nsIInterfaceInfoManager.h"

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

@ -18,8 +18,6 @@
/* Implementation of nsIInterfaceInfoManager. */
#include "nscore.h"
#include "nsISupports.h"
#include "nsIInterfaceInfo.h"
#include "nsIInterfaceInfoManager.h"
@ -121,9 +119,9 @@ nsInterfaceInfo::GetMethodInfo(uint16 index, const nsXPTMethodInfo** info)
}
// else...
*info = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[index - mMethodBaseIndex]);
*info = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[index - mMethodBaseIndex];
return NS_OK;
}
@ -133,20 +131,19 @@ nsInterfaceInfo::GetMethodInfoForName(const char* methodName, uint16 *index,
{
// XXX probably want to speed this up with a hashtable, or by at least interning
// the names to avoid the strcmp
nsresult rv;
for (uint16 i = mMethodBaseIndex; i < mMethodCount; i++) {
const nsXPTMethodInfo* info;
info = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex]);
info = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex];
if (PL_strcmp(methodName, info->name) == 0) {
#ifdef NS_DEBUG
// make sure there aren't duplicate names
for (; i < mMethodCount; i++) {
const nsXPTMethodInfo* info2;
info2 = NS_REINTERPRET_CAST(nsXPTMethodInfo*,
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex]);
info2 = (nsXPTMethodInfo*)
&mInterfaceRecord->interfaceDescriptor->
method_descriptors[i - mMethodBaseIndex];
NS_ASSERTION(PL_strcmp(methodName, info2->name)!= 0, "duplicate names");
}
#endif
@ -171,10 +168,9 @@ nsInterfaceInfo::GetConstant(uint16 index, const nsXPTConstant** constant)
}
// else...
*constant =
NS_REINTERPRET_CAST(nsXPTConstant*,
&mInterfaceRecord->interfaceDescriptor->
const_descriptors[index-mConstantBaseIndex]);
*constant = (nsXPTConstant*)
&mInterfaceRecord->interfaceDescriptor->
const_descriptors[index-mConstantBaseIndex];
return NS_OK;
}

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

@ -19,7 +19,6 @@
/* Implementation of nsIInterfaceInfo. */
#include <sys/stat.h>
#include "nscore.h"
#include "nsISupports.h"
#include "nsIInterfaceInfoManager.h"