Diff for /Amaya/amaya/templates.c between versions 1.4 and 1.5

version 1.4, 1999/06/27 16:26:46 version 1.5, 1999/07/30 16:36:15
Line 52  View view; Line 52  View view;
    URLform = TtaGetEnvString (TEXT("URL_TEMPLATE"));     URLform = TtaGetEnvString (TEXT("URL_TEMPLATE"));
    if (URLform != NULL)     if (URLform != NULL)
      {       {
       templateSelect = GetHTMLDocument (URLform, NULL, 0, 0, CE_ABSOLUTE, FALSE, NULL, NULL);      /*  templateSelect = GetHTMLDocument (URLform, NULL, 0, 0, CE_ABSOLUTE, FALSE, NULL, NULL);*/
      /*  SetBrowserEditor(templateSelect);*/          doc = GetHTMLDocument (URLform, NULL, 0, 0, CE_ABSOLUTE, FALSE, NULL, NULL);
          /* SetBrowserEditor(doc); */ 
      }       }
 }  }
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 139  Document doc; Line 140  Document doc;
       /* set the document name and dir */        /* set the document name and dir */
               
       URLname = ustrrchr (buffer, URL_SEP);        URLname = ustrrchr (buffer, URL_SEP);
       URLname[0] = EOS;        if (URLname)
       URLname++;          {
       URLdir = buffer;            URLname[0] = EOS;
       TtaSetDocumentDirectory (doc, URLdir);            URLname++;
       TtaSetDocumentName (doc,URLname);            URLdir = buffer;
                   TtaSetDocumentDirectory (doc, URLdir);
             TtaSetDocumentName (doc,URLname);
             /* SetBrowserEditor(doc); */ 
           }
         else
           {
             TtaSetDocumentDirectory (doc, "");
             TtaSetDocumentName (doc, buffer);
           }
     }      }
    /* SetBrowserEditor(doc); */      
 }  }
       
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
Line 154  Document doc; Line 163  Document doc;
   to reload a template    to reload a template
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__      #ifdef __STDC__    
 void ReloadTemplateParams (STRING docURL, ClickEvent *method)  void ReloadTemplateParams (STRING *docURL, ClickEvent *method)
 #else /* __STDC__ */  #else /* __STDC__ */
 void ReloadTemplateParams (docURL, method)  void ReloadTemplateParams (docURL, method)
 STRING docURL;  STRING *docURL;
 ClickEvent *method;  ClickEvent *method;
 #endif /* __STDC__ */  #endif /* __STDC__ */
 {  {
    *method = CE_FORM_GET;     *method = CE_FORM_GET;
    ustrcpy (docURL, script_URL);     TtaFreeMemory (*docURL);
      *docURL = TtaStrdup (script_URL);
 }  }

Removed from v.1.4  
changed lines
  Added in v.1.5


Webmaster