From 90682dbd481fca9b7b5b16086f3ac101081e8de5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 8 Apr 2016 15:48:28 +0000 Subject: 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 --- FL/Fl_System_Driver.H | 4 ++++ FL/filename.H | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) (limited to 'FL') 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 */ /* -- cgit v1.2.3