You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/05/28 22:55:19 UTC

cvs commit: xml-xerces/c/src/internal ElemStack.cpp ElemStack.hpp

tng         01/05/28 13:55:19

  Modified:    c/src/internal ElemStack.cpp ElemStack.hpp
  Log:
  Schema: Store Grammar in ElemStack as well.
  
  Revision  Changes    Path
  1.12      +5 -0      xml-xerces/c/src/internal/ElemStack.cpp
  
  Index: ElemStack.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/internal/ElemStack.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ElemStack.cpp	2001/05/11 13:26:16	1.11
  +++ ElemStack.cpp	2001/05/28 20:55:19	1.12
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: ElemStack.cpp,v $
  + * Revision 1.12  2001/05/28 20:55:19  tng
  + * Schema: Store Grammar in ElemStack as well.
  + *
    * Revision 1.11  2001/05/11 13:26:16  tng
    * Copyright update.
    *
  @@ -179,6 +182,7 @@
       fStack[fStackTop]->fMapCount = 0;
       fStack[fStackTop]->fValidationFlag = false;
       fStack[fStackTop]->fCurrentScope = Grammar::TOP_LEVEL_SCOPE;
  +    fStack[fStackTop]->fCurrentGrammar = 0;
   
       // Bump the top of stack
       fStackTop++;
  @@ -211,6 +215,7 @@
       fStack[fStackTop]->fMapCount = 0;
       fStack[fStackTop]->fValidationFlag = false;
       fStack[fStackTop]->fCurrentScope = Grammar::TOP_LEVEL_SCOPE;
  +    fStack[fStackTop]->fCurrentGrammar = 0;
   
       // And store the new stuff
       fStack[fStackTop]->fThisElement = toSet;
  
  
  
  1.9       +19 -0     xml-xerces/c/src/internal/ElemStack.hpp
  
  Index: ElemStack.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/internal/ElemStack.hpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ElemStack.hpp	2001/05/11 13:26:16	1.8
  +++ ElemStack.hpp	2001/05/28 20:55:19	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: ElemStack.hpp,v $
  + * Revision 1.9  2001/05/28 20:55:19  tng
  + * Schema: Store Grammar in ElemStack as well.
  + *
    * Revision 1.8  2001/05/11 13:26:16  tng
    * Copyright update.
    *
  @@ -94,6 +97,7 @@
   #include <util/StringPool.hpp>
   #include <util/QName.hpp>
   class XMLElementDecl;
  +class Grammar;
   
   //
   //  During the scan of content, we have to keep up with the nesting of
  @@ -175,6 +179,7 @@
   
           bool                fValidationFlag;
           int                 fCurrentScope;
  +        Grammar*            fCurrentGrammar;
       };
   
       enum MapModes
  @@ -214,6 +219,9 @@
       void setCurrentScope(int currentScope);
       int getCurrentScope();
   
  +    void setCurrentGrammar(Grammar* currentGrammar);
  +    Grammar* getCurrentGrammar();
  +
       // -----------------------------------------------------------------------
       //  Prefix map methods
       // -----------------------------------------------------------------------
  @@ -338,6 +346,17 @@
   inline void ElemStack::setCurrentScope(int currentScope)
   {
       fStack[fStackTop-1]->fCurrentScope = currentScope;
  +    return;
  +}
  +
  +inline Grammar* ElemStack::getCurrentGrammar()
  +{
  +    return fStack[fStackTop-1]->fCurrentGrammar;
  +}
  +
  +inline void ElemStack::setCurrentGrammar(Grammar* currentGrammar)
  +{
  +    fStack[fStackTop-1]->fCurrentGrammar = currentGrammar;
       return;
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org