comparison src/ex_cmds2.c @ 8522:721e8d6cb7b5 v7.4.1551

commit https://github.com/vim/vim/commit/6bef5306e4f2cacb3a93667992c2312d4b293c9d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 12 21:28:26 2016 +0100 patch 7.4.1551 Problem: Cannot generate help tags in all doc directories. Solution: Make ":helptags ALL" work.
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Mar 2016 21:30:04 +0100
parents b4350a4d1e01
children 2f57bbe870ea
comparison
equal deleted inserted replaced
8521:2f5f0cb87906 8522:721e8d6cb7b5
2926 source_runtime(char_u *name, int all) 2926 source_runtime(char_u *name, int all)
2927 { 2927 {
2928 return do_in_runtimepath(name, all, source_callback, NULL); 2928 return do_in_runtimepath(name, all, source_callback, NULL);
2929 } 2929 }
2930 2930
2931 #define DIP_ALL 1 /* all matches, not just the first one */
2932 #define DIP_DIR 2 /* find directories instead of files. */
2933 #define DIP_ERR 4 /* give an error message when none found. */
2934
2935 /* 2931 /*
2936 * Find the file "name" in all directories in "path" and invoke 2932 * Find the file "name" in all directories in "path" and invoke
2937 * "callback(fname, cookie)". 2933 * "callback(fname, cookie)".
2938 * "name" can contain wildcards. 2934 * "name" can contain wildcards.
2939 * When "flags" has DIP_ALL: source all files, otherwise only the first one. 2935 * When "flags" has DIP_ALL: source all files, otherwise only the first one.
2940 * When "flags" has DIP_DIR: find directories instead of files. 2936 * When "flags" has DIP_DIR: find directories instead of files.
2941 * When "flags" has DIP_ERR: give an error message if there is no match. 2937 * When "flags" has DIP_ERR: give an error message if there is no match.
2942 * 2938 *
2943 * return FAIL when no file could be sourced, OK otherwise. 2939 * return FAIL when no file could be sourced, OK otherwise.
2944 */ 2940 */
2945 static int 2941 int
2946 do_in_path( 2942 do_in_path(
2947 char_u *path, 2943 char_u *path,
2948 char_u *name, 2944 char_u *name,
2949 int flags, 2945 int flags,
2950 void (*callback)(char_u *fname, void *ck), 2946 void (*callback)(char_u *fname, void *ck),