--- os2sdk/demos/apps/mandel/mandel.c 2018/08/09 12:25:13 1.1 +++ os2sdk/demos/apps/mandel/mandel.c 2018/08/09 12:25:58 1.1.1.2 @@ -1,5 +1,6 @@ /*** Mandel.c - compute and display Mandelbrot set - * R. A. Garmoe 86/12/10 + * + * Created by Microsoft Corp. 1986 */ @@ -74,17 +75,14 @@ * long (loop + 1) counters for histogram values */ +#define INCL_DOSDEVICES - - +#include #include -#include +#include int mandinter (); -#define FALSE 0 -#define TRUE ~FALSE - #define MAXREAL 2000 /* maximum number of points in line */ #define MAXLOOP 1000 /* maximum number of iterations */ @@ -111,7 +109,7 @@ struct cmplx { -char fp287; /* 287 processor status from DOSDEVCONFIG */ +char fp287; /* 287 processor status from DosDevConfig */ char pmand[60] = "mandel.cnt"; /* file name for loop counts */ FILE *fmand; @@ -149,7 +147,7 @@ char **argv; int *rl; long position; - if (DOSDEVCONFIG ((char far *)&fp287, 3, 0) != 0) { + if (DosDevConfig (&fp287, 3, 0) != 0) { printf ("Unable to get fp processor presence flag\n"); exit (1); } @@ -314,7 +312,7 @@ char **argv; break; case 'd': - /* specify default device paramters */ + /* specify default device parameters */ argv++; if (strcmp (*argv, "CGA") == 0) arg_device = CGA_DEV;