Diff for /Amaya/amaya/AHTURLTools.c between versions 1.191 and 1.192

version 1.191, 2005/06/07 13:37:11 version 1.192, 2005/06/08 09:50:38
Line 914  ThotBool IsImageType (const char *type) Line 914  ThotBool IsImageType (const char *type)
      i = sizeof ("image/") - 1;       i = sizeof ("image/") - 1;
    else     else
      i = 0;       i = 0;
    if (!strcmp (&temptype[i], "gif") || !strcmp (&temptype[i], "x-xbitmap") ||     if (!strcmp (&temptype[i], "gif") ||
        !strcmp (&temptype[i], "x-xpixmap") || !strcmp (&temptype[i], "jpeg") ||         !strcmp (&temptype[i], "x-xbitmap") ||
          !strcmp (&temptype[i], "x-xpixmap") ||
          !strcmp (&temptype[i], "jpeg") ||
        !strcmp (&temptype[i], "png"))         !strcmp (&temptype[i], "png"))
      ret = TRUE;       ret = TRUE;
    else     else
Line 951  ThotBool IsTextName (const char *path) Line 953  ThotBool IsTextName (const char *path)
      }       }
    nsuffix[i] = EOS;     nsuffix[i] = EOS;
   
    if (!strcmp (nsuffix, "txt") || !strcmp (nsuffix, "dtd"))     if (!strcmp (nsuffix, "txt") ||
          !strcmp (nsuffix, "dtd"))
       ret = TRUE;        ret = TRUE;
    else if (!strcmp (nsuffix, "gz"))     else if (!strcmp (nsuffix, "gz"))
      {       {
Line 965  ThotBool IsTextName (const char *path) Line 968  ThotBool IsTextName (const char *path)
            i++;             i++;
          }           }
        nsuffix[i] = EOS;         nsuffix[i] = EOS;
        if (!strcmp (nsuffix, "txt") || !strcmp (nsuffix, "dtd"))         if (!strcmp (nsuffix, "txt") ||
              !strcmp (nsuffix, "dtd"))
          ret = TRUE;           ret = TRUE;
        else         else
          ret = FALSE;           ret = FALSE;

Removed from v.1.191  
changed lines
  Added in v.1.192


Webmaster