Bug 81161 - libtransformiix.so: symbol __1cDstdEcout_: referenced symbol not found. Patch provided mostly by peterv@netscape.com. Fixed by skipping all the cout calls. r=cls, sr=scc, a=dbaron

This commit is contained in:
margaret.chan%sun.com 2001-06-20 06:00:37 +00:00
Родитель 5f24709f88
Коммит 3fdc9e89e6
8 изменённых файлов: 62 добавлений и 21 удалений

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

@ -25,13 +25,13 @@
* -- fixed memory leak in NamedMap::hashKey method by deleting * -- fixed memory leak in NamedMap::hashKey method by deleting
* up char[] chars; * up char[] chars;
* *
* $Id: NamedMap.cpp,v 1.7 2001/04/08 14:36:06 peterv%netscape.com Exp $ * $Id: NamedMap.cpp,v 1.8 2001/06/20 06:00:31 margaret.chan%sun.com Exp $
*/ */
/** /**
* A Named Map for TxObjects * A Named Map for TxObjects
* @author <a href="kvisco@ziplink.net">Keith Visco</a> * @author <a href="kvisco@ziplink.net">Keith Visco</a>
* @version $Revision: 1.7 $ $Date: 2001/04/08 14:36:06 $ * @version $Revision: 1.8 $ $Date: 2001/06/20 06:00:31 $
**/ **/
#include "NamedMap.h" #include "NamedMap.h"
@ -122,8 +122,8 @@ void NamedMap::clear(MBool deleteObjects) {
} //-- clear } //-- clear
void NamedMap::dumpMap() { void NamedMap::dumpMap() {
#if 0
// XXX DEBUG OUTPUT
cout << "#NamedMap -------- { "<<endl; cout << "#NamedMap -------- { "<<endl;
for (int i = 0; i < numberOfBuckets; i++) { for (int i = 0; i < numberOfBuckets; i++) {
@ -143,6 +143,7 @@ void NamedMap::dumpMap() {
cout << "}"<<endl; cout << "}"<<endl;
} }
cout <<"} #NamedMap"<<endl; cout <<"} #NamedMap"<<endl;
#endif
} //-- dumpMap } //-- dumpMap
/** /**

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

@ -21,7 +21,7 @@
* Keith Visco, kvisco@ziplink.net * Keith Visco, kvisco@ziplink.net
* -- original author. * -- original author.
* *
* $Id: SimpleErrorObserver.cpp,v 1.2 1999/11/15 07:12:41 nisheeth%netscape.com Exp $ * $Id: SimpleErrorObserver.cpp,v 1.3 2001/06/20 06:00:31 margaret.chan%sun.com Exp $
*/ */
#include "ErrorObserver.h" #include "ErrorObserver.h"
@ -31,7 +31,9 @@
* All errors will be printed to the console (cout). * All errors will be printed to the console (cout).
**/ **/
SimpleErrorObserver::SimpleErrorObserver() { SimpleErrorObserver::SimpleErrorObserver() {
#ifdef TX_EXE
errStream = &cout; errStream = &cout;
#endif
hideWarnings = MB_FALSE; hideWarnings = MB_FALSE;
} //-- SimpleErrorObserver } //-- SimpleErrorObserver
@ -49,16 +51,17 @@ SimpleErrorObserver::SimpleErrorObserver(ostream& errStream) {
* level of NORMAL * level of NORMAL
**/ **/
void SimpleErrorObserver::recieveError(String& errorMessage) { void SimpleErrorObserver::recieveError(String& errorMessage) {
#ifdef TX_EXE
*errStream << "error: " << errorMessage << endl; *errStream << "error: " << errorMessage << endl;
errStream->flush(); errStream->flush();
#endif
} //-- recieveError } //-- recieveError
/** /**
* Notifies this Error observer of a new error using the given error level * Notifies this Error observer of a new error using the given error level
**/ **/
void SimpleErrorObserver::recieveError(String& errorMessage, ErrorLevel level) { void SimpleErrorObserver::recieveError(String& errorMessage, ErrorLevel level) {
#ifdef TX_EXE
switch ( level ) { switch ( level ) {
case ErrorObserver::FATAL : case ErrorObserver::FATAL :
*errStream << "fatal error: "; *errStream << "fatal error: ";
@ -74,9 +77,9 @@ void SimpleErrorObserver::recieveError(String& errorMessage, ErrorLevel level) {
*errStream << errorMessage << endl; *errStream << errorMessage << endl;
errStream->flush(); errStream->flush();
#endif
} //-- recieveError } //-- recieveError
void SimpleErrorObserver::supressWarnings(MBool supress) { void SimpleErrorObserver::supressWarnings(MBool supress) {
this->hideWarnings = supress; this->hideWarnings = supress;
} //-- supressWarnings } //-- supressWarnings

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

@ -30,7 +30,7 @@
* -- fixed bug in ::parsePredicates, * -- fixed bug in ::parsePredicates,
* made sure we continue looking for more predicates. * made sure we continue looking for more predicates.
* *
* $Id: ExprParser.cpp,v 1.11 2001/05/12 11:59:59 peterv%netscape.com Exp $ * $Id: ExprParser.cpp,v 1.12 2001/06/20 06:00:32 margaret.chan%sun.com Exp $
*/ */
/** /**
@ -38,7 +38,7 @@
* This class is used to parse XSL Expressions * This class is used to parse XSL Expressions
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A> * @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
* @see ExprLexer * @see ExprLexer
* @version $Revision: 1.11 $ $Date: 2001/05/12 11:59:59 $ * @version $Revision: 1.12 $ $Date: 2001/06/20 06:00:32 $
**/ **/
#include "ExprParser.h" #include "ExprParser.h"
@ -615,10 +615,11 @@ LocationStep* ExprParser::createLocationStep(ExprLexer& lexer) {
* *
**/ **/
NodeExpr* ExprParser::createNodeExpr(ExprLexer& lexer) { NodeExpr* ExprParser::createNodeExpr(ExprLexer& lexer) {
#if 0
//cout << "creating NodeExpr: "<<endl; // XXX DEBUG OUTPUT
if (!lexer.hasMoreTokens() ) cout << "Lexer has no Tokens"<<endl; cout << "creating NodeExpr: "<<endl;
if (!lexer.hasMoreTokens() ) cout << "Lexer has no Tokens"<<endl;
#endif
if (!lexer.hasMoreTokens() ) return 0; if (!lexer.hasMoreTokens() ) return 0;
NodeExpr* nodeExpr = 0; NodeExpr* nodeExpr = 0;
@ -734,7 +735,10 @@ PatternExpr* ExprParser::createPatternExpr(ExprLexer& lexer) {
pExpr = createFilterExpr(lexer); pExpr = createFilterExpr(lexer);
} }
else { else {
#if 0
// XXX DEBUG OUTPUT
cout << "invalid token: " << tok->value << endl; cout << "invalid token: " << tok->value << endl;
#endif
//-- eat token for now //-- eat token for now
lexer.nextToken(); lexer.nextToken();
} }

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

@ -21,12 +21,12 @@
* Keith Visco, kvisco@ziplink.net * Keith Visco, kvisco@ziplink.net
* -- original author. * -- original author.
* *
* $Id: LocationStep.cpp,v 1.6 2001/05/14 14:22:47 axel%pike.org Exp $ * $Id: LocationStep.cpp,v 1.7 2001/06/20 06:00:33 margaret.chan%sun.com Exp $
*/ */
/* /*
Implementation of an XPath LocationStep Implementation of an XPath LocationStep
@version $Revision: 1.6 $ $Date: 2001/05/14 14:22:47 $ @version $Revision: 1.7 $ $Date: 2001/06/20 06:00:33 $
*/ */
#include "Expr.h" #include "Expr.h"
@ -170,7 +170,10 @@ ExprResult* LocationStep::evaluate(Node* context, ContextState* cs) {
} }
break; break;
case NAMESPACE_AXIS : //-- not yet implemented case NAMESPACE_AXIS : //-- not yet implemented
#if 0
// XXX DEBUG OUTPUT
cout << "namespace axis not yet implemented"<<endl; cout << "namespace axis not yet implemented"<<endl;
#endif
break; break;
case PARENT_AXIS : case PARENT_AXIS :
{ {

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

@ -21,7 +21,7 @@
* Keith Visco, kvisco@ziplink.net * Keith Visco, kvisco@ziplink.net
* -- original author. * -- original author.
* *
* $Id: PredicateList.cpp,v 1.2 2001/04/03 12:36:07 peterv%netscape.com Exp $ * $Id: PredicateList.cpp,v 1.3 2001/06/20 06:00:33 margaret.chan%sun.com Exp $
*/ */
#include "Expr.h" #include "Expr.h"
@ -30,7 +30,7 @@
* Represents an ordered list of Predicates, * Represents an ordered list of Predicates,
* for use with Step and Filter Expressions * for use with Step and Filter Expressions
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A> * @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
* @version $Revision: 1.2 $ $Date: 2001/04/03 12:36:07 $ * @version $Revision: 1.3 $ $Date: 2001/06/20 06:00:33 $
**/ **/
//-- PredicateList Implementation --/ //-- PredicateList Implementation --/
@ -82,7 +82,10 @@ void PredicateList::evaluatePredicates(NodeSet* nodes, ContextState* cs) {
//-- then we can keep it, otherwise add to remove list //-- then we can keep it, otherwise add to remove list
ExprResult* exprResult = expr->evaluate(node,cs); ExprResult* exprResult = expr->evaluate(node,cs);
if ( !exprResult ) { if ( !exprResult ) {
#if 0
// XXX DEBUG OUTPUT
cout << "ExprResult == null" << endl; cout << "ExprResult == null" << endl;
#endif
} }
else { else {
switch(exprResult->getResultType()) { switch(exprResult->getResultType()) {

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

@ -30,7 +30,7 @@
/** /**
* Implementation of ProcessorState * Implementation of ProcessorState
* Much of this code was ported from XSL:P * Much of this code was ported from XSL:P
* @version $Revision: 1.29 $ $Date: 2001/06/10 16:41:35 $ * @version $Revision: 1.30 $ $Date: 2001/06/20 06:00:35 $
**/ **/
#include "ProcessorState.h" #include "ProcessorState.h"
@ -126,7 +126,10 @@ void ProcessorState::addAttributeSet(Element* attributeSet) {
if ( !attributeSet ) return; if ( !attributeSet ) return;
String name = attributeSet->getAttribute(NAME_ATTR); String name = attributeSet->getAttribute(NAME_ATTR);
if ( name.length() == 0 ) { if ( name.length() == 0 ) {
#if 0
// XXX DEBUG OUTPUT
cout << "missing required name attribute for xsl:" << ATTRIBUTE_SET <<endl; cout << "missing required name attribute for xsl:" << ATTRIBUTE_SET <<endl;
#endif
return; return;
} }
//-- get attribute set, if already exists, then merge //-- get attribute set, if already exists, then merge

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

@ -72,7 +72,7 @@
/** /**
* XSLTProcessor is a class for Processing XSL stylesheets * XSLTProcessor is a class for Processing XSL stylesheets
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a> * @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
* @version $Revision: 1.53 $ $Date: 2001/06/20 03:27:25 $ * @version $Revision: 1.54 $ $Date: 2001/06/20 06:00:35 $
**/ **/
/** /**
@ -1206,7 +1206,10 @@ void XSLTProcessor::processAction
delete dfrag; delete dfrag;
//-- we should add a MessageObserver class //-- we should add a MessageObserver class
#if 0
// XXX DEBUG OUTPUT
cout << "xsl:message - "<< message << endl; cout << "xsl:message - "<< message << endl;
#endif
break; break;
} }
//-- xsl:number //-- xsl:number
@ -1282,20 +1285,35 @@ void XSLTProcessor::processAction
ExprResult* exprResult = expr->evaluate(node, ps); ExprResult* exprResult = expr->evaluate(node, ps);
String data("expr debug: "); String data("expr debug: ");
expr->toString(data); expr->toString(data);
#if 0
// XXX DEBUG OUTPUT
cout << data << endl; cout << data << endl;
#endif
data.clear(); data.clear();
#if 0
// XXX DEBUG OUTPUT
cout << "result: "; cout << "result: ";
#endif
if ( exprResult ) { if ( exprResult ) {
switch ( exprResult->getResultType() ) { switch ( exprResult->getResultType() ) {
case ExprResult::NODESET: case ExprResult::NODESET:
#if 0
// XXX DEBUG OUTPUT
cout << "#NodeSet - "; cout << "#NodeSet - ";
#endif
default: default:
exprResult->stringValue(data); exprResult->stringValue(data);
#if 0
// XXX DEBUG OUTPUT
cout << data; cout << data;
#endif
break; break;
} }
} }
#if 0
// XXX DEBUG OUTPUT
cout << endl; cout << endl;
#endif
delete exprResult; delete exprResult;
break; break;

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

@ -33,7 +33,7 @@
/** /**
* @author <a href="kvisco@ziplink.net">Keith Visco</a> * @author <a href="kvisco@ziplink.net">Keith Visco</a>
* @version $Revision: 1.5 $ $Date: 2001/06/10 16:45:36 $ * @version $Revision: 1.6 $ $Date: 2001/06/20 06:00:37 $
**/ **/
@ -124,9 +124,15 @@ void NodeStack::clear() {
* @return true if specified Node is contained in the NodeStack * @return true if specified Node is contained in the NodeStack
**/ **/
MBool NodeStack::contains(Node* node) { MBool NodeStack::contains(Node* node) {
#if 0
// XXX DEBUG OUTPUT
cout << "NodeStack#contains [enter]\n"; cout << "NodeStack#contains [enter]\n";
#endif
MBool retVal = (indexOf(node) >= 0) ? MB_TRUE : MB_FALSE; MBool retVal = (indexOf(node) >= 0) ? MB_TRUE : MB_FALSE;
#if 0
// XXX DEBUG OUTPUT
cout << "NodeStack#contains [exit]\n"; cout << "NodeStack#contains [exit]\n";
#endif
return retVal; return retVal;
} //-- contains } //-- contains