зеркало из https://github.com/mozilla/gecko-dev.git
Not part of seamonkey.
Fixed bustage due to improper use of DEBUG_somehacker.
This commit is contained in:
Родитель
62c47142b8
Коммит
4f6e0a7c6e
|
@ -164,10 +164,10 @@ indexify_file(const char *filename,
|
||||||
int limit = header->num_interfaces;
|
int limit = header->num_interfaces;
|
||||||
|
|
||||||
interface_record *value;
|
interface_record *value;
|
||||||
//#ifdef DEBUG_mccabe
|
#ifdef DEBUG_mccabe
|
||||||
static int which = 0;
|
static int which = 0;
|
||||||
which++;
|
which++;
|
||||||
//#endif
|
#endif
|
||||||
for (int i = 0; i < limit; i++) {
|
for (int i = 0; i < limit; i++) {
|
||||||
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
|
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ indexify_file(const char *filename,
|
||||||
#endif
|
#endif
|
||||||
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
|
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_MCCABE
|
#ifdef DEBUG_mccabe
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "... found, %d\n", value->which);
|
fprintf(stderr, "... found, %d\n", value->which);
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,9 @@ indexify_file(const char *filename,
|
||||||
"some interface def'd in multiple typelibs.");
|
"some interface def'd in multiple typelibs.");
|
||||||
value->which_header = header;
|
value->which_header = header;
|
||||||
value->resolved = PR_TRUE;
|
value->resolved = PR_TRUE;
|
||||||
|
#ifdef DEBUG_mccabe
|
||||||
value->which = which;
|
value->which = which;
|
||||||
|
#endif
|
||||||
value->entry = current;
|
value->entry = current;
|
||||||
|
|
||||||
// XXX is this a leak?
|
// XXX is this a leak?
|
||||||
|
|
|
@ -71,7 +71,6 @@ private:
|
||||||
// (record handling is looked up by name; iids are translated there)
|
// (record handling is looked up by name; iids are translated there)
|
||||||
nsHashtable *mIIDTable;
|
nsHashtable *mIIDTable;
|
||||||
|
|
||||||
nsInterfaceInfo *mParent;
|
|
||||||
nsIAllocator* mAllocator;
|
nsIAllocator* mAllocator;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -80,9 +79,12 @@ class interface_record {
|
||||||
public:
|
public:
|
||||||
XPTHeader *which_header;
|
XPTHeader *which_header;
|
||||||
PRBool resolved;
|
PRBool resolved;
|
||||||
int which;
|
|
||||||
XPTInterfaceDirectoryEntry *entry;
|
XPTInterfaceDirectoryEntry *entry;
|
||||||
nsInterfaceInfo *info;
|
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;
|
int limit = header->num_interfaces;
|
||||||
|
|
||||||
interface_record *value;
|
interface_record *value;
|
||||||
//#ifdef DEBUG_mccabe
|
#ifdef DEBUG_mccabe
|
||||||
static int which = 0;
|
static int which = 0;
|
||||||
which++;
|
which++;
|
||||||
//#endif
|
#endif
|
||||||
for (int i = 0; i < limit; i++) {
|
for (int i = 0; i < limit; i++) {
|
||||||
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
|
XPTInterfaceDirectoryEntry *current = header->interface_directory + i;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ indexify_file(const char *filename,
|
||||||
#endif
|
#endif
|
||||||
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
|
NS_ASSERTION(hashEntry != NULL, "PL_HashTableAdd failed?");
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_MCCABE
|
#ifdef DEBUG_mccabe
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "... found, %d\n", value->which);
|
fprintf(stderr, "... found, %d\n", value->which);
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,9 @@ indexify_file(const char *filename,
|
||||||
"some interface def'd in multiple typelibs.");
|
"some interface def'd in multiple typelibs.");
|
||||||
value->which_header = header;
|
value->which_header = header;
|
||||||
value->resolved = PR_TRUE;
|
value->resolved = PR_TRUE;
|
||||||
|
#ifdef DEBUG_mccabe
|
||||||
value->which = which;
|
value->which = which;
|
||||||
|
#endif
|
||||||
value->entry = current;
|
value->entry = current;
|
||||||
|
|
||||||
// XXX is this a leak?
|
// XXX is this a leak?
|
||||||
|
|
|
@ -71,7 +71,6 @@ private:
|
||||||
// (record handling is looked up by name; iids are translated there)
|
// (record handling is looked up by name; iids are translated there)
|
||||||
nsHashtable *mIIDTable;
|
nsHashtable *mIIDTable;
|
||||||
|
|
||||||
nsInterfaceInfo *mParent;
|
|
||||||
nsIAllocator* mAllocator;
|
nsIAllocator* mAllocator;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -80,9 +79,12 @@ class interface_record {
|
||||||
public:
|
public:
|
||||||
XPTHeader *which_header;
|
XPTHeader *which_header;
|
||||||
PRBool resolved;
|
PRBool resolved;
|
||||||
int which;
|
|
||||||
XPTInterfaceDirectoryEntry *entry;
|
XPTInterfaceDirectoryEntry *entry;
|
||||||
nsInterfaceInfo *info;
|
nsInterfaceInfo *info;
|
||||||
|
#ifdef DEBUG
|
||||||
|
// which (counting from 1) typelib was it loaded from?
|
||||||
|
int which;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче