comparison src/misc2.c @ 20:4ac1dce8dd5e v7.0012

updated for version 7.0012
author vimboss
date Mon, 26 Jul 2004 12:53:41 +0000
parents a81bc802c17c
children ac33b7c03fac
comparison
equal deleted inserted replaced
19:a81bc802c17c 20:4ac1dce8dd5e
3604 if (ff_expand_buffer == NULL) 3604 if (ff_expand_buffer == NULL)
3605 goto error_return; 3605 goto error_return;
3606 } 3606 }
3607 3607
3608 /* Store information on starting dir now if path is relative. 3608 /* Store information on starting dir now if path is relative.
3609 * If path is absolute, we do that later. 3609 * If path is absolute, we do that later. */
3610 */
3611 if (path[0] == '.' 3610 if (path[0] == '.'
3612 && (vim_ispathsep(path[1]) || path[1] == NUL) 3611 && (vim_ispathsep(path[1]) || path[1] == NUL)
3613 && (!tagfile || vim_strchr(p_cpo, CPO_DOTTAG) == NULL) 3612 && (!tagfile || vim_strchr(p_cpo, CPO_DOTTAG) == NULL)
3614 && rel_fname != NULL) 3613 && rel_fname != NULL)
3615 { 3614 {
3884 * Find a file in a search context. 3883 * Find a file in a search context.
3885 * The search context was created with vim_findfile_init() above. 3884 * The search context was created with vim_findfile_init() above.
3886 * Return a pointer to an allocated file name or NULL if nothing found. 3885 * Return a pointer to an allocated file name or NULL if nothing found.
3887 * To get all matching files call this function until you get NULL. 3886 * To get all matching files call this function until you get NULL.
3888 * 3887 *
3889 * If the passed search_context is NULL, it the returns NULL. 3888 * If the passed search_context is NULL, NULL is returned.
3890 * 3889 *
3891 * The search algorithm is depth first. To change this replace the 3890 * The search algorithm is depth first. To change this replace the
3892 * stack with a list (don't forget to leave partly searched directories on the 3891 * stack with a list (don't forget to leave partly searched directories on the
3893 * top of the list). 3892 * top of the list).
3894 */ 3893 */