summaryrefslogtreecommitdiff
path: root/src/CrBufFrI.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CrBufFrI.c')
-rw-r--r--src/CrBufFrI.c73
1 files changed, 36 insertions, 37 deletions
diff --git a/src/CrBufFrI.c b/src/CrBufFrI.c
index b879715..a53b117 100644
--- a/src/CrBufFrI.c
+++ b/src/CrBufFrI.c
@@ -59,12 +59,12 @@ LFUNC(ExtensionsSize, unsigned int, (XpmExtension *ext, unsigned int num));
LFUNC(CommentsSize, int, (XpmInfo *info));
int
-XpmCreateBufferFromImage(display, buffer_return, image, shapeimage, attributes)
- Display *display;
- char **buffer_return;
- XImage *image;
- XImage *shapeimage;
- XpmAttributes *attributes;
+XpmCreateBufferFromImage(
+ Display *display,
+ char **buffer_return,
+ XImage *image,
+ XImage *shapeimage,
+ XpmAttributes *attributes)
{
XpmImage xpmimage;
XpmInfo info;
@@ -105,10 +105,10 @@ do \
}while(0)
int
-XpmCreateBufferFromXpmImage(buffer_return, image, info)
- char **buffer_return;
- XpmImage *image;
- XpmInfo *info;
+XpmCreateBufferFromXpmImage(
+ char **buffer_return,
+ XpmImage *image,
+ XpmInfo *info)
{
/* calculation variables */
int ErrorStatus;
@@ -271,13 +271,13 @@ error:
static int
-WriteColors(dataptr, data_size, used_size, colors, ncolors, cpp)
- char **dataptr;
- unsigned int *data_size;
- unsigned int *used_size;
- XpmColor *colors;
- unsigned int ncolors;
- unsigned int cpp;
+WriteColors(
+ char **dataptr,
+ unsigned int *data_size,
+ unsigned int *used_size,
+ XpmColor *colors,
+ unsigned int ncolors,
+ unsigned int cpp)
{
char buf[BUFSIZ] = {0};
unsigned int a, key, l;
@@ -329,15 +329,15 @@ WriteColors(dataptr, data_size, used_size, colors, ncolors, cpp)
}
static void
-WritePixels(dataptr, data_size, used_size, width, height, cpp, pixels, colors)
- char *dataptr;
- unsigned int data_size;
- unsigned int *used_size;
- unsigned int width;
- unsigned int height;
- unsigned int cpp;
- unsigned int *pixels;
- XpmColor *colors;
+WritePixels(
+ char *dataptr,
+ unsigned int data_size,
+ unsigned int *used_size,
+ unsigned int width,
+ unsigned int height,
+ unsigned int cpp,
+ unsigned int *pixels,
+ XpmColor *colors)
{
char *s = dataptr;
unsigned int x, y, h;
@@ -372,9 +372,9 @@ WritePixels(dataptr, data_size, used_size, width, height, cpp, pixels, colors)
}
static unsigned int
-ExtensionsSize(ext, num)
- XpmExtension *ext;
- unsigned int num;
+ExtensionsSize(
+ XpmExtension *ext,
+ unsigned int num)
{
unsigned int x, y, a, size;
char **line;
@@ -397,12 +397,12 @@ ExtensionsSize(ext, num)
}
static void
-WriteExtensions(dataptr, data_size, used_size, ext, num)
- char *dataptr;
- unsigned int data_size;
- unsigned int *used_size;
- XpmExtension *ext;
- unsigned int num;
+WriteExtensions(
+ char *dataptr,
+ unsigned int data_size,
+ unsigned int *used_size,
+ XpmExtension *ext,
+ unsigned int num)
{
unsigned int x, y, a;
char **line;
@@ -432,8 +432,7 @@ WriteExtensions(dataptr, data_size, used_size, ext, num)
}
static int
-CommentsSize(info)
- XpmInfo *info;
+CommentsSize(XpmInfo *info)
{
int size = 0;