--- OLD/ppm/ppmtobmp.c Thu Jan 1 00:00:00 1970 +++ NEW/ppm/ppmtobmp.c Thu Jan 1 00:00:00 1970 @@ -76,10 +76,7 @@ static int colorstobpp ARGS((int colors)); static void BMPEncode ARGS((FILE *fp, int class, int x, int y, pixel **pixels, int colors, colorhash_table cht, pixval *R, pixval *G, pixval *B)); -static void -PutByte(fp, v) - FILE *fp; - char v; +static void PutByte(FILE *fp, char v) { if (putc(v, fp) == EOF) { @@ -87,10 +84,7 @@ } } -static void -PutShort(fp, v) - FILE *fp; - short v; +static void PutShort(FILE *fp, short v) { if (pm_writelittleshort(fp, v) == -1) { @@ -209,13 +203,7 @@ /* * returns the number of bytes written, or -1 on error. */ -static int -BMPwritergb(fp,class,R,G,B) - FILE *fp; - int class; - pixval R; - pixval G; - pixval B; +static int BMPwritergb(FILE *fp, int class, pixval R, pixval G, pixval B) { switch (class) { @@ -271,13 +259,7 @@ /* * returns the number of bytes written, or -1 on error. */ -static int -BMPwriterow(fp, row, cx, bpp, cht) - FILE *fp; - pixel *row; - unsigned long cx; - unsigned short bpp; - colorhash_table cht; +static int BMPwriterow(FILE *fp, pixel *row, unsigned long cx, unsigned short bpp, colorhash_table cht) { BITSTREAM b; unsigned nbyte = 0; @@ -319,14 +301,7 @@ /* * returns the number of bytes written, or -1 on error. */ -static int -BMPwritebits(fp, cx, cy, cBitCount, pixels, cht) - FILE *fp; - unsigned long cx; - unsigned long cy; - unsigned short cBitCount; - pixel **pixels; - colorhash_table cht; +static int BMPwritebits(FILE *fp, unsigned long cx, unsigned long cy, unsigned short cBitCount, pixel **pixels, colorhash_table cht) { int nbyte = 0; long y;