diff options
Diffstat (limited to 'src/WrFFrI.c')
-rw-r--r-- | src/WrFFrI.c | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/src/WrFFrI.c b/src/WrFFrI.c index 15043e8..3eeaf2a 100644 --- a/src/WrFFrI.c +++ b/src/WrFFrI.c @@ -68,12 +68,12 @@ LFUNC(OpenWriteFile, int, (char *filename, xpmData *mdata)); LFUNC(xpmDataClose, void, (xpmData *mdata)); int -XpmWriteFileFromImage(display, filename, image, shapeimage, attributes) - Display *display; - char *filename; - XImage *image; - XImage *shapeimage; - XpmAttributes *attributes; +XpmWriteFileFromImage( + Display *display, + char *filename, + XImage *image, + XImage *shapeimage, + XpmAttributes *attributes) { XpmImage xpmimage; XpmInfo info; @@ -99,10 +99,10 @@ XpmWriteFileFromImage(display, filename, image, shapeimage, attributes) } int -XpmWriteFileFromXpmImage(filename, image, info) - char *filename; - XpmImage *image; - XpmInfo *info; +XpmWriteFileFromXpmImage( + char *filename, + XpmImage *image, + XpmInfo *info) { xpmData mdata; char *name, *dot, *s, new_name[BUFSIZ] = {0}; @@ -163,11 +163,11 @@ XpmWriteFileFromXpmImage(filename, image, info) } static int -xpmWriteFile(file, image, name, info) - FILE *file; - XpmImage *image; - char *name; - XpmInfo *info; +xpmWriteFile( + FILE *file, + XpmImage *image, + char *name, + XpmInfo *info) { /* calculation variables */ unsigned int cmts, extensions; @@ -221,10 +221,10 @@ xpmWriteFile(file, image, name, info) } static void -WriteColors(file, colors, ncolors) - FILE *file; - XpmColor *colors; - unsigned int ncolors; +WriteColors( + FILE *file, + XpmColor *colors, + unsigned int ncolors) { unsigned int a, key; char *s; @@ -245,13 +245,13 @@ WriteColors(file, colors, ncolors) static int -WritePixels(file, width, height, cpp, pixels, colors) - FILE *file; - unsigned int width; - unsigned int height; - unsigned int cpp; - unsigned int *pixels; - XpmColor *colors; +WritePixels( + FILE *file, + unsigned int width, + unsigned int height, + unsigned int cpp, + unsigned int *pixels, + XpmColor *colors) { char *s, *p, *buf; unsigned int x, y, h; @@ -289,10 +289,10 @@ WritePixels(file, width, height, cpp, pixels, colors) } static void -WriteExtensions(file, ext, num) - FILE *file; - XpmExtension *ext; - unsigned int num; +WriteExtensions( + FILE *file, + XpmExtension *ext, + unsigned int num) { unsigned int x, y, n; char **line; @@ -318,9 +318,9 @@ FUNC(xpmPipeThrough, FILE*, (int fd, * open the given file to be written as an xpmData which is returned */ static int -OpenWriteFile(filename, mdata) - char *filename; - xpmData *mdata; +OpenWriteFile( + char *filename, + xpmData *mdata) { if (!filename) { mdata->stream.file = (stdout); @@ -356,8 +356,7 @@ OpenWriteFile(filename, mdata) * close the file related to the xpmData if any */ static void -xpmDataClose(mdata) - xpmData *mdata; +xpmDataClose(xpmData *mdata) { if (mdata->stream.file != (stdout)) fclose(mdata->stream.file); |