home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / diffs / texinfo-.1 / info / filesys.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-28  |  1.8 KB  |  68 lines

  1. *** orig/texinfo-.1/info/filesys.c    Sun Aug 29 18:40:54 1993
  2. --- src/texinfo-.1/info/filesys.c    Sun Aug 29 21:04:00 1993
  3. ***************
  4. *** 273,279 ****
  5.     if ((i >= strlen (string)) || !string)
  6.       return ((char *) NULL);
  7.   
  8. !   while (string[i] && string[i] != ':')
  9.       i++;
  10.     if (i == start)
  11.       {
  12. --- 273,279 ----
  13.     if ((i >= strlen (string)) || !string)
  14.       return ((char *) NULL);
  15.   
  16. !   while (string[i] && string[i] != PATH_SEPARATOR_CHAR)
  17.       i++;
  18.     if (i == start)
  19.       {
  20. ***************
  21. *** 382,388 ****
  22.       strcpy (infopath, path);
  23.     else if (where == INFOPATH_APPEND)
  24.       {
  25. !       strcat (infopath, ":");
  26.         strcat (infopath, path);
  27.       }
  28.     else if (where == INFOPATH_PREPEND)
  29. --- 382,388 ----
  30.       strcpy (infopath, path);
  31.     else if (where == INFOPATH_APPEND)
  32.       {
  33. !       strcat (infopath, PATH_SEPARATOR_STR);
  34.         strcat (infopath, path);
  35.       }
  36.     else if (where == INFOPATH_PREPEND)
  37. ***************
  38. *** 389,395 ****
  39.       {
  40.         char *temp = savestring (infopath);
  41.         strcpy (infopath, path);
  42. !       strcat (infopath, ":");
  43.         strcat (infopath, temp);
  44.         free (temp);
  45.       }
  46. --- 389,395 ----
  47.       {
  48.         char *temp = savestring (infopath);
  49.         strcpy (infopath, path);
  50. !       strcat (infopath, PATH_SEPARATOR_STR);
  51.         strcat (infopath, temp);
  52.         free (temp);
  53.       }
  54. ***************
  55. *** 425,431 ****
  56. --- 425,435 ----
  57.         int descriptor;
  58.         char *contents;
  59.   
  60. + #if defined (__MSDOS__)
  61. +       descriptor = open (pathname, O_RDONLY | O_BINARY, 0666);
  62. + #else /* __MSDOS__ */
  63.         descriptor = open (pathname, O_RDONLY, 0666);
  64. + #endif /* __MSDOS__ */
  65.   
  66.         /* If the file couldn't be opened, give up. */
  67.         if (descriptor < 0)
  68.