config: use getc_unlocked when reading from file
[gitweb.git] / dir.h
diff --git a/dir.h b/dir.h
index 02e371090bfe0f55224fb2e03ab28fe68aacea4c..72b73c65dcfc6f31004a032d0706626424ac2241 100644 (file)
--- a/dir.h
+++ b/dir.h
@@ -119,7 +119,7 @@ struct dir_struct {
         */
        struct exclude_stack *exclude_stack;
        struct exclude *exclude;
-       char basebuf[PATH_MAX];
+       struct strbuf basebuf;
 };
 
 /*
@@ -137,6 +137,7 @@ extern char *common_prefix(const struct pathspec *pathspec);
 extern int match_pathspec(const struct pathspec *pathspec,
                          const char *name, int namelen,
                          int prefix, char *seen, int is_dir);
+extern int report_path_error(const char *ps_matched, const struct pathspec *pathspec, const char *prefix);
 extern int within_depth(const char *name, int namelen, int depth, int max_depth);
 
 extern int fill_directory(struct dir_struct *dir, const struct pathspec *pathspec);