[project @ 2005-02-23 11:03:42 by simonmar]
[ghc-hetmet.git] / ghc / utils / hp2ps / Main.c
index 7e93541..3b5efed 100644 (file)
@@ -1,6 +1,7 @@
+#include "Main.h"
 #include <stdio.h>
 #include <string.h>
-#include "Main.h"
+#include <stdlib.h>
 #include "Defines.h"
 #include "AuxFile.h"
 #include "AreaBelow.h"
 #include "Error.h"
 #include "Utilities.h"
 
-#ifndef atof
-extern double atof PROTO((char *));
-#endif
-
 boolish pflag = 0;     /* read auxiliary file                  */
 boolish eflag = 0;     /* scaled EPSF                          */ 
 boolish dflag = 0;     /* sort by standard deviation           */
@@ -29,6 +26,7 @@ boolish bflag = 0;    /* use a big title box                  */
 boolish sflag = 0;     /* use a small title box                */
 int     mflag = 0;     /* max no. of bands displayed (default 20) */
 boolish tflag = 0;     /* ignored threshold specified          */
+boolish cflag = 0;      /* colour output                        */
 
 boolish filter;                /* true when running as a filter        */
 
@@ -118,6 +116,9 @@ char* argv[];
                if (THRESHOLD_PERCENT < 0 || THRESHOLD_PERCENT > 5)
                    Usage(*argv-1);
                goto nextarg;
+           case 'c':
+               cflag++;
+               goto nextarg;
            case '?':
            default:
                Usage(*argv-1);