Fixed bustage due to improper use of DEBUG_somehacker.
This commit is contained in:
mccabe%netscape.com 1999-03-10 06:59:53 +00:00
Родитель 62c47142b8
Коммит 4f6e0a7c6e
4 изменённых файлов: 18 добавлений и 10 удалений

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

@ -164,10 +164,10 @@ indexify_file(const char *filename,
int limit = header->num_interfaces;
interface_record *value;
//#ifdef DEBUG_mccabe
#ifdef DEBUG_mccabe
static int which = 0;
which++;
//#endif
#endif
for (int i = 0; i < limit; i++) {
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
@ -195,7 +195,7 @@ indexify_file(const char *filename,
#endif
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
}
#ifdef DEBUG_MCCABE
#ifdef DEBUG_mccabe
else {
fprintf(stderr, "... found, %d\n", value->which);
}
@ -208,7 +208,9 @@ indexify_file(const char *filename,
"some interface def'd in multiple typelibs.");
value->which_header = header;
value->resolved = PR_TRUE;
#ifdef DEBUG_mccabe
value->which = which;
#endif
value->entry = current;
// XXX is this a leak?

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

@ -71,7 +71,6 @@ private:
// (record handling is looked up by name; iids are translated there)
nsHashtable *mIIDTable;
nsInterfaceInfo *mParent;
nsIAllocator* mAllocator;
};
@ -80,9 +79,12 @@ class interface_record {
public:
XPTHeader *which_header;
PRBool resolved;
int which;
XPTInterfaceDirectoryEntry *entry;
nsInterfaceInfo *info;
#ifdef DEBUG
// which (counting from 1) typelib was it loaded from?
int which;
#endif
};

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

@ -164,10 +164,10 @@ indexify_file(const char *filename,
int limit = header->num_interfaces;
interface_record *value;
//#ifdef DEBUG_mccabe
#ifdef DEBUG_mccabe
static int which = 0;
which++;
//#endif
#endif
for (int i = 0; i < limit; i++) {
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
@ -195,7 +195,7 @@ indexify_file(const char *filename,
#endif
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
}
#ifdef DEBUG_MCCABE
#ifdef DEBUG_mccabe
else {
fprintf(stderr, "... found, %d\n", value->which);
}
@ -208,7 +208,9 @@ indexify_file(const char *filename,
"some interface def'd in multiple typelibs.");
value->which_header = header;
value->resolved = PR_TRUE;
#ifdef DEBUG_mccabe
value->which = which;
#endif
value->entry = current;
// XXX is this a leak?

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

@ -71,7 +71,6 @@ private:
// (record handling is looked up by name; iids are translated there)
nsHashtable *mIIDTable;
nsInterfaceInfo *mParent;
nsIAllocator* mAllocator;
};
@ -80,9 +79,12 @@ class interface_record {
public:
XPTHeader *which_header;
PRBool resolved;
int which;
XPTInterfaceDirectoryEntry *entry;
nsInterfaceInfo *info;
#ifdef DEBUG
// which (counting from 1) typelib was it loaded from?
int which;
#endif
};