Revision: 40957
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40957&view=rev
Author:   erikgreenwald
Date:     2010-10-08 20:09:55 +0000 (Fri, 08 Oct 2010)

Log Message:
-----------
add/eat -p option that mac launchd likes to throw

Modified Paths:
--------------
    isst/trunk/gtk/main.c
    isst/trunk/sdl/main.c

Modified: isst/trunk/gtk/main.c
===================================================================
--- isst/trunk/gtk/main.c       2010-10-08 18:45:17 UTC (rev 40956)
+++ isst/trunk/gtk/main.c       2010-10-08 20:09:55 UTC (rev 40957)
@@ -52,9 +52,10 @@
 {
     { "help",  no_argument,            NULL, 'h' },
     { "build", no_argument,            NULL, 'b' },
+    { "pluh",  required_argument,      NULL, 'p' },
 };
 #endif
-static char shortopts[] = "hb";
+static char shortopts[] = "hbp:";
 
 
 static void finish(int sig) {
@@ -92,6 +93,8 @@
            case 'b':
                printf("DIVA %s \n", __DATE__);
                return EXIT_SUCCESS;
+           case 'p':   /* ignored, passed in on mac from launchd/open */
+               break;
            default:
                help();
                return EXIT_FAILURE;

Modified: isst/trunk/sdl/main.c
===================================================================
--- isst/trunk/sdl/main.c       2010-10-08 18:45:17 UTC (rev 40956)
+++ isst/trunk/sdl/main.c       2010-10-08 20:09:55 UTC (rev 40957)
@@ -281,9 +281,9 @@
     const char opts[] = 
        /* or would it be better to */
 #ifdef HAVE_OPENGL
-       "fw:h:s";
+       "fw:h:sp:";
 #else
-    "fw:h:";
+    "fw:h:p:";
 #endif
 
     while((c=getopt(argc, argv, opts)) != -1)
@@ -301,6 +301,8 @@
                sflags &= ~SDL_OPENGL;
                ogl = 0;
                break;
+           case 'p':
+               break;
            case ':':
            case '?':
                printf("Whu?\n");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to