comparison src/buffer.c @ 333:4f79e16b1112 r21-0-64

Import from CVS: tag r21-0-64
author cvs
date Mon, 13 Aug 2007 10:49:50 +0200
parents 03446687b7cc
children 8e84bee8ddd0
comparison
equal deleted inserted replaced
332:bb75ebac9531 333:4f79e16b1112
2756 struct stat dotstat, pwdstat; 2756 struct stat dotstat, pwdstat;
2757 2757
2758 GET_C_CHARPTR_INT_FILENAME_DATA_ALLOCA (pwd, pwd_internal); 2758 GET_C_CHARPTR_INT_FILENAME_DATA_ALLOCA (pwd, pwd_internal);
2759 2759
2760 return (IS_DIRECTORY_SEP (*pwd_internal) 2760 return (IS_DIRECTORY_SEP (*pwd_internal)
2761 && stat (pwd_internal, &pwdstat) == 0 2761 && stat ((char *) pwd_internal, &pwdstat) == 0
2762 && stat ("." , &dotstat) == 0 2762 && stat (".", &dotstat) == 0
2763 && dotstat.st_ino == pwdstat.st_ino 2763 && dotstat.st_ino == pwdstat.st_ino
2764 && dotstat.st_dev == pwdstat.st_dev 2764 && dotstat.st_dev == pwdstat.st_dev
2765 && (int) strlen (pwd_internal) < MAXPATHLEN); 2765 && (int) strlen ((char *) pwd_internal) < MAXPATHLEN);
2766 } 2766 }
2767 2767
2768 void 2768 void
2769 init_initial_directory (void) 2769 init_initial_directory (void)
2770 { 2770 {
2792 { 2792 {
2793 initial_directory[len] = DIRECTORY_SEP; 2793 initial_directory[len] = DIRECTORY_SEP;
2794 initial_directory[len + 1] = '\0'; 2794 initial_directory[len + 1] = '\0';
2795 } 2795 }
2796 } 2796 }
2797 2797
2798 /* XEmacs change: store buffer's default directory 2798 /* XEmacs change: store buffer's default directory
2799 using prefered (i.e. as defined at compile-time) 2799 using prefered (i.e. as defined at compile-time)
2800 directory separator. --marcpa */ 2800 directory separator. --marcpa */
2801 #ifdef DOS_NT 2801 #ifdef DOS_NT
2802 #define CORRECT_DIR_SEPS(s) \ 2802 #define CORRECT_DIR_SEPS(s) \