summaryrefslogtreecommitdiff
path: root/src/fl_open_uri.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
commit50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 (patch)
tree4b62978d21ee57df7027461b8ea2846c17308d11 /src/fl_open_uri.cxx
parenta3c0dac034c919c2714f3f129a9f5d9d26ae3de4 (diff)
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
Diffstat (limited to 'src/fl_open_uri.cxx')
-rw-r--r--src/fl_open_uri.cxx12
1 files changed, 6 insertions, 6 deletions
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