Diff for /Amaya/amaya/fetchXMLname.c between versions 1.63 and 1.64

version 1.63, 2003/10/15 17:11:38 version 1.64, 2003/11/18 08:10:23
Line 351  ThotBool IsXMLElementInline (ElementType Line 351  ThotBool IsXMLElementInline (ElementType
    Search in the Attribute Value Mapping Table the entry for the attribute     Search in the Attribute Value Mapping Table the entry for the attribute
    ThotAtt and its value attVal. Returns the corresponding Thot value.     ThotAtt and its value attVal. Returns the corresponding Thot value.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void MapXMLAttributeValue (int XMLtype, char *attVal, AttributeType attrType,  void MapXMLAttributeValue (int XMLtype, char *attVal, const AttributeType *attrType,
                               int *value)                                int *value)
 {  {
   AttrValueMapping   *ptr;    AttrValueMapping   *ptr;
Line 371  void MapXMLAttributeValue (int XMLtype, Line 371  void MapXMLAttributeValue (int XMLtype,
   i = 0;    i = 0;
   if (ptr == NULL)    if (ptr == NULL)
     return;      return;
   while (ptr[i].ThotAttr != attrType.AttrTypeNum && ptr[i].ThotAttr != 0)    while (ptr[i].ThotAttr != attrType->AttrTypeNum && ptr[i].ThotAttr != 0)
     i++;      i++;
   if (ptr[i].ThotAttr == attrType.AttrTypeNum)    if (ptr[i].ThotAttr == attrType->AttrTypeNum)
     do      do
       if (!strcmp (ptr[i].XMLattrValue, attVal))        if (!strcmp (ptr[i].XMLattrValue, attVal))
         *value = ptr[i].ThotAttrValue;          *value = ptr[i].ThotAttrValue;
       else        else
         i++;          i++;
     while (*value == 0 && ptr[i].ThotAttr == attrType.AttrTypeNum);      while (*value == 0 && ptr[i].ThotAttr == attrType->AttrTypeNum);
 }  }
   
   

Removed from v.1.63  
changed lines
  Added in v.1.64


Webmaster