home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gp35emx.zip / patch < prev    next >
Text File  |  1995-12-15  |  5KB  |  180 lines

  1. diff -c -b gnuplot.old/command.c gnuplot/command.c
  2. *** gnuplot.old/command.c    Thu Sep 16 00:59:44 1993
  3. --- gnuplot/command.c    Wed Dec  6 22:30:46 1995
  4. ***************
  5. *** 489,495 ****
  6.                    longjmp(env, TRUE); /* bail out to command line */
  7.            }
  8.   #else
  9. ! #ifdef OS2
  10.           if( strcmp(term_tbl[term].name, "pm" )==0 && stime < 0 )
  11.           {
  12.               int rc ;
  13. --- 489,495 ----
  14.            longjmp(env, TRUE); /* bail out to command line */
  15.        }
  16.   #else
  17. ! #ifdef OS2PM
  18.       if( strcmp(term_tbl[term].name, "pm" )==0 && stime < 0 )
  19.       {
  20.           int rc ;
  21. ***************
  22. *** 503,509 ****
  23.   #else
  24.           (void) fgets(buf, MAX_LINE_LEN, stdin);
  25.       /* Hold until CR hit. */
  26. ! #endif /*OS2*/
  27.   #endif
  28.   #ifdef __ZTC__
  29.       if (stime > 0)
  30. --- 503,509 ----
  31.   #else
  32.           (void) fgets(buf, MAX_LINE_LEN, stdin);
  33.       /* Hold until CR hit. */
  34. ! #endif /*OS2PM*/
  35.   #endif
  36.   #ifdef __ZTC__
  37.       if (stime > 0)
  38. diff -c -b gnuplot.old/makefile.os2 gnuplot/makefile.os2
  39. *** gnuplot.old/makefile.os2    Thu Sep 16 00:59:48 1993
  40. --- gnuplot/makefile.os2    Wed Dec  6 23:56:31 1995
  41. ***************
  42. *** 6,11 ****
  43. --- 6,14 ----
  44.   # usage: nmake  OR dmake -r  -B
  45.   # (file has blanks instead of real tabs, doesn't use dmake.ini)
  46.   #
  47. + # Modified by David J. Liu (liudj0@minerva.cis.yale.edu)
  48. + # to be used for compiling a version works for both OS/2 and DOS.
  49. + #
  50.   
  51.   # where to place gnuplot.gih helpfile
  52.   HELPFILE = gnuplot.gih
  53. ***************
  54. *** 19,25 ****
  55.   OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  56.       help.o internal.o misc.o parse.o plot.o readline.o specfun.o \
  57.       scanner.o setshow.o standard.o term.o util.o version.o \
  58. !         binary.o gnubin.o
  59.   
  60.   CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  61.       term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  62. --- 22,28 ----
  63.   OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  64.       help.o internal.o misc.o parse.o plot.o readline.o specfun.o \
  65.       scanner.o setshow.o standard.o term.o util.o version.o \
  66. !         binary.o gnubin.o gstring.o
  67.   
  68.   CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  69.       term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  70. ***************
  71. *** 36,43 ****
  72.       gcc $(CFLAGS) -o $*.o $*.c
  73.   
  74.   gnuplot.exe: $(OBJS)
  75. !         gcc -o gnuplot.exe $(OBJS) -los2
  76.   
  77.   bitmap.o: bitmap.c bitmap.h plot.h
  78.   
  79. --- 39,46 ----
  80.       gcc $(CFLAGS) -o $*.o $*.c
  81.   
  82.   gnuplot.exe: $(OBJS)
  83. !     gcc -o gnuplot.exe *.o -lgraph -lvesa -los2 -s
  84. !     emxbind -a gnuplot.exe -acim -p
  85.   
  86.   bitmap.o: bitmap.c bitmap.h plot.h
  87.   
  88. diff -c -b gnuplot.old/term.c gnuplot/term.c
  89. *** gnuplot.old/term.c    Thu Sep 16 00:59:54 1993
  90. --- gnuplot/term.c    Wed Dec  6 21:50:14 1995
  91. ***************
  92. *** 1466,1480 ****
  93.   #endif
  94.   
  95.   #ifdef EMXVGA
  96. ! #ifdef EMXVESA
  97. !     ,{"vesa", "IBM PC/Clone with VESA SVGA graphics board [vesa mode]",
  98. !        EMXVGA_XMAX, EMXVGA_YMAX, EMXVGA_VCHAR, EMXVGA_HCHAR,
  99. !        EMXVGA_VTIC, EMXVGA_HTIC, EMXVESA_options, EMXVESA_init, EMXVESA_reset,
  100. !        EMXVESA_text, null_scale, EMXVESA_graphics, EMXVGA_move, EMXVGA_vector,
  101. !        EMXVGA_linetype, EMXVGA_put_text, EMXVGA_text_angle, 
  102. !        null_justify_text, do_point, do_arrow}
  103. ! #endif
  104. !     ,{"vgal", "IBM PC/Clone with VGA graphics board",
  105.          EMXVGA_XMAX, EMXVGA_YMAX, EMXVGA_VCHAR, EMXVGA_HCHAR,
  106.          EMXVGA_VTIC, EMXVGA_HTIC, options_null, EMXVGA_init, EMXVGA_reset,
  107.          EMXVGA_text, null_scale, EMXVGA_graphics, EMXVGA_move, EMXVGA_vector,
  108. --- 1466,1472 ----
  109.   #endif
  110.   
  111.   #ifdef EMXVGA
  112. !     ,{"emxvga", "PC with SuperVGA running DOS or OS/2",
  113.          EMXVGA_XMAX, EMXVGA_YMAX, EMXVGA_VCHAR, EMXVGA_HCHAR,
  114.          EMXVGA_VTIC, EMXVGA_HTIC, options_null, EMXVGA_init, EMXVGA_reset,
  115.          EMXVGA_text, null_scale, EMXVGA_graphics, EMXVGA_move, EMXVGA_vector,
  116. ***************
  117. *** 1719,1732 ****
  118.            term_name = "cgi";
  119.   #endif /*CGI */
  120.   
  121. - #if defined(MSDOS) && defined(__EMX__)
  122. - #ifdef EMXVESA
  123. -        term_name = "vesa";
  124. - #else
  125. -        term_name = "vgal";
  126. - #endif
  127. - #endif
  128.   #ifdef DJGPP
  129.           term_name = "svga";
  130.   #endif
  131. --- 1711,1716 ----
  132. ***************
  133. *** 1735,1745 ****
  134.           term_name = "grass";
  135.   #endif
  136.   
  137. ! #ifdef OS2
  138. !            term_name = "pm" ;
  139.               /* EMX compiler has getcwd that can return drive */
  140.              if( PM_path[0]=='\0' ) _getcwd2( PM_path, 256 ) ;
  141. ! #endif /*OS2 */           
  142.       }
  143.   
  144.       /* We have a name, try to set term type */
  145. --- 1719,1728 ----
  146.       term_name = "grass";
  147.   #endif
  148.   
  149. ! #ifdef OS2PM
  150.           /* EMX compiler has getcwd that can return drive */
  151.          if( PM_path[0]=='\0' ) _getcwd2( PM_path, 256 ) ;
  152. ! #endif /* OS2PM */           
  153.       }
  154.   
  155.       /* We have a name, try to set term type */
  156. diff -c -b gnuplot.old/term.h gnuplot/term.h
  157. *** gnuplot.old/term.h    Thu Sep 16 00:59:54 1993
  158. --- gnuplot/term.h    Wed Dec  6 21:59:14 1995
  159. ***************
  160. *** 156,162 ****
  161.   #endif /* MSDOS */
  162.   
  163.   #ifdef OS2
  164. ! #define OS2PM
  165.   #endif /*OS2 */
  166.   
  167.   #ifdef GISBASE
  168. --- 156,164 ----
  169.   #endif /* MSDOS */
  170.   
  171.   #ifdef OS2
  172. ! #define DEFAULTTERM "emxvga" /* "pm" */
  173. ! /*#define OS2PM        /* OS/2 pm graphics window */
  174. ! #define EMXVGA        /* works with DOS and OS/2 (windowed/full screen) */
  175.   #endif /*OS2 */
  176.   
  177.   #ifdef GISBASE
  178.