From 50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 11 Feb 2016 12:02:36 +0000 Subject: Mark places that need to be refactored with // PORTME: Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_open_uri.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/fl_open_uri.cxx') diff --git a/src/fl_open_uri.cxx b/src/fl_open_uri.cxx index bfc31355f..f67dd7e82 100644 --- a/src/fl_open_uri.cxx +++ b/src/fl_open_uri.cxx @@ -45,9 +45,9 @@ // Local functions... // -#if !defined(WIN32) && !defined(__APPLE__) +#if !defined(WIN32) && !defined(__APPLE__) // PORTME: platform open doc static char *path_find(const char *program, char *filename, int filesize); -#endif // !WIN32 && !__APPLE__ +#endif // !WIN32 && !__APPLE__ // PORTME: platform open doc #ifndef WIN32 static int run_program(const char *program, char **argv, char *msg, int msglen); #endif // !WIN32 @@ -131,7 +131,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) { return (int)(ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW) > (void *)32); -#elif defined(__APPLE__) +#elif defined(__APPLE__) // PORTME: platform open doc char *argv[3]; // Command-line arguments argv[0] = (char*)"open"; @@ -145,7 +145,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) { #elif defined(FL_PORTING) # pragma message "FL_PORTING: add code to open any file type with an external app" -#else // !WIN32 && !__APPLE__ +#else // !WIN32 && !__APPLE__ // PORTME: platform open doc // Run any of several well-known commands to open the URI. // // We give preference to the Portland group's xdg-utils @@ -270,7 +270,7 @@ void fl_decode_uri(char *uri) /** @} */ -#if !defined(WIN32) && !defined(__APPLE__) +#if !defined(WIN32) && !defined(__APPLE__) // PORTME: platform open doc // Find a program in the path... static char *path_find(const char *program, char *filename, int filesize) { const char *path; // Search path @@ -302,7 +302,7 @@ static char *path_find(const char *program, char *filename, int filesize) { return 0; } -#endif // !WIN32 && !__APPLE__ +#endif // !WIN32 && !__APPLE__ // PORTME: platform open doc #ifndef WIN32 -- cgit v1.2.3