~ubuntu-branches/ubuntu/lucid/libxpm/lucid

« back to all changes in this revision

Viewing changes to src/parse.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Timo Aaltonen, Julien Cristau
  • Date: 2009-11-25 19:31:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20091125193108-sr3rcc07tnpr2ncj
[ 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:
82
82
};
83
83
 
84
84
int
85
 
xpmParseValues(data, width, height, ncolors, cpp,
86
 
            x_hotspot, y_hotspot, hotspot, extensions)
87
 
    xpmData *data;
88
 
    unsigned int *width, *height, *ncolors, *cpp;
89
 
    unsigned int *x_hotspot, *y_hotspot, *hotspot;
90
 
    unsigned int *extensions;
 
85
xpmParseValues(
 
86
    xpmData             *data,
 
87
    unsigned int        *width,
 
88
    unsigned int        *height,
 
89
    unsigned int        *ncolors,
 
90
    unsigned int        *cpp,
 
91
    unsigned int        *x_hotspot,
 
92
    unsigned int        *y_hotspot,
 
93
    unsigned int        *hotspot,
 
94
    unsigned int        *extensions)
91
95
{
92
96
    unsigned int l;
93
97
    char buf[BUFSIZ + 1];
192
196
}
193
197
 
194
198
int
195
 
xpmParseColors(data, ncolors, cpp, colorTablePtr, hashtable)
196
 
    xpmData *data;
197
 
    unsigned int ncolors;
198
 
    unsigned int cpp;
199
 
    XpmColor **colorTablePtr;
200
 
    xpmHashTable *hashtable;
 
199
xpmParseColors(
 
200
    xpmData              *data,
 
201
    unsigned int          ncolors,
 
202
    unsigned int          cpp,
 
203
    XpmColor            **colorTablePtr,
 
204
    xpmHashTable         *hashtable)
201
205
{
202
206
    unsigned int key = 0, l, a, b, len;
203
207
    unsigned int curkey;                /* current color key */
365
369
}
366
370
 
367
371
static int
368
 
ParsePixels(data, width, height, ncolors, cpp, colorTable, hashtable, pixels)
369
 
    xpmData *data;
370
 
    unsigned int width;
371
 
    unsigned int height;
372
 
    unsigned int ncolors;
373
 
    unsigned int cpp;
374
 
    XpmColor *colorTable;
375
 
    xpmHashTable *hashtable;
376
 
    unsigned int **pixels;
 
372
ParsePixels(
 
373
    xpmData              *data,
 
374
    unsigned int          width,
 
375
    unsigned int          height,
 
376
    unsigned int          ncolors,
 
377
    unsigned int          cpp,
 
378
    XpmColor             *colorTable,
 
379
    xpmHashTable         *hashtable,
 
380
    unsigned int        **pixels)
377
381
{
378
382
    unsigned int *iptr, *iptr2 = NULL; /* found by Egbert Eich */
379
383
    unsigned int a, x, y;
538
542
}
539
543
 
540
544
int
541
 
xpmParseExtensions(data, extensions, nextensions)
542
 
    xpmData *data;
543
 
    XpmExtension **extensions;
544
 
    unsigned int *nextensions;
 
545
xpmParseExtensions(
 
546
    xpmData              *data,
 
547
    XpmExtension        **extensions,
 
548
    unsigned int         *nextensions)
545
549
{
546
550
    XpmExtension *exts = NULL, *ext;
547
551
    unsigned int num = 0;
659
663
 * in an an XpmImage structure which is returned.
660
664
 */
661
665
int
662
 
xpmParseData(data, image, info)
663
 
    xpmData *data;
664
 
    XpmImage *image;
665
 
    XpmInfo *info;
 
666
xpmParseData(
 
667
    xpmData     *data,
 
668
    XpmImage    *image,
 
669
    XpmInfo     *info)
666
670
{
667
671
    /* variables to return */
668
672
    unsigned int width, height, ncolors, cpp;