comparison src/fileio.c @ 2006:78e032bb3260 v7.2.303

updated for version 7.2-303
author vimboss
date Wed, 18 Nov 2009 19:11:58 +0000
parents 5d5cad78a838
children 79b395ba0ea5
comparison
equal deleted inserted replaced
2005:20c18291deb2 2006:78e032bb3260
144 # ifdef MACOS_X 144 # ifdef MACOS_X
145 static int get_mac_fio_flags __ARGS((char_u *ptr)); 145 static int get_mac_fio_flags __ARGS((char_u *ptr));
146 # endif 146 # endif
147 #endif 147 #endif
148 static int move_lines __ARGS((buf_T *frombuf, buf_T *tobuf)); 148 static int move_lines __ARGS((buf_T *frombuf, buf_T *tobuf));
149 #ifdef TEMPDIRNAMES
149 static void vim_settempdir __ARGS((char_u *tempdir)); 150 static void vim_settempdir __ARGS((char_u *tempdir));
151 #endif
150 #ifdef FEAT_AUTOCMD 152 #ifdef FEAT_AUTOCMD
151 static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name"); 153 static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
152 #endif 154 #endif
153 155
154 void 156 void
6993 vim_tempdir = NULL; 6995 vim_tempdir = NULL;
6994 } 6996 }
6995 } 6997 }
6996 #endif 6998 #endif
6997 6999
7000 #ifdef TEMPDIRNAMES
6998 /* 7001 /*
6999 * Directory "tempdir" was created. Expand this name to a full path and put 7002 * Directory "tempdir" was created. Expand this name to a full path and put
7000 * it in "vim_tempdir". This avoids that using ":cd" would confuse us. 7003 * it in "vim_tempdir". This avoids that using ":cd" would confuse us.
7001 * "tempdir" must be no longer than MAXPATHL. 7004 * "tempdir" must be no longer than MAXPATHL.
7002 */ 7005 */
7019 add_pathsep(buf); 7022 add_pathsep(buf);
7020 vim_tempdir = vim_strsave(buf); 7023 vim_tempdir = vim_strsave(buf);
7021 vim_free(buf); 7024 vim_free(buf);
7022 } 7025 }
7023 } 7026 }
7027 #endif
7024 7028
7025 /* 7029 /*
7026 * vim_tempname(): Return a unique name that can be used for a temp file. 7030 * vim_tempname(): Return a unique name that can be used for a temp file.
7027 * 7031 *
7028 * The temp file is NOT created. 7032 * The temp file is NOT created.