X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6ed776fb2d330b4b6d0105c3628ccf88fd3bb60..a308135449c51cbf067c128c9b61354ca7f899c9:/src/xpm/data.c?ds=sidebyside diff --git a/src/xpm/data.c b/src/xpm/data.c index 917614e4be..c79069bee9 100644 --- a/src/xpm/data.c +++ b/src/xpm/data.c @@ -33,12 +33,6 @@ \*****************************************************************************/ #ifndef CXPMPROG -/* Official version number */ -static char *RCS_Version = "$XpmVersion: 3.4k $"; - -/* Internal version number */ -static char *RCS_Id = "$Id$"; - #include "XpmI.h" #endif #include @@ -48,9 +42,15 @@ static char *RCS_Id = "$Id$"; #define Ungetc(data, c, file) ungetc(c, file) #endif +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +static int +ParseComment(xpmData* data) +#else static int ParseComment(data) xpmData *data; +#endif { if (data->type == XPMBUFFER) { register char c; @@ -175,9 +175,14 @@ ParseComment(data) /* * skip to the end of the current string and the beginning of the next one */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +int xpmNextString(xpmData* data) +#else int xpmNextString(data) xpmData *data; +#endif { if (!data->type) data->cptr = (data->stream.data)[++data->line]; @@ -231,11 +236,20 @@ xpmNextString(data) /* * skip whitespace and return the following word */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +unsigned int xpmNextWord( + xpmData* data +, char* buf +, unsigned int buflen +) +#else unsigned int xpmNextWord(data, buf, buflen) xpmData *data; char *buf; unsigned int buflen; +#endif { register unsigned int n = 0; int c; @@ -268,10 +282,16 @@ xpmNextWord(data, buf, buflen) * skip whitespace and compute the following unsigned int, * returns 1 if one is found and 0 if not */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +int +xpmNextUI(xpmData* data, unsigned int* ui_return) +#else int xpmNextUI(data, ui_return) xpmData *data; unsigned int *ui_return; +#endif { char buf[BUFSIZ]; int l; @@ -283,11 +303,16 @@ xpmNextUI(data, ui_return) /* * return end of string - WARNING: malloc! */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +int xpmGetString(xpmData* data, char** sptr, unsigned int* l) +#else int xpmGetString(data, sptr, l) xpmData *data; char **sptr; unsigned int *l; +#endif { unsigned int i, n = 0; int c; @@ -367,10 +392,15 @@ xpmGetString(data, sptr, l) /* * get the current comment line */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +int xpmGetCmt(xpmData* data, char** cmt) +#else int xpmGetCmt(data, cmt) xpmData *data; char **cmt; +#endif { if (!data->type) *cmt = NULL; @@ -399,9 +429,14 @@ xpmDataType xpmDataTypes[] = /* * parse xpm header */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +int xpmParseHeader(xpmData* data) +#else int xpmParseHeader(data) xpmData *data; +#endif { char buf[BUFSIZ]; int l, n = 0;