summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-ce
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/files/patch-ce')
-rw-r--r--graphics/netpbm/files/patch-ce15
1 files changed, 8 insertions, 7 deletions
diff --git a/graphics/netpbm/files/patch-ce b/graphics/netpbm/files/patch-ce
index b097829a034e..aab01a30a887 100644
--- a/graphics/netpbm/files/patch-ce
+++ b/graphics/netpbm/files/patch-ce
@@ -1,5 +1,5 @@
---- ppm/ppmchange.c.orig Sun Aug 6 14:44:44 2000
-+++ ppm/ppmchange.c Tue Sep 5 00:00:00 2000
+--- ppm/ppmchange.c.orig Mon Jan 8 05:12:30 2001
++++ ppm/ppmchange.c Sat Jan 13 00:00:00 2001
@@ -14,6 +14,7 @@
*/
@@ -8,9 +8,9 @@
#define TCOLS 256
#define SQRT3 1.73205080756887729352
/* The square root of 3 */
-@@ -45,8 +46,18 @@
+@@ -53,9 +54,19 @@
- unsigned int option_def_index;
+ char * remainder_color; /* value of -remainder option */
+ /* Create the OptStruct structure describing our options */
+ #define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\
@@ -22,12 +22,13 @@
+ option_def_index++; \
+ }
option_def_index = 0; /* incremented by OPTENTRY */
- OPTENTRY(0, "closeness", OPT_INT, &cmdlineP->closeness, 0);
+ OPTENTRY(0, "closeness", OPT_INT, &cmdlineP->closeness, 0);
+ OPTENTRY(0, "remainder", OPT_STRING, &remainder_color, 0);
+ option_def[option_def_index].type = OPT_END;
/* Set the defaults */
cmdlineP->closeness = 0;
-@@ -55,7 +66,7 @@
+@@ -65,7 +76,7 @@
opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */
opt.allowNegNum = FALSE; /* We may have parms that are negative numbers */
@@ -35,4 +36,4 @@
+ optParseOptions2(&argc, argv, opt, 0);
/* Uses and sets argc, argv, and some of *cmdlineP and others. */
- if ((argc-1) % 2 == 0)
+ if (remainder_color) {