Diff for /Amaya/amaya/templates.c between versions 1.17 and 1.18

version 1.17, 2001/03/16 16:40:28 version 1.18, 2001/03/16 17:14:01
Line 1 Line 1
 /*  /*
  *   *
  *  COPYRIGHT MIT and INRIA, 1996.   *  COPYRIGHT MIT and INRIA, 1996-2001.
  *  Please first read the full copyright statement in file COPYRIGHT.   *  Please first read the full copyright statement in file COPYRIGHT.
  *   *
  */   */
Line 17 Line 17
 #define THOT_EXPORT extern  #define THOT_EXPORT extern
 #include "amaya.h"  #include "amaya.h"
 #include "css.h"  #include "css.h"
   
 #include "document.h"  #include "document.h"
 #include "view.h"  #include "view.h"
   
   
 /* content of the attr name of the meta tag defining the doc's destination URL */  /* content of the attr name of the meta tag defining the doc's destination URL */
 #if defined(_I18N_) || defined(__JIS__)  #define META_TEMPLATE_NAME "AMAYA_TEMPLATE"
 #   define META_TEMPLATE_NAME L"AMAYA_TEMPLATE"  
 #else /* defined(_I18N_) || defined(__JIS__) */  
 #     define META_TEMPLATE_NAME "AMAYA_TEMPLATE"  
 #endif /* defined(_I18N_) || defined(__JIS__) */  
 /* URL of the script providing templates (for reload) */  /* URL of the script providing templates (for reload) */
 static char* script_URL;  static char   *script_URL;
   
 #include "init_f.h"  #include "init_f.h"
   
Line 37  static char* script_URL; Line 32  static char* script_URL;
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
    NewTemplate: Opens a template form on the remote template server     NewTemplate: Opens a template form on the remote template server
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  void NewTemplate (Document doc, View view)
 void               NewTemplate (Document doc, View view)  
 #else  /* __STDC__ */  
 void               NewTemplate (doc, view)  
 Document doc;  
 View view;  
 #endif /* __STDC__ */  
   
 {  {
   STRING    url;    char      *url;
   
   url = TtaGetEnvString ("TEMPLATE_URL");    url = TtaGetEnvString ("TEMPLATE_URL");
   if (url)    if (url)
Line 57  View view; Line 45  View view;
      changes the URL, try to save it and warn the user if it cannot be       changes the URL, try to save it and warn the user if it cannot be
      saved.       saved.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  void OpenTemplateDocument (Document doc)
 void               OpenTemplateDocument (Document doc)  
 #else  /* __STDC__ */  
 void               OpenTemplateDocument (doc)  
 Document doc;  
 #endif /* __STDC__ */  
   
 {  {
   ElementType         metaElType;    ElementType         metaElType;
   Element             metaEl;    Element             metaEl;
Line 158  Document doc; Line 140  Document doc;
   ReloadTemplateParams : restores the script URL and method into meta    ReloadTemplateParams : restores the script URL and method into meta
   to reload a template    to reload a template
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__      void ReloadTemplateParams (char **docURL, ClickEvent *method)
 void        ReloadTemplateParams (char **docURL, ClickEvent *method)  
 #else /* __STDC__ */  
 void        ReloadTemplateParams (docURL, method)  
 char    **docURL;  
 ClickEvent *method;  
 #endif /* __STDC__ */  
 {  {
    *method = CE_FORM_GET;     *method = CE_FORM_GET;
    TtaFreeMemory (*docURL);     TtaFreeMemory (*docURL);

Removed from v.1.17  
changed lines
  Added in v.1.18


Webmaster