diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 15:45:20 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-30 15:45:20 -0200 |
commit | 6697e31fbb616656b7f34515a79454af394b500a (patch) | |
tree | 504d0d5c456226bec6ced89839d94964a728e321 /src/parse.c | |
parent | 41e4e2de4d73d098d332ece0410e9f8fda4fe10d (diff) |
Janitor: ansification, make distcheck, .gitignore
The ansification code is minor edit of the patch (by me) at
https://bugs.freedesktop.org/show_bug.cgi?id=14727
as it would not apply cleanly anymore.
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/src/parse.c b/src/parse.c index bd5b52c..b183866 100644 --- a/src/parse.c +++ b/src/parse.c @@ -82,12 +82,16 @@ char *xpmColorKeys[] = { }; int -xpmParseValues(data, width, height, ncolors, cpp, - x_hotspot, y_hotspot, hotspot, extensions) - xpmData *data; - unsigned int *width, *height, *ncolors, *cpp; - unsigned int *x_hotspot, *y_hotspot, *hotspot; - unsigned int *extensions; +xpmParseValues( + xpmData *data, + unsigned int *width, + unsigned int *height, + unsigned int *ncolors, + unsigned int *cpp, + unsigned int *x_hotspot, + unsigned int *y_hotspot, + unsigned int *hotspot, + unsigned int *extensions) { unsigned int l; char buf[BUFSIZ + 1]; @@ -192,12 +196,12 @@ xpmParseValues(data, width, height, ncolors, cpp, } int -xpmParseColors(data, ncolors, cpp, colorTablePtr, hashtable) - xpmData *data; - unsigned int ncolors; - unsigned int cpp; - XpmColor **colorTablePtr; - xpmHashTable *hashtable; +xpmParseColors( + xpmData *data, + unsigned int ncolors, + unsigned int cpp, + XpmColor **colorTablePtr, + xpmHashTable *hashtable) { unsigned int key = 0, l, a, b, len; unsigned int curkey; /* current color key */ @@ -365,15 +369,15 @@ xpmParseColors(data, ncolors, cpp, colorTablePtr, hashtable) } static int -ParsePixels(data, width, height, ncolors, cpp, colorTable, hashtable, pixels) - xpmData *data; - unsigned int width; - unsigned int height; - unsigned int ncolors; - unsigned int cpp; - XpmColor *colorTable; - xpmHashTable *hashtable; - unsigned int **pixels; +ParsePixels( + xpmData *data, + unsigned int width, + unsigned int height, + unsigned int ncolors, + unsigned int cpp, + XpmColor *colorTable, + xpmHashTable *hashtable, + unsigned int **pixels) { unsigned int *iptr, *iptr2 = NULL; /* found by Egbert Eich */ unsigned int a, x, y; @@ -538,10 +542,10 @@ do \ } int -xpmParseExtensions(data, extensions, nextensions) - xpmData *data; - XpmExtension **extensions; - unsigned int *nextensions; +xpmParseExtensions( + xpmData *data, + XpmExtension **extensions, + unsigned int *nextensions) { XpmExtension *exts = NULL, *ext; unsigned int num = 0; @@ -659,10 +663,10 @@ do { \ * in an an XpmImage structure which is returned. */ int -xpmParseData(data, image, info) - xpmData *data; - XpmImage *image; - XpmInfo *info; +xpmParseData( + xpmData *data, + XpmImage *image, + XpmInfo *info) { /* variables to return */ unsigned int width, height, ncolors, cpp; |