home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / gnuplot.lha / diffs.amiga < prev    next >
Text File  |  1991-07-08  |  23KB  |  893 lines

  1. Common subdirectories: gnuplot-orig/bugtest and gnuplot/bugtest
  2. diff -r -c gnuplot-orig/command.c gnuplot/command.c
  3. *** gnuplot-orig/command.c    Wed Nov 28 18:13:34 1990
  4. --- gnuplot/command.c    Thu Jul  4 13:52:32 1991
  5. ***************
  6. *** 48,57 ****
  7.   void sleep();        /* defined later */
  8.   #endif /* TURBOC */
  9.   #endif /* ZTC */
  10.   
  11. ! #endif /* MSDOS */
  12.   
  13.   #include "plot.h"
  14.   #include "setshow.h"
  15.   #include "help.h"
  16. --- 48,60 ----
  17.   void sleep();        /* defined later */
  18.   #endif /* TURBOC */
  19.   #endif /* ZTC */
  20. + #endif    /* MSDOS */
  21.   
  22. ! #ifdef AMIGA_LC_5_1
  23. ! #include <proto/dos.h>
  24. ! void sleep();
  25. ! #endif    /* AMIGA_LC_5_1 */
  26.   
  27.   #include "plot.h"
  28.   #include "setshow.h"
  29.   #include "help.h"
  30. ***************
  31. *** 61,68 ****
  32. --- 64,75 ----
  33.   #endif
  34.   
  35.   #ifndef HELPFILE
  36. + #ifdef AMIGA_LC_5_1
  37. + #define HELPFILE "S:gnuplot.gih"
  38. + #else
  39.   #define HELPFILE "docs/gnuplot.gih" /* changed by makefile */
  40.   #endif
  41. + #endif
  42.   
  43.   #define inrange(z,min,max) ((min<max) ? ((z>=min)&&(z<=max)) : ((z>=max)&&(z<=min)) )
  44.   
  45. ***************
  46. *** 183,188 ****
  47. --- 190,196 ----
  48.           }
  49.           if (stime < 0) (void) fgets (buf,MAX_LINE_LEN,stdin);  
  50.                           /* Hold until CR hit. */
  51.   #ifdef __ZTC__
  52.           if (stime > 0) usleep((unsigned long) stime);
  53.   #else
  54. ***************
  55. *** 448,453 ****
  56. --- 456,465 ----
  57.   float temp;
  58.   BOOLEAN yfirst;
  59.   char format[MAX_LINE_LEN+1];
  60. + #ifdef AMIGA_LC_5_1
  61. + int num_perc_ast;
  62. + char *start_search;
  63. + #endif /* AMIGA_LC_5_1 */
  64.   
  65.       quote_str(data_file, c_token);
  66.       this_plot->plot_type = DATA;
  67. ***************
  68. *** 496,502 ****
  69. --- 508,525 ----
  70.               continue;
  71.           }
  72.   
  73. + #ifdef AMIGA_LC_5_1
  74. +         num_perc_ast = 0;
  75. +         start_search = format;
  76. +         while (*start_search != '\0') {
  77. +             if (start_search[0] == '%')
  78. +                 if (start_search[1] == '*') num_perc_ast++;
  79. +             start_search++;
  80. +         }
  81. +         switch (sscanf(line, format, &x, &y) - num_perc_ast) {
  82. + #else /* AMIGA_LC_5_1 */
  83.           switch (sscanf(line, format, &x, &y)) {
  84. + #endif /* AMIGA_LC_5_1 */
  85.               case 1: {        /* only one number on the line */
  86.                  y = x;        /* assign that number to y */
  87.                  x = datum;    /* and make the index into x */
  88. ***************
  89. *** 992,998 ****
  90.               Throw away excess xp points, mark excess yp points as OUTRANGE.
  91.           */
  92.               if (i > xp->p_count) {
  93. !                 yp->points[i].type == OUTRANGE;
  94.                   continue;
  95.               }
  96.           /* 
  97. --- 1015,1021 ----
  98.               Throw away excess xp points, mark excess yp points as OUTRANGE.
  99.           */
  100.               if (i > xp->p_count) {
  101. !                 yp->points[i].type = OUTRANGE;
  102.                   continue;
  103.               }
  104.           /* 
  105. ***************
  106. *** 1086,1091 ****
  107. --- 1109,1121 ----
  108.   #endif /* not TURBOC */
  109.   #endif /* MSDOS */
  110.   
  111. + #ifdef AMIGA_LC_5_1
  112. + void sleep(delay)
  113. + unsigned int delay;
  114. + {
  115. +   Delay(50 * delay);
  116. + }
  117. + #endif
  118.   
  119.   /* Support for input, shell, and help for various systems */
  120.   
  121. ***************
  122. *** 1464,1469 ****
  123. --- 1494,1513 ----
  124.   }
  125.   #else /* VFORK */
  126.   
  127. + #ifdef AMIGA_LC_5_1
  128. + do_shell()
  129. + {
  130. + register char *shell;
  131. +     if (!(shell = getenv("SHELL")))
  132. +         shell = SHELL;
  133. +     if (system(shell))
  134. +         os_error("system() failed",NO_CARET);
  135. +     (void) putc('\n',stderr);
  136. + }
  137. + #else /* AMIGA_LC_5_1 */
  138.   #define EXEC "exec "
  139.   do_shell()
  140.   {
  141. ***************
  142. *** 1478,1483 ****
  143. --- 1522,1528 ----
  144.   
  145.       (void) putc('\n',stderr);
  146.   }
  147. + #endif /* AMIGA_LC_5_1 */
  148.   #endif /* VFORK */
  149.   #endif /* MSDOS */
  150.   #endif /* vms */
  151. Common subdirectories: gnuplot-orig/demo and gnuplot/demo
  152. Common subdirectories: gnuplot-orig/docs and gnuplot/docs
  153. diff -r -c gnuplot-orig/graphics.c gnuplot/graphics.c
  154. *** gnuplot-orig/graphics.c    Fri Nov 23 01:54:08 1990
  155. --- gnuplot/graphics.c    Thu Jul  4 13:51:20 1991
  156. ***************
  157. *** 262,268 ****
  158. --- 262,272 ----
  159.           term_init = TRUE;
  160.       }
  161.       screen_ok = FALSE;
  162. + #ifdef AMIGA_LC_5_1
  163. +      scaling = (*t->scale)((double)xsize, (double)ysize);
  164. + #else
  165.        scaling = (*t->scale)(xsize, ysize);
  166. + #endif
  167.       (*t->graphics)();
  168.   
  169.        /* now compute boundary for plot (xleft, xright, ytop, ybot) */
  170. diff -r -c gnuplot-orig/help.c gnuplot/help.c
  171. *** gnuplot-orig/help.c    Mon Mar 26 18:01:13 1990
  172. --- gnuplot/help.c    Fri Jun 28 16:21:04 1991
  173. ***************
  174. *** 165,171 ****
  175.           (void) strcpy(oldpathp, path);
  176.          else {                /* not enough room in oldpath, sigh */
  177.             (void) strncpy(oldpathp, path, sizeof oldpath);
  178. !           oldpath[sizeof oldpath] = NULL;
  179.          }
  180.       }
  181.   
  182. --- 165,171 ----
  183.           (void) strcpy(oldpathp, path);
  184.          else {                /* not enough room in oldpath, sigh */
  185.             (void) strncpy(oldpathp, path, sizeof oldpath);
  186. !           oldpath[sizeof(oldpath)-1] = NULL;
  187.          }
  188.       }
  189.   
  190. diff -r -c gnuplot-orig/internal.c gnuplot/internal.c
  191. *** gnuplot-orig/internal.c    Wed Nov 28 18:08:43 1990
  192. --- gnuplot/internal.c    Thu Jul  4 13:53:06 1991
  193. ***************
  194. *** 58,65 ****
  195. --- 58,70 ----
  196.   #ifdef apollo
  197.   int matherr(x)    /* apollo */
  198.   struct exception *x;
  199. + #else /* apollo */
  200. + #ifdef AMIGA_LC_5_1
  201. + int matherr(x)    /* AMIGA_LC_5_1 */
  202. + struct exception *x;
  203.   #else    /* Most everyone else (not apollo). */
  204.   int matherr()
  205. + #endif /* AMIGA_LC_5_1 */
  206.   #endif /* apollo */
  207.   #endif /* MSDOS */
  208.   {
  209. diff -r -c gnuplot-orig/parse.c gnuplot/parse.c
  210. *** gnuplot-orig/parse.c    Tue Sep 18 00:56:59 1990
  211. --- gnuplot/parse.c    Thu Jul  4 13:50:58 1991
  212. ***************
  213. *** 361,367 ****
  214. --- 361,371 ----
  215.           argptr = add_action(JUMPNZ);    /* short-circuit if already TRUE */
  216.           aterm();
  217.           argptr->j_arg = at.a_count - savepc;/* offset for jump */
  218. + #ifdef AMIGA_LC_5_1
  219. +         (void) add_action(ABOOL);
  220. + #else
  221.           (void) add_action(BOOL);
  222. + #endif
  223.       }
  224.   }
  225.   
  226. ***************
  227. *** 377,383 ****
  228. --- 381,391 ----
  229.           argptr = add_action(JUMPZ);    /* short-circuit if already FALSE */
  230.           bterm();
  231.           argptr->j_arg = at.a_count - savepc;/* offset for jump */
  232. + #ifdef AMIGA_LC_5_1
  233. +         (void) add_action(ABOOL);
  234. + #else
  235.           (void) add_action(BOOL);
  236. + #endif
  237.       }
  238.   }
  239.   
  240. diff -r -c gnuplot-orig/plot.c gnuplot/plot.c
  241. *** gnuplot-orig/plot.c    Sun Nov 25 17:17:19 1990
  242. --- gnuplot/plot.c    Thu Jul  4 19:59:26 1991
  243. ***************
  244. *** 41,46 ****
  245. --- 41,49 ----
  246.   #ifdef __TURBOC__
  247.   #include <graphics.h>
  248.   #endif
  249. + #ifdef AMIGA_LC_5_1
  250. + #include <proto/dos.h>
  251. + #endif
  252.   
  253.   extern char *getenv(),*strcat(),*strcpy(),*strncpy();
  254.   
  255. ***************
  256. *** 123,139 ****
  257.   #define HOME "GNUPLOT"
  258.   
  259.   #else /* MSDOS */
  260.   
  261.   #define HOME "HOME"
  262.   
  263.   #endif /* MSDOS */
  264.   #endif /* vms */
  265.   
  266.   #ifdef unix
  267.   #define PLOTRC ".gnuplot"
  268. ! #else
  269.   #define PLOTRC "gnuplot.ini"
  270. ! #endif
  271.   
  272.   #ifdef __TURBOC__
  273.   void tc_interrupt()
  274. --- 126,151 ----
  275.   #define HOME "GNUPLOT"
  276.   
  277.   #else /* MSDOS */
  278. + #ifdef AMIGA_LC_5_1
  279.   
  280. + #define HOME "GNUPLOT"
  281. + #else /* AMIGA_LC_5_1 */
  282.   #define HOME "HOME"
  283.   
  284. + #endif /* AMIGA_LC_5_1 */
  285.   #endif /* MSDOS */
  286.   #endif /* vms */
  287.   
  288.   #ifdef unix
  289.   #define PLOTRC ".gnuplot"
  290. ! #else /* unix */
  291. ! #ifdef AMIGA_LC_5_1
  292. ! #define PLOTRC ".gnuplot"
  293. ! #else /* AMIGA_LC_5_1 */
  294.   #define PLOTRC "gnuplot.ini"
  295. ! #endif /* AMIGA_LC_5_1 */
  296. ! #endif /* unix */
  297.   
  298.   #ifdef __TURBOC__
  299.   void tc_interrupt()
  300. ***************
  301. *** 187,193 ****
  302. --- 199,210 ----
  303.        interactive = FALSE;
  304.        init_terminal();        /* can set term type if it likes */
  305.   
  306. + #ifdef AMIGA_LC_5_1
  307. +      if (IsInteractive(Input()) == DOSTRUE) interactive = TRUE;
  308. +      else interactive = FALSE;
  309. + #else
  310.        interactive = isatty(fileno(stdin));
  311. + #endif
  312.        if (argc > 1)
  313.         interactive = FALSE;
  314.   
  315. ***************
  316. *** 267,275 ****
  317.       /* Look for a gnuplot init file in . or home directory */
  318.   #ifdef vms
  319.       (void) strcpy(home,HOME);
  320. ! #else
  321.       (void) strcat(strcpy(home,getenv(HOME)),"/");
  322. ! #endif                    /* vms */
  323.   #ifdef NOCWDRC
  324.       /* inhibit check of init file in current directory for security reasons */
  325.       {
  326. --- 284,306 ----
  327.       /* Look for a gnuplot init file in . or home directory */
  328.   #ifdef vms
  329.       (void) strcpy(home,HOME);
  330. ! #else /* vms */
  331. ! #ifdef AMIGA_LC_5_1
  332. !     strcpy(home,getenv(HOME));
  333. !     {
  334. !         int h;
  335. !         h = strlen(home) - 1;
  336. !         if (h >= 0) {
  337. !             if ((home[h] != ':') && (home[h] != '/')) {
  338. !                 home[h] = '/';
  339. !                 home[h+1] = '\0';
  340. !             }
  341. !            }
  342. !     }
  343. ! #else /* AMIGA_LC_5_1 */
  344.       (void) strcat(strcpy(home,getenv(HOME)),"/");
  345. ! #endif /* AMIGA_LC_5_1 */
  346. ! #endif /* vms */
  347.   #ifdef NOCWDRC
  348.       /* inhibit check of init file in current directory for security reasons */
  349.       {
  350. diff -r -c gnuplot-orig/plot.h gnuplot/plot.h
  351. *** gnuplot-orig/plot.h    Mon Mar 26 17:59:10 1990
  352. --- gnuplot/plot.h    Thu Jul  4 13:54:26 1991
  353. ***************
  354. *** 30,36 ****
  355. --- 30,40 ----
  356.   
  357.   #define PROGRAM "G N U P L O T"
  358.   #define PROMPT "gnuplot> "
  359. + #ifdef AMIGA_LC_5_1
  360. + #define SHELL "NewShell"
  361. + #else
  362.   #define SHELL "/bin/sh"        /* used if SHELL env variable not set */
  363. + #endif
  364.   
  365.   #define SAMPLES 160        /* default number of samples for a plot */
  366.   #define ZERO    1e-8        /* default for 'zero' set option */
  367. ***************
  368. *** 75,80 ****
  369. --- 79,89 ----
  370.   #endif
  371.   
  372.   
  373. + #ifdef AMIGA_LC_5_1
  374. + #define OS "Amiga "
  375. + #endif
  376.   #ifndef OS
  377.   #define OS ""
  378.   #endif
  379. ***************
  380. *** 162,174 ****
  381.   typedef int (*FUNC_PTR)();
  382.   #endif
  383.   
  384.   enum operators {
  385.       PUSH, PUSHC, PUSHD, CALL, LNOT, BNOT, UMINUS, LOR, LAND, BOR, XOR,
  386.       BAND, EQ, NE, GT, LT, GE, LE, PLUS, MINUS, MULT, DIV, MOD, POWER,
  387.       FACTORIAL, BOOL, JUMP, JUMPZ, JUMPNZ, JTERN, SF_START
  388.   };
  389.   
  390.   #define is_jump(operator) ((operator) >=(int)JUMP && (operator) <(int)SF_START)
  391.   
  392. --- 171,189 ----
  393.   typedef int (*FUNC_PTR)();
  394.   #endif
  395.   
  396. ! #ifdef AMIGA_LC_5_1
  397.   enum operators {
  398.       PUSH, PUSHC, PUSHD, CALL, LNOT, BNOT, UMINUS, LOR, LAND, BOR, XOR,
  399.       BAND, EQ, NE, GT, LT, GE, LE, PLUS, MINUS, MULT, DIV, MOD, POWER,
  400. +     FACTORIAL, ABOOL, JUMP, JUMPZ, JUMPNZ, JTERN, SF_START
  401. + };
  402. + #else
  403. + enum operators {
  404. +     PUSH, PUSHC, PUSHD, CALL, LNOT, BNOT, UMINUS, LOR, LAND, BOR, XOR,
  405. +     BAND, EQ, NE, GT, LT, GE, LE, PLUS, MINUS, MULT, DIV, MOD, POWER,
  406.       FACTORIAL, BOOL, JUMP, JUMPZ, JUMPNZ, JTERN, SF_START
  407.   };
  408. ! #endif
  409.   
  410.   #define is_jump(operator) ((operator) >=(int)JUMP && (operator) <(int)SF_START)
  411.   
  412. diff -r -c gnuplot-orig/scanner.c gnuplot/scanner.c
  413. *** gnuplot-orig/scanner.c    Mon Mar 26 18:01:48 1990
  414. --- gnuplot/scanner.c    Thu Jul  4 13:51:58 1991
  415. ***************
  416. *** 245,251 ****
  417. --- 245,257 ----
  418.   }
  419.   
  420.   #else /* MSDOS */
  421. + #ifdef AMIGA_LC_5_1
  422. + substitute()
  423. + {
  424. +     int_error("substitution not supported by AmigaDOS!",t_num);
  425. + }
  426.   
  427. + #else /* AMIGA_LC_5_1 */
  428.   substitute(str,max)            /* substitute output from ` ` */
  429.   char *str;
  430.   int max;
  431. ***************
  432. *** 303,306 ****
  433. --- 309,313 ----
  434.       (void) strcpy(str,output);                /* now replace ` ` with output */
  435.       screen_ok = FALSE;
  436.   }
  437. + #endif /* AMIGA_LC_5_1 */
  438.   #endif /* MS-DOS */
  439. Common subdirectories: gnuplot-orig/term and gnuplot/term
  440. diff -r -c gnuplot-orig/term.c gnuplot/term.c
  441. *** gnuplot-orig/term.c    Sun Dec  9 18:08:24 1990
  442. --- gnuplot/term.c    Sun Jun 30 16:43:00 1991
  443. ***************
  444. *** 267,273 ****
  445.   #include "term/tek.trm"
  446.   #endif
  447.   
  448. ! #ifdef EPSON    /* bit map types, EPSON, NEC, PROPRINTER, STAR Color */
  449.   #include "term/epson.trm"
  450.   #endif
  451.   
  452. --- 267,273 ----
  453.   #include "term/tek.trm"
  454.   #endif
  455.   
  456. ! #ifdef EPSONP    /* bit map types, EPSONP, NEC, PROPRINTER, STAR Color */
  457.   #include "term/epson.trm"
  458.   #endif
  459.   
  460. ***************
  461. *** 378,383 ****
  462. --- 378,387 ----
  463.   #include "term/x11.trm"
  464.   #endif /* X11 */
  465.   
  466. + #ifdef AMIGATERM
  467. + #include "term/amiga.trm"
  468. + #endif
  469.   /* Dummy functions for unavailable features */
  470.   
  471.   /* change angle of text.  0 is horizontal left to right.
  472. ***************
  473. *** 613,619 ****
  474.          null_justify_text, do_point, do_arrow}
  475.   #endif
  476.   
  477. ! #ifdef EPSON
  478.       ,{"epson_lx800", "Epson LX-800, Star NL-10, NX-1000, PROPRINTER ...",
  479.          EPSONXMAX, EPSONYMAX, EPSONVCHAR, EPSONHCHAR, 
  480.          EPSONVTIC, EPSONHTIC, EPSONinit, EPSONreset, 
  481. --- 617,623 ----
  482.          null_justify_text, do_point, do_arrow}
  483.   #endif
  484.   
  485. ! #ifdef EPSONP
  486.       ,{"epson_lx800", "Epson LX-800, Star NL-10, NX-1000, PROPRINTER ...",
  487.          EPSONXMAX, EPSONYMAX, EPSONVCHAR, EPSONHCHAR, 
  488.          EPSONVTIC, EPSONHTIC, EPSONinit, EPSONreset, 
  489. ***************
  490. *** 926,931 ****
  491. --- 930,944 ----
  492.          X11_linetype, X11_put_text, null_text_angle, 
  493.          X11_justify_text, do_point, do_arrow}
  494.   #endif
  495. + #ifdef AMIGATERM
  496. +     ,{"amiga", "Amiga Custom Screen",
  497. +        AMIGA_XMAX, AMIGA_YMAX, AMIGA_VCHAR, AMIGA_HCHAR, 
  498. +        AMIGA_VTIC, AMIGA_HTIC, AMIGA_init, AMIGA_reset, 
  499. +        AMIGA_text, null_scale, AMIGA_graphics, AMIGA_move, AMIGA_vector,
  500. +        AMIGA_linetype, AMIGA_put_text, null_text_angle, 
  501. +        AMIGA_justify_text, do_point, do_arrow}
  502. + #endif
  503.   };
  504.   
  505.   #define TERMCOUNT (sizeof(term_tbl)/sizeof(struct termentry))
  506. ***************
  507. *** 1057,1062 ****
  508. --- 1070,1079 ----
  509.          if (term_name == (char *)NULL && display != (char *)NULL)
  510.           term_name = "x11";
  511.   #endif /* x11 */
  512. + #ifdef AMIGATERM
  513. +        term_name = "amiga";
  514. + #endif
  515.   
  516.   #ifdef UNIXPC
  517.              if (iswind() == 0) {
  518. diff -r -c gnuplot-orig/term.h gnuplot/term.h
  519. *** gnuplot-orig/term.h    Tue Dec 11 00:41:23 1990
  520. --- gnuplot/term.h    Thu Jul  4 13:50:18 1991
  521. ***************
  522. *** 34,42 ****
  523. --- 34,48 ----
  524.    * LIBS definition. 
  525.    */
  526.   
  527.   /* These terminals are not relevant for MSDOS */
  528.   #ifndef MSDOS
  529.   
  530. + #ifdef AMIGA_LC_5_1
  531. + #define AMIGATERM    /* Amiga custom screen */
  532. + #else /* AMIGA_LC_5_1 */
  533.   #define AED         /* AED 512 and AED 767 */
  534.   #define BITGRAPH    /* BBN BitGraph */
  535.   /* #define CGI         /* SCO CGI */
  536. ***************
  537. *** 53,59 ****
  538.   #define VTTEK       /* VT-like tek40xx emulators */
  539.   /* #define X11         /* X11R4 window system */
  540.   
  541. ! #endif 
  542.   
  543.   /* These terminals can be used on any system */
  544.   #define DXY800A        /* Roland DXY800A plotter */
  545. --- 59,66 ----
  546.   #define VTTEK       /* VT-like tek40xx emulators */
  547.   /* #define X11         /* X11R4 window system */
  548.   
  549. ! #endif /* AMIGA_LC_5_1 */
  550. ! #endif /* MSDOS */
  551.   
  552.   /* These terminals can be used on any system */
  553.   #define DXY800A        /* Roland DXY800A plotter */
  554. ***************
  555. *** 60,66 ****
  556.   #define EEPIC        /* EEPIC-extended LaTeX driver, for EEPIC users */
  557.   #define EMTEX        /* LATEX picture environment with EMTEX specials */
  558.   #define EPS60        /* Epson-style 60-dot per inch printers */
  559. ! #define EPSON        /* Epson LX-800, Star NL-10, NX-1000 and lots of others */
  560.   #define HP2648        /* HP2648, HP2647 */
  561.   #define HP26        /* HP2623A and maybe others */
  562.   #define HP75        /* HP7580, and probably other HPs */
  563. --- 67,73 ----
  564.   #define EEPIC        /* EEPIC-extended LaTeX driver, for EEPIC users */
  565.   #define EMTEX        /* LATEX picture environment with EMTEX specials */
  566.   #define EPS60        /* Epson-style 60-dot per inch printers */
  567. ! #define EPSONP        /* Epson LX-800, Star NL-10, NX-1000 and lots of others */
  568.   #define HP2648        /* HP2648, HP2647 */
  569.   #define HP26        /* HP2623A and maybe others */
  570.   #define HP75        /* HP7580, and probably other HPs */
  571. ***************
  572. *** 80,88 ****
  573.   #ifdef MSDOS
  574.   #ifdef __TURBOC__
  575.   #define ATT6300        /* AT&T 6300 graphics */
  576. ! #else
  577.   #define ATT6300        /* AT&T 6300 graphics */
  578.   #define CORONA      /* Corona graphics 325 */
  579.   #define HERCULES    /* IBM PC/Clone with Hercules graphics board */
  580. ! #endif
  581. ! #endif
  582. --- 87,95 ----
  583.   #ifdef MSDOS
  584.   #ifdef __TURBOC__
  585.   #define ATT6300        /* AT&T 6300 graphics */
  586. ! #else /* __TURBOC__ */
  587.   #define ATT6300        /* AT&T 6300 graphics */
  588.   #define CORONA      /* Corona graphics 325 */
  589.   #define HERCULES    /* IBM PC/Clone with Hercules graphics board */
  590. ! #endif /* __TURBOC__ */
  591. ! #endif /* MSDOS */
  592. Common subdirectories: gnuplot-orig/translate and gnuplot/translate
  593. diff -r -c gnuplot-orig/version.c gnuplot/version.c
  594. *** gnuplot-orig/version.c    Tue Dec 18 17:24:06 1990
  595. --- gnuplot/version.c    Fri Jun 28 16:28:24 1991
  596. ***************
  597. *** 4,9 ****
  598.   
  599.   /* override in Makefile */
  600.   #ifndef CONTACT
  601. ! # define CONTACT "pixar!bug-gnuplot@sun.com";
  602.   #endif
  603.   char bug_email[] = CONTACT;
  604. --- 4,9 ----
  605.   
  606.   /* override in Makefile */
  607.   #ifndef CONTACT
  608. ! # define CONTACT "pixar!bug-gnuplot@sun.com"
  609.   #endif
  610.   char bug_email[] = CONTACT;
  611. diff -r -c gnuplot-orig/docs/doc2ms.c gnuplot/docs/doc2ms.c
  612. *** gnuplot-orig/docs/doc2ms.c    Wed Nov 28 18:02:07 1990
  613. --- gnuplot/docs/doc2ms.c    Thu Jul  4 13:57:40 1991
  614. ***************
  615. *** 22,27 ****
  616. --- 22,30 ----
  617.   
  618.   #include <stdio.h>
  619.   #include <ctype.h>
  620. + #ifdef AMIGA_LC_5_1
  621. + #include <string.h>
  622. + #endif
  623.   
  624.   #define MAX_NAME_LEN    256
  625.   #define MAX_LINE_LEN    256
  626. ***************
  627. *** 158,164 ****
  628. --- 161,177 ----
  629.       int sh_i;
  630.       static int old = 1;
  631.   
  632. + #ifdef AMIGA_LC_5_1
  633. +     (void) sscanf(line,"%d",&sh_i);
  634. +     strcpy(string,strchr(line,' ')+1);
  635. +     {
  636. +       char *p;
  637. +       p = strchr(string,'\n');
  638. +       if (p != NULL) *p = '\0';
  639. +     }
  640. + #else
  641.       (void) sscanf(line,"%d %[^\n]s",&sh_i,string);
  642. + #endif
  643.       
  644.       (void) fprintf(b,".sp %d\n",(sh_i == 1) ? LINE_SKIP : LINE_SKIP-1);
  645.       
  646. diff -r -c gnuplot-orig/docs/doc2tex.c gnuplot/docs/doc2tex.c
  647. *** gnuplot-orig/docs/doc2tex.c    Wed Nov 28 18:02:09 1990
  648. --- gnuplot/docs/doc2tex.c    Thu Jul  4 13:57:56 1991
  649. ***************
  650. *** 19,24 ****
  651. --- 19,27 ----
  652.   
  653.   #include <stdio.h>
  654.   #include <ctype.h>
  655. + #ifdef AMIGA_LC_5_1
  656. + #include <string.h>
  657. + #endif
  658.   
  659.   #define MAX_NAME_LEN    256
  660.   #define MAX_LINE_LEN    256
  661. ***************
  662. *** 140,146 ****
  663. --- 143,159 ----
  664.          (void) fputs("\\end{verbatim}\n",b);
  665.          verb=FALSE;
  666.       } 
  667. + #ifdef AMIGA_LC_5_1
  668. +     (void) sscanf(line,"%d",&sh_i);
  669. +     strcpy(string,strchr(line,' ')+1);
  670. +     {
  671. +       char *p;
  672. +       p = strchr(string,'\n');
  673. +       if (p != NULL) *p = '\0';
  674. +     }
  675. + #else
  676.       (void) sscanf(line,"%d %[^\n]s",&sh_i,string);
  677. + #endif
  678.       switch(sh_i)
  679.        {
  680.           case 1: 
  681. diff -r -c gnuplot-orig/docs/gnuplot.doc gnuplot/docs/gnuplot.doc
  682. *** gnuplot-orig/docs/gnuplot.doc    Wed Nov 28 19:04:53 1990
  683. --- gnuplot/docs/gnuplot.doc    Mon Jul  1 10:55:16 1991
  684. ***************
  685. *** 1325,1331 ****
  686.    not be changed, so 
  687.            set trange [:10]
  688.    changes tmax to 10 without affecting tmin. 
  689. - 3 xtics
  690.   3 variables
  691.   ?show variables
  692.    The `show variables` command lists all user-defined variables and
  693. --- 1325,1330 ----
  694. Common subdirectories: gnuplot-orig/docs/latextut and gnuplot/docs/latextut
  695. diff -r -c gnuplot-orig/term/eepic.trm gnuplot/term/eepic.trm
  696. *** gnuplot-orig/term/eepic.trm    Tue Sep 18 00:58:57 1990
  697. --- gnuplot/term/eepic.trm    Thu Jul  4 13:56:54 1991
  698. ***************
  699. *** 109,115 ****
  700. --- 109,119 ----
  701.   
  702.   
  703.   EEPIC_scale(xs, ys)
  704. + #ifdef AMIGA_LC_5_1
  705. +     double xs, ys;            /* scaling factors */
  706. + #else
  707.       float xs, ys;            /* scaling factors */
  708. + #endif
  709.   {
  710.       register struct termentry *t = &term_tbl[term];
  711.   
  712. diff -r -c gnuplot-orig/term/epson.trm gnuplot/term/epson.trm
  713. *** gnuplot-orig/term/epson.trm    Tue Dec 18 17:14:16 1990
  714. --- gnuplot/term/epson.trm    Fri Jun 28 20:50:42 1991
  715. ***************
  716. *** 34,40 ****
  717.   /* On PC, print using 'copy file /b lpt1:', do NOT use 'print' */
  718.   /* EPSON_init changes outfile to binary mode on PC's */
  719.   
  720. ! #ifdef EPSON
  721.   
  722.   #define EPSONXMAX    512 
  723.   #define EPSONYMAX    384
  724. --- 34,40 ----
  725.   /* On PC, print using 'copy file /b lpt1:', do NOT use 'print' */
  726.   /* EPSON_init changes outfile to binary mode on PC's */
  727.   
  728. ! #ifdef EPSONP
  729.   
  730.   #define EPSONXMAX    512 
  731.   #define EPSONYMAX    384
  732. ***************
  733. *** 107,113 ****
  734.   #endif
  735.   }
  736.   
  737. ! #endif /* EPSON */
  738.   
  739.   
  740.   /* The following NEC CP6 Pinwriter driver uses generic bit mapped graphics
  741. --- 107,113 ----
  742.   #endif
  743.   }
  744.   
  745. ! #endif /* EPSONP */
  746.   
  747.   
  748.   /* The following NEC CP6 Pinwriter driver uses generic bit mapped graphics
  749. diff -r -c gnuplot-orig/term/latex.trm gnuplot/term/latex.trm
  750. *** gnuplot-orig/term/latex.trm    Tue Sep 18 00:59:10 1990
  751. --- gnuplot/term/latex.trm    Thu Jul  4 13:56:38 1991
  752. ***************
  753. *** 126,132 ****
  754. --- 126,136 ----
  755.   
  756.   
  757.   LATEX_scale(xs, ys)
  758. + #ifdef AMIGA_LC_5_1
  759. +     double xs, ys;            /* scaling factors */
  760. + #else
  761.       float xs, ys;            /* scaling factors */
  762. + #endif
  763.   {
  764.       register struct termentry *t = &term_tbl[term];
  765.   
  766. ***************
  767. *** 265,273 ****
  768. --- 269,285 ----
  769.       } else {
  770.          code = (LATEX_moved ? 0 : 1); /* no combine after move */
  771.          if (x1 == x2)        /* vertical line - special case */
  772. + #ifdef AMIGA_LC_5_1
  773. +         LATEX_rule(code, (double)x1, (double)y1, (double)LATEX_dotsize,(double)y2-y1);
  774. + #else
  775.           LATEX_rule(code, (float)x1, (float)y1, LATEX_dotsize, (float)y2-y1);
  776. + #endif
  777.          else if (y1 == y2)    /* horizontal line - special case */
  778. + #ifdef AMIGA_LC_5_1
  779. +         LATEX_rule(code, (double)x1, (double)y1, (double)x2-x1, (double)LATEX_dotsize);
  780. + #else
  781.           LATEX_rule(code, (float)x1, (float)y1, (float)x2-x1, LATEX_dotsize);
  782. + #endif
  783.          else {
  784.             slope = ((float)y2-y1)/((float)x2-x1);
  785.             if (abs(slope) <= 1.0) {
  786. ***************
  787. *** 313,321 ****
  788. --- 325,339 ----
  789.   static void
  790.   LATEX_rule(code, x,y, width, height)
  791.       int code;                /* how do we treat this rule? */
  792. + #ifdef AMIGA_LC_5_1
  793. +     double x, y;
  794. +     double width;
  795. +     double height;
  796. + #else
  797.       float x, y;
  798.       float width;
  799.       float height;
  800. + #endif
  801.   {  
  802.       static float lastx, lasty;
  803.       static float lastw, lasth;
  804. diff -r -c gnuplot-orig/translate/internal.c gnuplot/translate/internal.c
  805. *** gnuplot-orig/translate/internal.c    Mon Mar 26 18:04:07 1990
  806. --- gnuplot/translate/internal.c    Thu Jul  4 13:59:08 1991
  807. ***************
  808. *** 26,36 ****
  809.   struct value *pop(), *complex(), *integer();
  810.   double magnitude(), angle(), real();
  811.   
  812. ! struct value stack[STACK_DEPTH];
  813.   
  814.   int s_p = -1;   /* stack pointer */
  815.   
  816.   #ifndef MSDOS /* suggested by "J.D. McDonald " <mcdonald@uxe.cso.uiuc.edu> */
  817.   /*
  818.    * System V and MSC 4.0 call this when they wants to print an error message.
  819.    * Don't!
  820. --- 26,43 ----
  821.   struct value *pop(), *complex(), *integer();
  822.   double magnitude(), angle(), real();
  823.   
  824. ! extern struct value stack[STACK_DEPTH];
  825.   
  826.   int s_p = -1;   /* stack pointer */
  827.   
  828.   #ifndef MSDOS /* suggested by "J.D. McDonald " <mcdonald@uxe.cso.uiuc.edu> */
  829. + #ifdef AMIGA_LC_5_1
  830. + int matherr(x)
  831. + struct exception *x;
  832. + {
  833. +     return (undefined = TRUE);        /* don't print error message */
  834. + }
  835. + #else /* AMIGA_LC_5_1 */
  836.   /*
  837.    * System V and MSC 4.0 call this when they wants to print an error message.
  838.    * Don't!
  839. ***************
  840. *** 39,44 ****
  841. --- 46,52 ----
  842.   {
  843.       return (undefined = TRUE);        /* don't print error message */
  844.   }
  845. + #endif /* AMIGA_LC_5_1 */
  846.   #endif MSDOS
  847.   
  848.   reset_stack()
  849. diff -r -c gnuplot-orig/translate/scanner.c gnuplot/translate/scanner.c
  850. *** gnuplot-orig/translate/scanner.c    Mon Mar 26 18:04:18 1990
  851. --- gnuplot/translate/scanner.c    Thu Jul  4 13:58:48 1991
  852. ***************
  853. *** 231,237 ****
  854. --- 231,244 ----
  855.   }
  856.   
  857.   #else /* MSDOS */
  858. + #ifdef AMIGA_LC_5_1
  859.   
  860. + substitute()
  861. + {
  862. +     int_error("substitution not supported by AmigaDOS!",t_num);
  863. + }
  864. + #else /* AMIGA_LC_5_1 */
  865.   substitute(str,max)            /* substitute output from ` ` */
  866.   char *str;
  867.   int max;
  868. ***************
  869. *** 287,290 ****
  870. --- 294,298 ----
  871.       (void) strcpy(output+i,last+1);        /* tack on rest of line to output */
  872.       (void) strcpy(str,output);                /* now replace ` ` with output */
  873.   }
  874. + #endif /* AMIGA_LC_5_1 */
  875.   #endif /* MS-DOS */
  876.