Diff for /Amaya/amaya/templateUtils.c between versions 1.35 and 1.36

version 1.35, 2008/11/14 14:29:46 version 1.36, 2008/11/19 08:42:36
Line 407  ThotBool ValidateTemplateAttrInMenu (Not Line 407  ThotBool ValidateTemplateAttrInMenu (Not
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void DumpElementSubPath(Element el, char* buffer)  void DumpElementSubPath(Element el, char* buffer)
 {  {
 #ifdef AMAYA_DEBUG  #ifdef TEMPLATE_DEBUG
   Element parent = TtaGetParent(el);    Element parent = TtaGetParent(el);
   if(parent==NULL)    if(parent==NULL)
     strcpy(buffer, TtaGetElementTypeName(TtaGetElementType(el)));      strcpy(buffer, TtaGetElementTypeName(TtaGetElementType(el)));
Line 417  void DumpElementSubPath(Element el, char Line 417  void DumpElementSubPath(Element el, char
       strcat(buffer, "/");        strcat(buffer, "/");
       strcat(buffer, TtaGetElementTypeName(TtaGetElementType(el)));        strcat(buffer, TtaGetElementTypeName(TtaGetElementType(el)));
     }      }
 #endif /* AMAYA_DEBUG */  #endif /* TEMPLATE_DEBUG */
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 425  void DumpElementSubPath(Element el, char Line 425  void DumpElementSubPath(Element el, char
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void DumpElementPath(Element el)  void DumpElementPath(Element el)
 {  {
 #ifdef AMAYA_DEBUG  #ifdef TEMPLATE_DEBUG
   char buffer[MAX_LENGTH];    char buffer[MAX_LENGTH];
   DumpElementSubPath(el, buffer);    DumpElementSubPath(el, buffer);
   printf("%s\n", buffer);    printf("%s\n", buffer);
 #endif /* AMAYA_DEBUG */  #endif /* TEMPLATE_DEBUG */
 }  }
   
   
Line 438  void DumpElementPath(Element el) Line 438  void DumpElementPath(Element el)
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void DumpTemplateElement(Element el, Document doc)  void DumpTemplateElement(Element el, Document doc)
 {  {
 #ifdef AMAYA_DEBUG  #ifdef TEMPLATE_DEBUG
   ElementType    elType;    ElementType    elType;
   AttributeType  attType;    AttributeType  attType;
   Attribute      att;    Attribute      att;
Line 548  void DumpTemplateElement(Element el, Doc Line 548  void DumpTemplateElement(Element el, Doc
             }              }
         }          }
     }      }
 #endif /* AMAYA_DEBUG */  #endif /* TEMPLATE_DEBUG */
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 556  void DumpTemplateElement(Element el, Doc Line 556  void DumpTemplateElement(Element el, Doc
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void DumpSubtree(Element el, Document doc, int off)  void DumpSubtree(Element el, Document doc, int off)
 {  {
 #ifdef AMAYA_DEBUG  #ifdef TEMPLATE_DEBUG
   Element child = TtaGetFirstChild(el);    Element child = TtaGetFirstChild(el);
   int i;    int i;
   
Line 570  void DumpSubtree(Element el, Document do Line 570  void DumpSubtree(Element el, Document do
       DumpSubtree(child, doc, off+1);        DumpSubtree(child, doc, off+1);
       TtaNextSibling(&child);        TtaNextSibling(&child);
     }      }
 #endif /* AMAYA_DEBUG */  #endif /* TEMPLATE_DEBUG */
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------

Removed from v.1.35  
changed lines
  Added in v.1.36


Webmaster