diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 12:57:00 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 12:57:00 +0000 |
| commit | 5d1df0e789c794b8040c5db0d84b03ae2b42fd8d (patch) | |
| tree | 4e99ebb978d30bf6c7138181489dd37ce435c310 /src/Fl_arg.cxx | |
| parent | 8deac1e6baf7a016aabd3b6cb5ccffd7f09263cd (diff) | |
Details on PORTME items. Move fl_parse_color() to screen drivers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_arg.cxx')
| -rw-r--r-- | src/Fl_arg.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index 0bcd2eec2..02f3da1da 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -28,13 +28,13 @@ #include <ctype.h> #include "flstring.h" -#if defined(WIN32) || defined(__APPLE__) // PORTME: command line arguments +#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_System_Driver - command line arguments #elif defined(FL_PORTING) # pragma message "FL_PORTING: implement special command line handling" #else #endif -#if defined(WIN32) || defined(__APPLE__) || defined(FL_PORTING) // PORTME: parse geometry +#if defined(WIN32) || defined(__APPLE__) || defined(FL_PORTING) // PORTME: Fl_System_Driver - parse geometry int XParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*); # define NoValue 0x0000 # define XValue 0x0001 @@ -175,13 +175,13 @@ int Fl::arg(int argc, char **argv, int &i) { Fl_Tooltip::disable(); i++; return 1; -#ifdef __APPLE__ // PORTME: platform command line +#ifdef __APPLE__ // PORTME: Fl_System_Driver - platform command line // The Finder application in MacOS X passes the "-psn_N_NNNNN" option // to all apps... } else if (strncmp(s, "psn_", 4) == 0) { i++; return 1; -#endif // __APPLE__ // PORTME: platform command line +#endif // __APPLE__ // PORTME: Fl_System_Driver - platform command line } const char *v = argv[i+1]; @@ -195,16 +195,16 @@ int Fl::arg(int argc, char **argv, int &i) { if (!flags) return 0; geometry = v; -#if !defined(WIN32) && !defined(__APPLE__) // PORTME: platform command line +#if !defined(WIN32) && !defined(__APPLE__) // PORTME: Fl_System_Driver - platform command line } else if (fl_match(s, "display", 2)) { Fl::display(v); #endif -#ifdef __APPLE__ // PORTME: platform command line +#ifdef __APPLE__ // PORTME: Fl_System_Driver - platform command line // Xcode in MacOS X may pass "-NSDocumentRevisionsDebugMode YES" } else if (strcmp(s, "NSDocumentRevisionsDebugMode") == 0) { // nothing to do -#endif // __APPLE__ // PORTME: platform command line +#endif // __APPLE__ // PORTME: Fl_System_Driver - platform command line } else if (fl_match(s, "title", 2)) { title = v; @@ -303,7 +303,7 @@ void Fl_Window::show(int argc, char **argv) { Fl::get_system_colors(); #if defined(WIN32) -#elif defined(__APPLE__) // PORTME: platform default parameters +#elif defined(__APPLE__) // PORTME: Fl_Screen_Driver- platform default parameters #elif defined(FL_PORTING) # pragma message "FL_PORTING: Parse additional default settings" #else // X11 @@ -367,7 +367,7 @@ void Fl_Window::show(int argc, char **argv) { show(); #if defined(WIN32) -#elif defined(__APPLE__) // PORTME: platform properties +#elif defined(__APPLE__) // PORTME: Fl_System_Driver - platform properties #elif defined(FL_PORTING) # pragma message "FL_PORTING: Parse additional default settings" #else // X11 @@ -380,7 +380,7 @@ void Fl_Window::show(int argc, char **argv) { XChangeProperty(fl_display, fl_xid(this), XA_WM_COMMAND, XA_STRING, 8, 0, (unsigned char *)buffer, p-buffer-1); delete[] buffer; -#endif // !WIN32 && !__APPLE__ // PORTME: platform properties +#endif // !WIN32 && !__APPLE__ // PORTME: Fl_System_Driver - platform properties } // Calls useful for simple demo programs, with automatic help message: @@ -417,7 +417,7 @@ void Fl::args(int argc, char **argv) { int i; if (Fl::args(argc,argv,i) < argc) Fl::error(helpmsg); } -#if defined(WIN32) || defined(__APPLE__) // PORTME: platform command line arguments +#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_System_Driver - platform command line arguments /* the following function was stolen from the X sources as indicated. */ |
