~ubuntu-branches/ubuntu/trusty/libxpm/trusty

« back to all changes in this revision

Viewing changes to src/CrDatFrI.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Timo Aaltonen, Julien Cristau
  • Date: 2009-11-25 19:31:08 UTC
  • mfrom: (1.1.5 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091125193108-53d2v3e83ejqwz5q
Tags: 1:3.5.8-1
[ Timo Aaltonen ]
* New upstream release.
* Bump the build-dep on xutils-dev (>= 1:7.5~1).

[ Julien Cristau ]
* Bump Standards-Version to 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                               unsigned int ext_nlines));
60
60
 
61
61
int
62
 
XpmCreateDataFromImage(display, data_return, image, shapeimage, attributes)
63
 
    Display *display;
64
 
    char ***data_return;
65
 
    XImage *image;
66
 
    XImage *shapeimage;
67
 
    XpmAttributes *attributes;
 
62
XpmCreateDataFromImage(
 
63
    Display               *display,
 
64
    char                ***data_return,
 
65
    XImage                *image,
 
66
    XImage                *shapeimage,
 
67
    XpmAttributes         *attributes)
68
68
{
69
69
    XpmImage xpmimage;
70
70
    XpmInfo info;
102
102
} while(0)
103
103
 
104
104
int
105
 
XpmCreateDataFromXpmImage(data_return, image, info)
106
 
    char ***data_return;
107
 
    XpmImage *image;
108
 
    XpmInfo *info;
 
105
XpmCreateDataFromXpmImage(
 
106
    char        ***data_return,
 
107
    XpmImage      *image,
 
108
    XpmInfo       *info)
109
109
{
110
110
    /* calculation variables */
111
111
    int ErrorStatus;
244
244
}
245
245
 
246
246
static int
247
 
CreateColors(dataptr, data_size, colors, ncolors, cpp)
248
 
    char **dataptr;
249
 
    unsigned int *data_size;
250
 
    XpmColor *colors;
251
 
    unsigned int ncolors;
252
 
    unsigned int cpp;
 
247
CreateColors(
 
248
    char                **dataptr,
 
249
    unsigned int         *data_size,
 
250
    XpmColor             *colors,
 
251
    unsigned int          ncolors,
 
252
    unsigned int          cpp)
253
253
{
254
254
    char buf[BUFSIZ];
255
255
    unsigned int a, key, l;
295
295
}
296
296
 
297
297
static void
298
 
CreatePixels(dataptr, data_size, width, height, cpp, pixels, colors)
299
 
    char **dataptr;
300
 
    unsigned int data_size;
301
 
    unsigned int width;
302
 
    unsigned int height;
303
 
    unsigned int cpp;
304
 
    unsigned int *pixels;
305
 
    XpmColor *colors;
 
298
CreatePixels(
 
299
    char                **dataptr,
 
300
    unsigned int          data_size,
 
301
    unsigned int          width,
 
302
    unsigned int          height,
 
303
    unsigned int          cpp,
 
304
    unsigned int         *pixels,
 
305
    XpmColor             *colors)
306
306
{
307
307
    char *s;
308
308
    unsigned int x, y, h, offset;
345
345
}
346
346
 
347
347
static void
348
 
CountExtensions(ext, num, ext_size, ext_nlines)
349
 
    XpmExtension *ext;
350
 
    unsigned int num;
351
 
    unsigned int *ext_size;
352
 
    unsigned int *ext_nlines;
 
348
CountExtensions(
 
349
    XpmExtension        *ext,
 
350
    unsigned int         num,
 
351
    unsigned int        *ext_size,
 
352
    unsigned int        *ext_nlines)
353
353
{
354
354
    unsigned int x, y, a, size, nlines;
355
355
    char **line;
371
371
}
372
372
 
373
373
static void
374
 
CreateExtensions(dataptr, data_size, offset, ext, num, ext_nlines)
375
 
    char **dataptr;
376
 
    unsigned int data_size;
377
 
    unsigned int offset;
378
 
    XpmExtension *ext;
379
 
    unsigned int num;
380
 
    unsigned int ext_nlines;
 
374
CreateExtensions(
 
375
    char                **dataptr,
 
376
    unsigned int          data_size,
 
377
    unsigned int          offset,
 
378
    XpmExtension         *ext,
 
379
    unsigned int          num,
 
380
    unsigned int          ext_nlines)
381
381
{
382
382
    unsigned int x, y, a, b;
383
383
    char **line;