dbertoni    2003/03/17 17:56:44

  Modified:    c/src/XSLT StylesheetHandler.cpp
  Log:
  Workaround for Sun compiler optimizer bug.
  
  Revision  Changes    Path
  1.103     +6 -6      xml-xalan/c/src/XSLT/StylesheetHandler.cpp
  
  Index: StylesheetHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetHandler.cpp,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- StylesheetHandler.cpp     5 Feb 2003 00:07:41 -0000       1.102
  +++ StylesheetHandler.cpp     18 Mar 2003 01:56:44 -0000      1.103
  @@ -514,7 +514,7 @@
                                        }
                                }
   
  -                             
m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +                             
m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 1);
                        }
                }
                else if (!m_inTemplate && startsWith(*ns, 
m_constructionContext.getXalanXSLNameSpaceURL()))
  @@ -541,7 +541,7 @@
                        }
                        else
                        {
  -                             
m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +                             
m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 1);
   
                                // BEGIN SANJIVA CODE
                                // is this an extension element call?
  @@ -634,7 +634,7 @@
        m_pTemplate->appendChildElem(pElem);
        m_inTemplate = true;
   
  -     m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +     m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 
1);
   
        m_foundStylesheet = true;
   
  @@ -700,7 +700,7 @@
        
                m_elemStack.push_back(m_pTemplate);
                m_inTemplate = true;
  -             
m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +             
m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 1);
                break;
   
        case StylesheetConstructionContext::ELEMNAME_VARIABLE:
  @@ -717,7 +717,7 @@
   
                        m_elemStack.push_back(elem);
                        m_inTemplate = true; // fake it out
  -                     
m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +                     
m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 1);
                        elem->addToStylesheet(m_constructionContext, 
m_stylesheet);
                }
        break;
  @@ -740,7 +740,7 @@
        case StylesheetConstructionContext::ELEMNAME_ATTRIBUTE_SET:
                {
                        m_inTemplate = true; // fake it out
  -                     
m_inScopeVariableNamesStack.push_back(QNameSetVectorType::value_type());
  +                     
m_inScopeVariableNamesStack.resize(m_inScopeVariableNamesStack.size() + 1);
   
                        m_elemStack.push_back(
                                m_constructionContext.createElement(
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to