comparison src/ex_cmds.c @ 531:da9142bd190a v7.0149

updated for version 7.0149
author vimboss
date Tue, 20 Sep 2005 23:22:24 +0000
parents f012c4ed8c38
children c8b6b7e1005d
comparison
equal deleted inserted replaced
530:339999b511a0 531:da9142bd190a
5686 &fnames, EW_FILE|EW_SILENT) == OK 5686 &fnames, EW_FILE|EW_SILENT) == OK
5687 && fcount > 0) 5687 && fcount > 0)
5688 { 5688 {
5689 for (fi = 0; fi < fcount; ++fi) 5689 for (fi = 0; fi < fcount; ++fi)
5690 { 5690 {
5691 fd = fopen((char *)fnames[fi], "r"); 5691 fd = mch_fopen((char *)fnames[fi], "r");
5692 if (fd != NULL) 5692 if (fd != NULL)
5693 { 5693 {
5694 vim_fgets(IObuff, IOSIZE, fd); 5694 vim_fgets(IObuff, IOSIZE, fd);
5695 if (IObuff[0] == '*' 5695 if (IObuff[0] == '*'
5696 && (s = vim_strchr(IObuff + 1, '*')) 5696 && (s = vim_strchr(IObuff + 1, '*'))
5951 * Do this before scanning through all the files. 5951 * Do this before scanning through all the files.
5952 */ 5952 */
5953 STRCPY(NameBuff, dir); 5953 STRCPY(NameBuff, dir);
5954 add_pathsep(NameBuff); 5954 add_pathsep(NameBuff);
5955 STRCAT(NameBuff, tagfname); 5955 STRCAT(NameBuff, tagfname);
5956 fd_tags = fopen((char *)NameBuff, "w"); 5956 fd_tags = mch_fopen((char *)NameBuff, "w");
5957 if (fd_tags == NULL) 5957 if (fd_tags == NULL)
5958 { 5958 {
5959 EMSG2(_("E152: Cannot open %s for writing"), NameBuff); 5959 EMSG2(_("E152: Cannot open %s for writing"), NameBuff);
5960 FreeWild(filecount, files); 5960 FreeWild(filecount, files);
5961 return; 5961 return;
5986 /* 5986 /*
5987 * Go over all the files and extract the tags. 5987 * Go over all the files and extract the tags.
5988 */ 5988 */
5989 for (fi = 0; fi < filecount && !got_int; ++fi) 5989 for (fi = 0; fi < filecount && !got_int; ++fi)
5990 { 5990 {
5991 fd = fopen((char *)files[fi], "r"); 5991 fd = mch_fopen((char *)files[fi], "r");
5992 if (fd == NULL) 5992 if (fd == NULL)
5993 { 5993 {
5994 EMSG2(_("E153: Unable to open %s for reading"), files[fi]); 5994 EMSG2(_("E153: Unable to open %s for reading"), files[fi]);
5995 continue; 5995 continue;
5996 } 5996 }