Diff for /Amaya/amaya/HTMLbook.c between versions 1.97 and 1.98

version 1.97, 2003/01/06 15:42:05 version 1.98, 2003/01/21 16:18:28
Line 287  void SetInternalLinks (Document document Line 287  void SetInternalLinks (Document document
                           length = strlen (value);                            length = strlen (value);
                           /* check whether the name changed */                            /* check whether the name changed */
                           i = 0;                            i = 0;
                           target = SearchNAMEattribute (document, &value[1], NULL);                            target = SearchNAMEattribute (document, &value[1], NULL, NULL);
                           while (target != NULL)                            while (target != NULL)
                             {                              {
                               /* is it the right NAME */                                /* is it the right NAME */
Line 299  void SetInternalLinks (Document document Line 299  void SetInternalLinks (Document document
                                   i++;                                    i++;
                                   sprintf (&value[length], "%d", i);                                    sprintf (&value[length], "%d", i);
                                   target = SearchNAMEattribute (document,                                    target = SearchNAMEattribute (document,
                                                         &value[1], NULL);                                                          &value[1], NULL, NULL);
                                 }                                  }
                             }                              }
                         }                          }
Line 332  void SetInternalLinks (Document document Line 332  void SetInternalLinks (Document document
                       TtaAttachAttribute (link, IntLinkAttr, document);                        TtaAttachAttribute (link, IntLinkAttr, document);
                     }                      }
                   /* looks for the target element */                    /* looks for the target element */
                   target = SearchNAMEattribute (document, ptr, NULL);                    target = SearchNAMEattribute (document, ptr, NULL, NULL);
                   if (target != NULL)                    if (target != NULL)
                     /* set the Thot link */                      /* set the Thot link */
                     TtaSetAttributeReference (IntLinkAttr, link, document,                      TtaSetAttributeReference (IntLinkAttr, link, document,
Line 887  static Element MoveDocumentBody (Element Line 887  static Element MoveDocumentBody (Element
   if (target != NULL)    if (target != NULL)
     {      {
       /* locate the target element within the source document */        /* locate the target element within the source document */
       root = SearchNAMEattribute (sourceDoc, target, NULL);        root = SearchNAMEattribute (sourceDoc, target, NULL, NULL);
       elType = TtaGetElementType (root);        elType = TtaGetElementType (root);
       isID = (elType.ElTypeNum != HTML_EL_Anchor &&        isID = (elType.ElTypeNum != HTML_EL_Anchor &&
               elType.ElTypeNum != HTML_EL_MAP);                elType.ElTypeNum != HTML_EL_MAP);

Removed from v.1.97  
changed lines
  Added in v.1.98


Webmaster