Mercurial > hg > xemacs-beta
comparison src/buffer.c @ 388:aabb7f5b1c81 r21-2-9
Import from CVS: tag r21-2-9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:09:42 +0200 |
parents | 4af0ddfb7c5b |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
387:f892a9d0bb8d | 388:aabb7f5b1c81 |
---|---|
2696 struct stat dotstat, pwdstat; | 2696 struct stat dotstat, pwdstat; |
2697 | 2697 |
2698 GET_C_CHARPTR_INT_FILENAME_DATA_ALLOCA (pwd, pwd_internal); | 2698 GET_C_CHARPTR_INT_FILENAME_DATA_ALLOCA (pwd, pwd_internal); |
2699 | 2699 |
2700 return (IS_DIRECTORY_SEP (*pwd_internal) | 2700 return (IS_DIRECTORY_SEP (*pwd_internal) |
2701 && stat (pwd_internal, &pwdstat) == 0 | 2701 && stat ((char *) pwd_internal, &pwdstat) == 0 |
2702 && stat ("." , &dotstat) == 0 | 2702 && stat (".", &dotstat) == 0 |
2703 && dotstat.st_ino == pwdstat.st_ino | 2703 && dotstat.st_ino == pwdstat.st_ino |
2704 && dotstat.st_dev == pwdstat.st_dev | 2704 && dotstat.st_dev == pwdstat.st_dev |
2705 && (int) strlen (pwd_internal) < MAXPATHLEN); | 2705 && (int) strlen ((char *) pwd_internal) < MAXPATHLEN); |
2706 } | 2706 } |
2707 | 2707 |
2708 void | 2708 void |
2709 init_initial_directory (void) | 2709 init_initial_directory (void) |
2710 { | 2710 { |
2732 { | 2732 { |
2733 initial_directory[len] = DIRECTORY_SEP; | 2733 initial_directory[len] = DIRECTORY_SEP; |
2734 initial_directory[len + 1] = '\0'; | 2734 initial_directory[len + 1] = '\0'; |
2735 } | 2735 } |
2736 } | 2736 } |
2737 | 2737 |
2738 /* XEmacs change: store buffer's default directory | 2738 /* XEmacs change: store buffer's default directory |
2739 using preferred (i.e. as defined at compile-time) | 2739 using preferred (i.e. as defined at compile-time) |
2740 directory separator. --marcpa */ | 2740 directory separator. --marcpa */ |
2741 #ifdef DOS_NT | 2741 #ifdef DOS_NT |
2742 #define CORRECT_DIR_SEPS(s) \ | 2742 #define CORRECT_DIR_SEPS(s) \ |