summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-01-23 15:02:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-01-23 15:02:00 +0000
commitc8f1e91448569e74cdccda11792ac4557185ed3f (patch)
tree845f8bc78efe9b4ad03c656a4391734ad5981ea5 /FL
parent7401cf37bf2ac6c6e6a6c230ff1b52ed8fbe06b8 (diff)
Rename fl_filename_isdir_quick to _fl_filename_isdir_quick, do not
export it, and add comments to indicate that it is a private API we do not support outside of FLTK. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/filename.H11
1 files changed, 10 insertions, 1 deletions
diff --git a/FL/filename.H b/FL/filename.H
index 199824bde..be3c35d0c 100644
--- a/FL/filename.H
+++ b/FL/filename.H
@@ -40,7 +40,6 @@ FL_EXPORT int fl_filename_absolute(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from);
FL_EXPORT int fl_filename_match(const char *name, const char *pattern);
FL_EXPORT int fl_filename_isdir(const char *name);
-FL_EXPORT int fl_filename_isdir_quick(const char *name);
# ifdef __cplusplus
/*
@@ -120,6 +119,16 @@ FL_EXPORT int fl_filename_list(const char *d, struct dirent ***l,
FL_EXPORT int fl_open_uri(const char *uri, char *msg = (char *)0,
int msglen = 0);
+
+/*
+ * _fl_filename_isdir_quick() is a private function that checks for a
+ * trailing slash and assumes that the passed name is a directory if
+ * it finds one. This function is used by Fl_File_Browser and
+ * Fl_File_Chooser to avoid extra stat() calls, but is not supported
+ * outside of FLTK...
+ */
+int _fl_filename_isdir_quick(const char *name);
+
# endif /* __cplusplus */
/*