Diff for /Amaya/amaya/HTMLbook.c between versions 1.61 and 1.62

version 1.61, 2000/02/10 09:42:37 version 1.62, 2000/02/16 17:03:49
Line 52  ThotBool  WithToC; Line 52  ThotBool  WithToC;
 ThotBool         IgnoreCSS;  ThotBool         IgnoreCSS;
   
 static struct _SubDoc  *SubDocs;  static struct _SubDoc  *SubDocs;
 static CharUnit         PSdir[MAX_PATH];  static CHAR_T           PSdir[MAX_PATH];
 static CHAR_T           PPrinter[MAX_PATH];  static CHAR_T           PPrinter[MAX_PATH];
 static Document         DocPrint;  static Document         DocPrint;
 static int              PaperPrint;  static int              PaperPrint;
Line 92  STRING              url; Line 92  STRING              url;
   entry = TtaGetMemory (sizeof (struct _SubDoc));    entry = TtaGetMemory (sizeof (struct _SubDoc));
   entry->SDnext = NULL;    entry->SDnext = NULL;
   entry->SDel = el;    entry->SDel = el;
   entry->SDname = TtaStrdup (url);    entry->SDname = TtaWCSdup (url);
   
   if (SubDocs == NULL)    if (SubDocs == NULL)
     SubDocs = entry;      SubDocs = entry;
Line 374  static void         CheckPrintingDocumen Line 374  static void         CheckPrintingDocumen
 Document            document;  Document            document;
 #endif  #endif
 {  {
    CharUnit         docName[MAX_LENGTH];     CHAR_T         docName[MAX_LENGTH];
    CharUnit*        ptr;      CHAR_T*        ptr; 
    CharUnit         suffix[MAX_LENGTH];     CHAR_T         suffix[MAX_LENGTH];
    int              lg;     int              lg;
   
    if (DocPrint != document)     if (DocPrint != document)
Line 387  Document            document; Line 387  Document            document;
        /* define the new default PS file */         /* define the new default PS file */
        ptr = TtaGetEnvString ("APP_TMPDIR");         ptr = TtaGetEnvString ("APP_TMPDIR");
        if (ptr != NULL && TtaCheckDirectory (ptr))         if (ptr != NULL && TtaCheckDirectory (ptr))
              StringCopy (PSdir, ptr);               ustrcpy (PSdir, ptr);
        else         else
              StringCopy (PSdir, TtaGetDefEnvString ("APP_TMPDIR"));               ustrcpy (PSdir, TtaGetDefEnvString ("APP_TMPDIR"));
            lg = StringLength (PSdir);             lg = ustrlen (PSdir);
            if (PSdir[lg - 1] == CUS_DIR_SEP)             if (PSdir[lg - 1] == WC_DIR_SEP)
              PSdir[--lg] = CUS_EOS;               PSdir[--lg] = WC_EOS;
   
        StringCopy (docName, TtaGetDocumentName (document));         ustrcpy (docName, TtaGetDocumentName (document));
        ExtractSuffix (docName, suffix);         ExtractSuffix (docName, suffix);
        cus_sprintf (&PSdir[lg], CUSTEXT("%c%s.ps"), CUS_DIR_SEP, docName);         usprintf (&PSdir[lg], TEXT("%c%s.ps"), WC_DIR_SEP, docName);
        TtaSetPsFile (PSdir);         TtaSetPsFile (PSdir);
        /* define the new default PrintSchema */         /* define the new default PrintSchema */
        NumberLinks = FALSE;         NumberLinks = FALSE;
Line 645  void                InitPrint (void) Line 645  void                InitPrint (void)
 void                InitPrint ()  void                InitPrint ()
 #endif /* __STDC__ */  #endif /* __STDC__ */
 {  {
   CharUnit* ptr;    CHAR_T* ptr;
   
    BasePrint = TtaSetCallback (CallbackPrint, PRINT_MAX_REF);     BasePrint = TtaSetCallback (CallbackPrint, PRINT_MAX_REF);
    DocPrint = 0;     DocPrint = 0;
Line 654  void                InitPrint () Line 654  void                InitPrint ()
    /* read default printer variable */     /* read default printer variable */
    ptr = TtaGetEnvString ("THOTPRINT");     ptr = TtaGetEnvString ("THOTPRINT");
    if (ptr == NULL)     if (ptr == NULL)
      StringCopy (PPrinter, CUSTEXT(""));       ustrcpy (PPrinter, TEXT(""));
    else     else
      StringCopy (PPrinter, ptr);       ustrcpy (PPrinter, ptr);
    TtaGetEnvInt ("PAPERSIZE", &PageSize);     TtaGetEnvInt ("PAPERSIZE", &PageSize);
    PaperPrint = PP_PRINTER;     PaperPrint = PP_PRINTER;
    PrintURL = TRUE;     PrintURL = TRUE;
Line 1129  IncludeCtxt *prev; Line 1129  IncludeCtxt *prev;
             /* this link designates an external document */              /* this link designates an external document */
             {              {
               /* create a new document and loads the target document */                /* create a new document and loads the target document */
               IncludedDocument = TtaNewDocument ("HTML", CUSTEXT("tmp"));                IncludedDocument = TtaNewDocument (TEXT("HTML"), TEXT("tmp"));
               if (IncludedDocument != 0)                if (IncludedDocument != 0)
                 {                  {
                   TtaSetStatus (document, 1, TtaGetMessage (AMAYA, AM_FETCHING), url);                    TtaSetStatus (document, 1, TtaGetMessage (AMAYA, AM_FETCHING), url);

Removed from v.1.61  
changed lines
  Added in v.1.62


Webmaster