Mercurial > hg > xemacs-beta
diff src/glyphs-shared.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 38db05db9cb5 |
children | 943eaba38521 |
line wrap: on
line diff
--- a/src/glyphs-shared.c Wed Aug 08 12:15:04 2001 +0000 +++ b/src/glyphs-shared.c Mon Aug 13 04:46:48 2001 +0000 @@ -188,21 +188,20 @@ * like the Xlib routine XReadBitmapfile as possible. */ static int -read_bitmap_data (FILE *fstream, unsigned int *width, - unsigned int *height, UChar_Binary **datap, +read_bitmap_data (FILE *fstream, int *width, int *height, UChar_Binary **datap, int *x_hot, int *y_hot) { UChar_Binary *data = NULL; /* working variable */ - char line[MAX_SIZE]; /* input line from file */ + Char_ASCII line[MAX_SIZE]; /* input line from file */ int size; /* number of bytes of data */ - char name_and_type[MAX_SIZE]; /* an input line */ - char *type; /* for parsing */ + Char_ASCII name_and_type[MAX_SIZE]; /* an input line */ + Char_ASCII *type; /* for parsing */ int value; /* from an input line */ int version10p; /* boolean, old format */ int padding; /* to handle alignment */ int bytes_per_line; /* per scanline of data */ - unsigned int ww = 0; /* width */ - unsigned int hh = 0; /* height */ + int ww = 0; /* width */ + int hh = 0; /* height */ int hx = -1; /* x hotspot */ int hy = -1; /* y hotspot */ @@ -227,9 +226,9 @@ type++; if (!strcmp("width", type)) - ww = (unsigned int) value; + ww = value; if (!strcmp("height", type)) - hh = (unsigned int) value; + hh = value; if (!strcmp("hot", type)) { if (type-- == name_and_type || type-- == name_and_type) continue; @@ -315,17 +314,16 @@ int read_bitmap_data_from_file (const char *filename, /* Remaining args are RETURNED */ - unsigned int *width, - unsigned int *height, + int *width, + int *height, UChar_Binary **datap, int *x_hot, int *y_hot) { FILE *fstream; int status; - if ((fstream = fopen (filename, "r")) == NULL) { - return BitmapOpenFailed; - } + if ((fstream = fopen (filename, "r")) == NULL) + return BitmapOpenFailed; status = read_bitmap_data (fstream, width, height, datap, x_hot, y_hot); fclose (fstream); return status;