summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-08 15:48:28 +0000
committerManolo Gouy <Manolo>2016-04-08 15:48:28 +0000
commit90682dbd481fca9b7b5b16086f3ac101081e8de5 (patch)
tree4157e2ca66d43f34431cf482e8c59d85ed3fcaa0 /FL
parent62952ea2952768d922e2c93bcaa67e05c419f5a3 (diff)
Rewrite filename_isdir.cxx for the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_System_Driver.H4
-rw-r--r--FL/filename.H11
2 files changed, 4 insertions, 11 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index 03364e2f4..867db56f9 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -106,6 +106,10 @@ public:
virtual int filename_relative(char *to, int tolen, const char *from, const char *base);
// the default implementation of filename_absolute() is in src/filename_absolute.cxx and may be enough
virtual int filename_absolute(char *to, int tolen, const char *from);
+ // the default implementation of filename_isdir() is in src/filename_isdir.cxx and may be enough
+ virtual int filename_isdir(const char* n);
+ // the default implementation of filename_isdir_quick() is in src/filename_isdir.cxx and may be enough
+ virtual int filename_isdir_quick(const char* n);
};
#endif // FL_SYSTEM_DRIVER_H
diff --git a/FL/filename.H b/FL/filename.H
index 745a14591..949bacc11 100644
--- a/FL/filename.H
+++ b/FL/filename.H
@@ -100,17 +100,6 @@ FL_EXPORT int fl_open_uri(const char *uri, char *msg = (char *)0,
FL_EXPORT void fl_decode_uri(char *uri);
-# ifndef FL_DOXYGEN
-/*
- * _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
-
# endif /* __cplusplus */
/*