зеркало из https://github.com/mozilla/pjs.git
Removing use of HashTable (bug #69091). Removing CommandLineUtils from module build. Not part of default build. r=Pike.
This commit is contained in:
Родитель
fc756209ad
Коммит
f001f1912f
|
@ -34,10 +34,8 @@ IS_COMPONENT = 1
|
|||
|
||||
CPPSRCS = XSLTProcessorModule.cpp
|
||||
OBJS =../source/base/ArrayList.o \
|
||||
../source/base/CommandLineUtils.o \
|
||||
../source/base/DefaultStringComparator.o \
|
||||
../source/base/Double.o \
|
||||
../source/base/HashTable.o \
|
||||
../source/base/Integer.o \
|
||||
../source/base/List.o \
|
||||
../source/base/MITREObjectWrapper.o \
|
||||
|
|
|
@ -35,10 +35,8 @@ CPPSRCS= \
|
|||
|
||||
CPP_OBJS= \
|
||||
..\source\base\$(OBJDIR)\ArrayList.obj \
|
||||
..\source\base\$(OBJDIR)\CommandLineUtils.obj \
|
||||
..\source\base\$(OBJDIR)\DefaultStringComparator.obj \
|
||||
..\source\base\$(OBJDIR)\Double.obj \
|
||||
..\source\base\$(OBJDIR)\HashTable.obj \
|
||||
..\source\base\$(OBJDIR)\Integer.obj \
|
||||
..\source\base\$(OBJDIR)\List.obj \
|
||||
..\source\base\$(OBJDIR)\MITREObjectWrapper.obj \
|
||||
|
|
Двоичные данные
extensions/transformiix/macbuild/transformiix.mcp
Двоичные данные
extensions/transformiix/macbuild/transformiix.mcp
Двоичный файл не отображается.
|
@ -6,7 +6,6 @@ BASE_OBJS = ArrayList.o \
|
|||
CommandLineUtils.o \
|
||||
DefaultStringComparator.o \
|
||||
Double.o \
|
||||
HashTable.o \
|
||||
Integer.o \
|
||||
List.o \
|
||||
Map.o \
|
||||
|
@ -33,9 +32,6 @@ DefaultStringComparator.o: StringComparator.h DefaultStringComparator.cpp
|
|||
Double.o: primitives.h Double.cpp
|
||||
$(CC) -c Double.cpp
|
||||
|
||||
HashTable.o: HashTable.h HashTable.cpp
|
||||
$(CC) -c HashTable.cpp
|
||||
|
||||
Integer.o: primitives.h Integer.cpp
|
||||
$(CC) -c Integer.cpp
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ VPATH = @srcdir@
|
|||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
CPPSRCS = ArrayList.cpp \
|
||||
CommandLineUtils.cpp \
|
||||
DefaultStringComparator.cpp \
|
||||
Double.cpp \
|
||||
HashTable.cpp \
|
||||
|
@ -45,7 +44,8 @@ CPPSRCS = ArrayList.cpp \
|
|||
ifdef MOZ_XSL
|
||||
CPPSRCS += MozillaString.cpp
|
||||
else
|
||||
CPPSRCS += TxString.cpp
|
||||
CPPSRCS += CommandLineUtils.cpp \
|
||||
TxString.cpp
|
||||
endif
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
|
|
@ -27,10 +27,8 @@ DEFINES= $(DEFINES) -DMOZ_XSL
|
|||
|
||||
CPPSRCS= \
|
||||
ArrayList.cpp \
|
||||
CommandLineUtils.cpp \
|
||||
DefaultStringComparator.cpp \
|
||||
Double.cpp \
|
||||
HashTable.cpp \
|
||||
Integer.cpp \
|
||||
List.cpp \
|
||||
MITREObjectWrapper.cpp \
|
||||
|
@ -47,17 +45,16 @@ CPPSRCS = $(CPPSRCS) \
|
|||
MozillaString.cpp \
|
||||
$(NULL)
|
||||
!else
|
||||
CPPSRCS = $(CPPSRCS) \
|
||||
CPPSRCS = $(CPPSRCS) \
|
||||
CommandLineUtils.cpp \
|
||||
TxString.cpp \
|
||||
$(NULL)
|
||||
!endif
|
||||
|
||||
CPP_OBJS= \
|
||||
.\$(OBJDIR)\ArrayList.obj \
|
||||
.\$(OBJDIR)\CommandLineUtils.obj \
|
||||
.\$(OBJDIR)\DefaultStringComparator.obj \
|
||||
.\$(OBJDIR)\Double.obj \
|
||||
.\$(OBJDIR)\HashTable.obj \
|
||||
.\$(OBJDIR)\Integer.obj \
|
||||
.\$(OBJDIR)\List.obj \
|
||||
.\$(OBJDIR)\MITREObjectWrapper.obj \
|
||||
|
@ -74,8 +71,9 @@ CPP_OBJS = $(CPP_OBJS) \
|
|||
.\$(OBJDIR)\MozillaString.obj \
|
||||
$(NULL)
|
||||
!else
|
||||
CPP_OBJS = $(CPP_OBJS) \
|
||||
.\$(OBJDIR)\TxString.obj \
|
||||
CPP_OBJS = $(CPP_OBJS) \
|
||||
.\$(OBJDIR)\CommandLineUtils.obj \
|
||||
.\$(OBJDIR)\TxString.obj \
|
||||
$(NULL)
|
||||
!endif
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ OBJS =../base/ArrayList.o \
|
|||
../base/CommandLineUtils.o \
|
||||
../base/DefaultStringComparator.o \
|
||||
../base/Double.o \
|
||||
../base/HashTable.o \
|
||||
../base/Integer.o \
|
||||
../base/List.o \
|
||||
../base/MITREObjectWrapper.o \
|
||||
|
|
|
@ -29,7 +29,6 @@ CPP_OBJS= \
|
|||
../base/$(OBJDIR)/CommandLineUtils.obj \
|
||||
../base/$(OBJDIR)/DefaultStringComparator.obj \
|
||||
../base/$(OBJDIR)/Double.obj \
|
||||
../base/$(OBJDIR)/HashTable.obj \
|
||||
../base/$(OBJDIR)/Integer.obj \
|
||||
../base/$(OBJDIR)/List.obj \
|
||||
../base/$(OBJDIR)/MITREObjectWrapper.obj \
|
||||
|
|
|
@ -19,13 +19,13 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: DOMHelper.cpp,v 1.6 2001-01-12 20:06:29 axel%pike.org Exp $
|
||||
* $Id: DOMHelper.cpp,v 1.7 2001-04-03 12:30:26 peterv%netscape.com Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* A class used to overcome DOM 1.0 deficiencies
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.6 $ $Date: 2001-01-12 20:06:29 $
|
||||
* @version $Revision: 1.7 $ $Date: 2001-04-03 12:30:26 $
|
||||
**/
|
||||
|
||||
#include "DOMHelper.h"
|
||||
|
@ -115,17 +115,12 @@ Node* DOMHelper::getParentNode(Node* node) {
|
|||
if (node->getNodeType() != Node::ATTRIBUTE_NODE)
|
||||
return node->getParentNode();
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = node->getNSObj();
|
||||
#else
|
||||
Int32 key = (Int32)node;
|
||||
#endif
|
||||
MITREObjectWrapper* wrapper = 0;
|
||||
|
||||
wrapper = (MITREObjectWrapper*) parents.retrieve(key);
|
||||
wrapper = (MITREObjectWrapper*) parents.get(node);
|
||||
if (!wrapper) {
|
||||
continueIndexing(node);
|
||||
wrapper = (MITREObjectWrapper*) parents.retrieve(key);
|
||||
wrapper = (MITREObjectWrapper*) parents.get(node);
|
||||
}
|
||||
|
||||
if (wrapper) return (Node*)wrapper->object;
|
||||
|
@ -142,16 +137,10 @@ Node* DOMHelper::getParentNode(Node* node) {
|
|||
* Adds the given child/parent mapping
|
||||
**/
|
||||
void DOMHelper::addParentReference(Node* child, Node* parent) {
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = child->getNSObj();
|
||||
#else
|
||||
Int32 key = (Int32)child;
|
||||
#endif
|
||||
MITREObjectWrapper* wrapper = (MITREObjectWrapper*) parents.retrieve(key);
|
||||
MITREObjectWrapper* wrapper = (MITREObjectWrapper*) parents.get(child);
|
||||
if (!wrapper) {
|
||||
wrapper = new MITREObjectWrapper();
|
||||
parents.add(wrapper, key);
|
||||
parents.put(wrapper, child);
|
||||
}
|
||||
wrapper->object = parent;
|
||||
|
||||
|
@ -273,12 +262,7 @@ OrderInfo* DOMHelper::getDocumentOrder(Node* node) {
|
|||
|
||||
if (!node) return 0;
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = node->getNSObj();
|
||||
#else
|
||||
Int32 key = (Int32)node;
|
||||
#endif
|
||||
OrderInfo* orderInfo = (OrderInfo*)orders.retrieve(key);
|
||||
OrderInfo* orderInfo = (OrderInfo*)orders.get(node);
|
||||
|
||||
if (!orderInfo) {
|
||||
if (node->getNodeType() == Node::DOCUMENT_NODE) {
|
||||
|
@ -306,7 +290,7 @@ OrderInfo* DOMHelper::getDocumentOrder(Node* node) {
|
|||
orderInfo->order[0] = 0;
|
||||
}
|
||||
}
|
||||
orders.add(orderInfo, key);
|
||||
orders.put(orderInfo, node);
|
||||
}
|
||||
|
||||
return orderInfo;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: DOMHelper.h,v 1.4 2000-06-11 11:42:23 Peter.VanderBeken%pandora.be Exp $
|
||||
* $Id: DOMHelper.h,v 1.5 2001-04-03 12:30:43 peterv%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#ifndef TRANSFRMX_DOMHELPER_H
|
||||
|
@ -29,7 +29,7 @@
|
|||
#include "TxString.h"
|
||||
#include "List.h"
|
||||
#include "dom.h"
|
||||
#include "HashTable.h"
|
||||
#include "Map.h"
|
||||
#include "MITREObject.h"
|
||||
#include "primitives.h"
|
||||
|
||||
|
@ -59,7 +59,7 @@ class OrderInfo : public MITREObject {
|
|||
/**
|
||||
* A class used to overcome DOM 1.0 deficiencies
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.4 $ $Date: 2000-06-11 11:42:23 $
|
||||
* @version $Revision: 1.5 $ $Date: 2001-04-03 12:30:43 $
|
||||
**/
|
||||
class DOMHelper {
|
||||
|
||||
|
@ -137,12 +137,12 @@ private:
|
|||
/**
|
||||
* A Hashtable of attribute's parent nodes
|
||||
**/
|
||||
HashTable parents;
|
||||
Map parents;
|
||||
|
||||
/**
|
||||
* A Hashtable of Node/OrderInfo mappings
|
||||
**/
|
||||
HashTable orders;
|
||||
Map orders;
|
||||
|
||||
/**
|
||||
* A list of IndexState objects (one for each Document)
|
||||
|
|
Загрузка…
Ссылка в новой задаче