LFUNC(OpenBuffer, void, (char *buffer, xpmData *mdata));
+#ifdef __OS2__
+/* Visual Age cannot deal with old, non-ansi, code */
+int XpmCreateImageFromBuffer(
+ Display* display
+, char* buffer
+, XImage** image_return
+, XImage** shapeimage_return
+, XpmAttributes* attributes
+)
+#else
int
XpmCreateImageFromBuffer(display, buffer, image_return,
shapeimage_return, attributes)
XImage **image_return;
XImage **shapeimage_return;
XpmAttributes *attributes;
+#endif
{
XpmImage image;
XpmInfo info;
return (ErrorStatus);
}
+#ifdef __OS2__
+/* Visual Age cannot deal with old, non-ansi, code */
+int XpmCreateXpmImageFromBuffer(
+ char* buffer
+, XpmImage* image
+, XpmInfo* info
+)
+#else
int
XpmCreateXpmImageFromBuffer(buffer, image, info)
char *buffer;
XpmImage *image;
XpmInfo *info;
+#endif
{
xpmData mdata;
int ErrorStatus;
/*
* open the given buffer to be read or written as an xpmData which is returned
*/
+#ifdef __OS2__
+/* Visual Age cannot deal with old, non-ansi, code */
+static void OpenBuffer(char* buffer, xpmData* mdata)
+#else
static void
OpenBuffer(buffer, mdata)
char *buffer;
xpmData *mdata;
+#endif
{
mdata->type = XPMBUFFER;
mdata->cptr = buffer;