From fd600aa2396cc7fa0d4cd020cd318fbe6ef6e9b4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 29 Mar 2016 19:41:14 +0000 Subject: Rewrite fl_utf8.cxx under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'FL/Fl_System_Driver.H') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 4ace8411d..ec5972e3e 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -93,6 +93,21 @@ public: // implement to support drag-n-drop. use_selection = 1 means the GUI is welcome to display // the selected text during the D&D operation virtual int dnd(int use_selection = 0) {return 0;} + + virtual char *utf2mbcs(const char *s) {return (char*)s;} + virtual char *getenv(const char* v); + virtual int open(const char* f, int oflags, int pmode) {return -1;} + virtual FILE *fopen(const char* f, const char *mode) {return NULL;} + virtual int system(const char* cmd) {return -1;} + virtual int execvp(const char *file, char *const *argv) {return -1;} + virtual int chmod(const char* f, int mode) {return -1;} + virtual int access(const char* f, int mode) { return -1;} + virtual int stat(const char* f, struct stat *b) { return -1;} + virtual char *getcwd(char* b, int l) {return NULL;} + virtual int unlink(const char* f) {return -1;} + virtual int mkdir(const char* f, int mode) {return -1;} + virtual int rmdir(const char* f) {return -1;} + virtual int rename(const char* f, const char *n) {return -1;} }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3