home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / XPM.ARJ / XPM / XPM.ZIP / XFree86 / src / diffs / xpm-3.4c.diff
Encoding:
Text File  |  1996-03-19  |  7.5 KB  |  278 lines

  1. *** 1.1    1996/03/19 00:29:38
  2. --- lib/data.c    1996/03/19 00:40:08
  3. ***************
  4. *** 45,50 ****
  5. --- 45,56 ----
  6.   #include <ctype.h>
  7.   #endif
  8.   
  9. + #ifndef __EMX__
  10. + #define ISEOLN(c) (c == mdata->Eos)
  11. + #else
  12. + #define ISEOLN(c) (c == mdata->Eos || c == '\r')
  13. + #endif
  14.   
  15.   LFUNC(ParseComment, int, (xpmData * mdata));
  16.   
  17. ***************
  18. *** 172,179 ****
  19.   
  20.       /* get to the end of the current string */
  21.       if (mdata->Eos)
  22. !         while ((c = *mdata->cptr++) && c != mdata->Eos);
  23.       /*
  24.        * then get to the beginning of the next string looking for possible
  25.        * comment
  26. --- 178,184 ----
  27.   
  28.       /* get to the end of the current string */
  29.       if (mdata->Eos)
  30. !         while ((c = *mdata->cptr++) && !ISEOLN(c));
  31.       /*
  32.        * then get to the beginning of the next string looking for possible
  33.        * comment
  34. ***************
  35. *** 193,200 ****
  36.   
  37.       /* get to the end of the current string */
  38.       if (mdata->Eos)
  39. !         while ((c = getc(file)) != mdata->Eos && c != EOF);
  40.       /*
  41.        * then get to the beginning of the next string looking for possible
  42.        * comment
  43. --- 198,204 ----
  44.   
  45.       /* get to the end of the current string */
  46.       if (mdata->Eos)
  47. !         while ((c = getc(file)) != EOF && !ISEOLN(c));
  48.       /*
  49.        * then get to the beginning of the next string looking for possible
  50.        * comment
  51. ***************
  52. *** 243,262 ****
  53.       int c;
  54.   
  55.       if (!mdata->type || mdata->type == XPMBUFFER) {
  56. !     while (isspace(c = *mdata->cptr) && c != mdata->Eos)
  57.           mdata->cptr++;
  58.       do {
  59.           c = *mdata->cptr++;
  60.           *buf++ = c;
  61.           n++;
  62. !     } while (!isspace(c) && c != mdata->Eos && n < buflen);
  63.       n--;
  64.       mdata->cptr--;
  65.       } else {
  66.       FILE *file = mdata->stream.file;
  67.   
  68. !     while ((c = getc(file)) != EOF && isspace(c) && c != mdata->Eos);
  69. !     while (!isspace(c) && c != mdata->Eos && c != EOF && n < buflen) {
  70.           *buf++ = c;
  71.           n++;
  72.           c = getc(file);
  73. --- 247,266 ----
  74.       int c;
  75.   
  76.       if (!mdata->type || mdata->type == XPMBUFFER) {
  77. !     while (isspace(c = *mdata->cptr) && !ISEOLN(c))
  78.           mdata->cptr++;
  79.       do {
  80.           c = *mdata->cptr++;
  81.           *buf++ = c;
  82.           n++;
  83. !     } while (!isspace(c) && !ISEOLN(c) && n < buflen);
  84.       n--;
  85.       mdata->cptr--;
  86.       } else {
  87.       FILE *file = mdata->stream.file;
  88.   
  89. !     while ((c = getc(file)) != EOF && isspace(c) && !ISEOLN(c));
  90. !     while (!isspace(c) && !ISEOLN(c) && c != EOF && n < buflen) {
  91.           *buf++ = c;
  92.           n++;
  93.           c = getc(file);
  94. ***************
  95. *** 283,292 ****
  96.       if (mdata->cptr) {
  97.           char *start;
  98.   
  99. !         while (isspace(c = *mdata->cptr) && c != mdata->Eos)
  100.           mdata->cptr++;
  101.           start = mdata->cptr;
  102. !         while ((c = *mdata->cptr) && c != mdata->Eos)
  103.           mdata->cptr++;
  104.           n = mdata->cptr - start + 1;
  105.           p = (char *) XpmMalloc(n);
  106. --- 287,296 ----
  107.       if (mdata->cptr) {
  108.           char *start;
  109.   
  110. !         while (isspace(c = *mdata->cptr) && !ISEOLN(c))
  111.           mdata->cptr++;
  112.           start = mdata->cptr;
  113. !         while ((c = *mdata->cptr) && !ISEOLN(c))
  114.           mdata->cptr++;
  115.           n = mdata->cptr - start + 1;
  116.           p = (char *) XpmMalloc(n);
  117. ***************
  118. *** 299,312 ****
  119.       } else {
  120.       FILE *file = mdata->stream.file;
  121.   
  122. !     while ((c = getc(file)) != EOF && isspace(c) && c != mdata->Eos);
  123.       if (c == EOF)
  124.           return (XpmFileInvalid);
  125.       p = NULL;
  126.       i = 0;
  127.       q = buf;
  128.       p = (char *) XpmMalloc(1);
  129. !     while (c != mdata->Eos && c != EOF) {
  130.           if (i == BUFSIZ) {
  131.           /* get to the end of the buffer */
  132.           /* malloc needed memory */
  133. --- 303,316 ----
  134.       } else {
  135.       FILE *file = mdata->stream.file;
  136.   
  137. !     while ((c = getc(file)) != EOF && isspace(c) && !ISEOLN(c));
  138.       if (c == EOF)
  139.           return (XpmFileInvalid);
  140.       p = NULL;
  141.       i = 0;
  142.       q = buf;
  143.       p = (char *) XpmMalloc(1);
  144. !     while (!ISEOLN(c) && c != EOF) {
  145.           if (i == BUFSIZ) {
  146.           /* get to the end of the buffer */
  147.           /* malloc needed memory */
  148. *** 1.1    1996/03/18 23:32:32
  149. --- lib/Imakefile    1996/03/19 00:04:46
  150. ***************
  151. *** 39,46 ****
  152.   
  153.   XCOMM SGI requires a specification file for shared library that we don't have
  154.   #ifndef SharedLibXpm
  155. ! #define SharedLibXpm (HasSharedLibraries && \
  156. !     !(defined(SGIArchitecture) && !SystemV4))
  157.   #endif
  158.   
  159.   #ifndef NormalLibXpm
  160. --- 39,49 ----
  161.   
  162.   XCOMM SGI requires a specification file for shared library that we don't have
  163.   #ifndef SharedLibXpm
  164. ! #define SharedLibXpm (defined(OS2Architecture) || (HasSharedLibraries && \
  165. !     !(defined(SGIArchitecture) && !SystemV4)))
  166. ! #endif
  167. ! #ifdef OS2Architecture
  168. ! #define NormalLibXpm NO
  169.   #endif
  170.   
  171.   #ifndef NormalLibXpm
  172. ***************
  173. *** 50,55 ****
  174. --- 53,61 ----
  175.   #ifdef RsArchitecture
  176.   REQUIREDLIBS = -lXext -lXt -lX11
  177.   #endif
  178. + #ifdef OS2Architecture
  179. + REQUIREDLIBS = $(X11ROOT)\\XFree86\\lib\\ Xext Xt X11
  180. + #endif
  181.   
  182.   XCOMM on Dec Alpha we need to define the following to build the shared library
  183.   #ifdef AlphaArchitecture
  184. ***************
  185. *** 64,70 ****
  186. --- 70,80 ----
  187.       (defined(MipsArchitecture) && !defined(SGIArchitecture))
  188.   DEFINES = -DZPIPE -DNEED_STRDUP
  189.   #else
  190. + #ifdef OS2Architecture
  191. + DEFINES = -DNEED_STRCASECMP
  192. + #else
  193.   DEFINES = -ZPIPE
  194. + #endif
  195.   #endif
  196.   
  197.   
  198. *** 1.1    1996/03/18 23:59:07
  199. --- lib/Xpmos2.def    1996/03/18 23:44:48
  200. ***************
  201. *** 0 ****
  202. --- 1,41 ----
  203. + LIBRARY XPM
  204. + DESCRIPTION "X11R6 XFree86 libXPM.dll for OS/2 EMX09B VERSION=6.1"
  205. + CODE
  206. +     PRELOAD
  207. + DATA
  208. +     MULTIPLE NONSHARED
  209. + STACKSIZE 32768
  210. + EXPORTS
  211. +     XpmCreatePixmapFromData @ 1
  212. +     XpmCreateDataFromPixmap @ 2
  213. +     XpmReadFileToPixmap @ 3
  214. +     XpmWriteFileFromPixmap @ 4
  215. +     XpmCreateImageFromData @ 5
  216. +     XpmCreateDataFromImage @ 6
  217. +     XpmReadFileToImage @ 7
  218. +     XpmWriteFileFromImage @ 8
  219. +     XpmCreateImageFromBuffer @ 9
  220. +     XpmCreatePixmapFromBuffer @ 10
  221. +     XpmCreateBufferFromImage @ 11
  222. +     XpmCreateBufferFromPixmap @ 12
  223. +     XpmReadFileToBuffer @ 13
  224. +     XpmWriteFileFromBuffer @ 14
  225. +     XpmReadFileToData @ 15
  226. +     XpmWriteFileFromData @ 16
  227. +     XpmAttributesSize @ 17
  228. +     XpmFreeAttributes @ 18
  229. +     XpmFreeExtensions @ 19
  230. +     XpmFreeXpmImage @ 20
  231. +     XpmFreeXpmInfo @ 21
  232. +     XpmGetErrorString @ 22
  233. +     XpmLibraryVersion @ 23
  234. +     XpmReadFileToXpmImage @ 24
  235. +     XpmWriteFileFromXpmImage @ 25
  236. +     XpmCreatePixmapFromXpmImage @ 26
  237. +     XpmCreateImageFromXpmImage @ 27
  238. +     XpmCreateXpmImageFromImage @ 28
  239. +     XpmCreateXpmImageFromPixmap @ 29
  240. +     XpmCreateDataFromXpmImage @ 30
  241. +     XpmCreateXpmImageFromData @ 31
  242. +     XpmCreateXpmImageFromBuffer @ 32
  243. +     XpmCreateBufferFromXpmImage @ 33
  244. *** 1.1    1996/03/18 23:59:30
  245. --- lib/Xpmos2.rsp    1996/03/18 23:50:20
  246. ***************
  247. *** 0 ****
  248. --- 1,7 ----
  249. + Attrib.obj CrBufFrI.obj CrBufFrP.obj CrDatFrI.obj CrDatFrP.obj CrIFrBuf.obj+
  250. + CrIFrDat.obj CrIFrP.obj CrPFrBuf.obj CrPFrDat.obj CrPFrI.obj Image.obj+
  251. + Info.obj RdFToBuf.obj RdFToDat.obj RdFToI.obj RdFToP.obj WrFFrBuf.obj+
  252. + WrFFrDat.obj WrFFrI.obj WrFFrP.obj create.obj data.obj hashtab.obj+
  253. + misc.obj parse.obj rgb.obj scan.obj /NOL /NOD /BAT
  254. + Xpm.dll
  255. *** 1.1    1996/03/19 00:08:46
  256. --- sxpm/Imakefile    1996/03/19 00:09:16
  257. ***************
  258. *** 61,67 ****
  259.             SRCS = sxpm.c
  260.             OBJS = sxpm.o
  261.   
  262. ! AllTarget(sxpm)
  263.   NormalProgramTarget(sxpm,$(OBJS),$(DEPLIB),$(LOCAL_LIBRARIES),)
  264.   InstallProgram(sxpm,$(XPMBINDIR))
  265.   InstallManPage(sxpm,$(XPMMANDIR))
  266. --- 61,67 ----
  267.             SRCS = sxpm.c
  268.             OBJS = sxpm.o
  269.   
  270. ! AllTarget(ProgramTargetName(sxpm))
  271.   NormalProgramTarget(sxpm,$(OBJS),$(DEPLIB),$(LOCAL_LIBRARIES),)
  272.   InstallProgram(sxpm,$(XPMBINDIR))
  273.   InstallManPage(sxpm,$(XPMMANDIR))
  274.