View | Details | Raw Unified | Return to bug 179219
Collapse All | Expand All

(-)graphics/fbm/files/patch-fbquant.c (+47 lines)
Line 0 Link Here
1
--- fbquant.c.orig
2
+++ fbquant.c
3
@@ -131,6 +131,10 @@
4
 
5
 int outtype = DEF_8BIT;	/* Output format desired */
6
 
7
+static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors);
8
+static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap);
9
+static void load_config (char *filenm);
10
+
11
 /****************************************************************
12
  * main
13
  ****************************************************************/
14
@@ -319,8 +323,7 @@
15
  * load_config: Read a series of fixed/ignore color settings from a file
16
  ****************************************************************/
17
 
18
-load_config (filenm)
19
-char *filenm;
20
+static void load_config (char *filenm)
21
 { FILE *infile = NULL;
22
   char buf[BUFSIZ];
23
   int aindx, ard, agr, abl;	/* Get 'i' arguments from sscanf */
24
@@ -530,10 +533,7 @@
25
  *	      algorithm.
26
  ****************************************************************/
27
 
28
-split_box (box, boxlen, clr, numclr, cmap)
29
-PIXEL *box;
30
-int boxlen, clr, numclr;
31
-COLOR *cmap;
32
+static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap)
33
 { int maxv[3], minv[3], numv[3];
34
   int pcnt[3][CUBSID];
35
   int sbox, snum, split, half, maxdif, dif;
36
@@ -841,10 +841,7 @@
37
  * clr_quantize: Do Floyd Steinberg quantizing on the image
38
  ****************************************************************/
39
 
40
-clr_quantize (input, output, cmap, colors, fmap, fixedcolors)
41
-FBM *input, *output;
42
-COLOR *cmap, *fmap;
43
-int colors, fixedcolors;
44
+static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors)
45
 { int **cerr, **lerr, **terr;
46
   int width = input->hdr.cols, height = input->hdr.rows;
47
   int rowlen = input->hdr.rowlen, plnlen = input->hdr.plnlen;
(-)graphics/fbm/files/patch-flgifc.c (+14 lines)
Line 0 Link Here
1
--- flgifc.c.orig
2
+++ flgifc.c
3
@@ -168,10 +168,7 @@
4
 code available free from MLM@CS.CMU.EDU and from UUNET archives$";
5
 #endif
6
 
7
-compress( init_bits, outfile, ReadValue )
8
-int init_bits;
9
-FILE *outfile;
10
-ifunptr ReadValue;
11
+void compress( int init_bits, FILE *outfile, ifunptr ReadValue )
12
 {
13
     register long fcode;
14
     register code_int i = 0;
(-)graphics/fbm/files/patch-flgife.c (+10 lines)
Line 0 Link Here
1
--- flgife.c.orig
2
+++ flgife.c
3
@@ -57,6 +57,7 @@
4
 code available free from MLM@CS.CMU.EDU and from UUNET archives$";
5
 #endif
6
 
7
+void compress( int init_bits, FILE *outfile, ifunptr ReadValue );
8
 
9
 /*
10
  * Bump the 'curx' and 'cury' to point to the next pixel

Return to bug 179219