* filesystem to be included in the WIM image. */
wimlib_tchar *fs_source_path;
- /** Destination path in the WIM image. Use WIMLIB_WIM_ROOT_PATH to
+ /** Destination path in the WIM image. Use ::WIMLIB_WIM_ROOT_PATH to
* specify the root directory of the WIM image. */
wimlib_tchar *wim_target_path;
/** Filesystem path to the file or directory tree to add. */
wimlib_tchar *fs_source_path;
- /** Destination path in the WIM image. Use WIMLIB_WIM_ROOT_PATH to
+ /** Destination path in the WIM image. Use ::WIMLIB_WIM_ROOT_PATH to
* specify the root directory of the WIM image. */
wimlib_tchar *wim_target_path;
const struct string_set *list);
extern bool
-exclude_path(const tchar *path, size_t path_len,
+exclude_path(const tchar *path, size_t path_nchars,
const struct capture_config *config);
typedef int (*capture_tree_t)(struct wim_dentry **, const tchar *,
dummy[0] = OS_PREFERRED_PATH_SEPARATOR;
dummy[1] = T('\0');
path = dummy;
+ path_nchars = 1;
}
return match_pattern_list(path, path_nchars, &config->exclusion_pats) &&
* path separators in the pattern must be @path_sep, and there cannot be
* consecutive path separators, and there cannot be a trailing path
* separator. If there is a leading path separator, the match is attempted
- * with the filename only; otherwise, the matchis attempted with the whole
+ * with the filename only; otherwise, the match is attempted with the whole
* path.
*
* @path_sep
- * Path separator character in @path and @wildcard.
+ * Path separator character used in @path and @wildcard.
*
* @prefix_ok
* If %true, allow a prefix of @path, terminated by a path separator, to
- * match, in addition to @path itself. a.k.a. also return true if the
- * wildcard actually matches one of the ancestor directories of @path.
+ * match the pattern, in addition to @path itself. In other words, return
+ * %true if the pattern actually matches one of the ancestor directories of
+ * @path.
*
* Returns %true if there was a match; %false if there was not.
*/