Skip to content

Commit 6001894

Browse files
authored
Merge pull request uniconproject#383 from Don-Ward/Remove-MacGraph-Take2
Remove MacGraph configuration.
2 parents 150ec37 + 150ed84 commit 6001894

File tree

10 files changed

+9
-2422
lines changed

10 files changed

+9
-2422
lines changed

doc/ib/appH.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ \chapter{Glossary of Defined Symbols}
271271
LONG64 & IU & C compiler's long is 64 bits (xpm) \\
272272
LoopThreshold & U & number of tended var initializations iconc will unroll \\
273273
M\_PI & IU & constant value of Pi \\
274-
MacGraph & U & build graphics using (legacy pre OSX) Mac graphics (should delete) \\
275-
MACGRAPH\_H & IU & macgraph.h has been included \\
274+
{\gr MacGraph} & {\gr U} &{\gr build graphics using (legacy pre OSX) Mac graphics (should delete)} \\
275+
{\gr MACGRAPH\_H} & {\gr IU} & {\gr macgraph.h has been included} \\
276276
{\gr MACINTOSH} & {\gr all} & {\gr build on legacy Mac platform (delete?)} \\
277277
MacOS & U & build on modern UNIX-based Mac platform \\
278278
max & all & compute maximum of x and y \\

src/h/config.h

+6-11
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,8 @@
428428
#define ConsoleWindow 1
429429
#endif /* NTConsole */
430430
#endif /* MSWindows */
431-
432-
#ifdef MacGraph
433-
#undef Graphics
434-
#define Graphics 1
435-
#endif /* MacGraph */
436431
#endif
437432

438-
439-
440433
#ifdef Graphics
441434
#ifndef NoXpmFormat
442435
#if UNIX
@@ -446,10 +439,8 @@
446439
#endif /* NoXpmFormat */
447440

448441
#ifndef MSWindows
449-
#ifndef MacGraph
450-
#undef XWindows
451-
#define XWindows 1
452-
#endif /* MacGraph */
442+
#undef XWindows
443+
#define XWindows 1
453444
#endif /* MSWindows */
454445

455446
#undef LineCodes
@@ -1026,3 +1017,7 @@ Deliberate Syntax Error
10261017
#if defined(MACINTOSH)
10271018
#error The MACINTOSH configuration option is no longer supported (since 7 Mar 2024)
10281019
#endif /* MACINTOSH */
1020+
1021+
#if defined(MacGraph)
1022+
#error The MacGraph configuration option is no longer supported (since 8 Mar 2024)
1023+
#endif /* MacGraph */

src/h/graphics.h

-59
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
#define MAXDISPLAYNAME 128
66

7-
#ifdef MacGraph
8-
#include "::h:macgraph.h"
9-
#endif /* MacGraph */
10-
117
#ifdef XWindows
128
#include "../h/xwin.h"
139
#endif /* XWindows */
@@ -241,12 +237,6 @@ typedef struct _wfont {
241237
char type;
242238
int size;
243239
void *fonts;
244-
#ifdef MacGraph
245-
short fontNum;
246-
Style fontStyle;
247-
int fontSize;
248-
FontInfo fInfo; /* I-173 */
249-
#endif /* MacGraph */
250240
#ifdef XWindows
251241
char * name; /* name for WAttrib and fontsearch */
252242
int ascent; /* font dimensions */
@@ -323,25 +313,6 @@ struct imgmem {
323313
#define PCH2 ',' /* punctuation character */
324314

325315

326-
#ifdef MacGraph
327-
typedef struct _wctype {
328-
Pattern bkPat;
329-
Pattern fillPat;
330-
Point pnLoc;
331-
Point pnSize;
332-
short pnMode;
333-
Pattern pnPat;
334-
short txFont;
335-
Style txFace;
336-
short txMode;
337-
short txSize;
338-
Fixed spExtra;
339-
RGBColor fgColor;
340-
RGBColor bgColor;
341-
} ContextType, *ContextPtrType;
342-
#endif /* MacGraph */
343-
344-
345316
/*
346317
* Texture management requires that we be able to lookup and reuse
347318
* existing textures, as well as support dynamic window-based textures.
@@ -460,9 +431,6 @@ typedef struct _wcontext {
460431
int leading; /* inter-line leading */
461432
#endif /* GraphicsGL */
462433

463-
#ifdef MacGraph
464-
ContextPtrType contextPtr;
465-
#endif /* MacGraph */
466434
wdp display;
467435
#ifdef XWindows
468436
GC gc; /* X graphics context */
@@ -598,19 +566,6 @@ typedef struct _wstate {
598566
struct descrip filep, listp; /* icon values for this window */
599567
struct wbind_list *children;
600568
struct _wbinding *parent;
601-
#ifdef MacGraph
602-
WindowPtr theWindow; /* pointer to the window */
603-
PicHandle windowPic; /* handle to backing pixmap */
604-
GWorldPtr offScreenGWorld; /* offscreen graphics world */
605-
CGrafPtr origPort;
606-
GDHandle origDev;
607-
PixMapHandle offScreenPMHandle;
608-
Rect sourceRect;
609-
Rect destRect;
610-
Rect GWorldRect;
611-
Boolean lockOK;
612-
Boolean visible;
613-
#endif /* MacGraph */
614569
wdp display;
615570

616571
#ifdef GraphicsGL
@@ -708,20 +663,6 @@ struct wbind_list {
708663
struct wbind_list *next;
709664
};
710665

711-
#ifdef MacGraph
712-
typedef struct
713-
{
714-
Boolean wasDown;
715-
uword when;
716-
Point where;
717-
int whichButton;
718-
int modKey;
719-
wsp ws;
720-
} MouseInfoType;
721-
#endif /* MacGraph */
722-
723-
724-
725666
/*
726667
* Gamma Correction value to compensate for nonlinear monitor color response
727668
*/

src/h/grttin.h

-9
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,6 @@ typedef int va_list, siptr;
394394
#endif /* HAVE_LIBFREETYPE */
395395
#endif /* GraphicsGL */
396396

397-
#ifdef MacGraph
398-
typedef int Str255, Point, StandardFileReply, SFTypeList, Ptr, PixMap;
399-
typedef int Boolean, Rect, PolyHandle, EventRecord, wsp, MouseInfoType;
400-
typedef int Handle, MenuHandle, OSErr, WindowPtr, GWorldFlags;
401-
typedef int PaletteHandle, BitMap, RgnHandle, QDErr, GWorldPtr;
402-
typedef int GrafPtr, GDHandle, PixMapHandle, OSType, FInfo;
403-
typedef int IOParam, DialogPtr, ControlHandle, StringHandle, Size;
404-
#endif /* MacGraph */
405-
406397
#ifdef XWindows
407398
typedef int Atom, Time, XSelectionEvent, XErrorEvent, XErrorHandler;
408399
typedef int XGCValues, XColor, XFontStruct, XWindowAttributes, XEvent;

src/h/macgraph.h

-204
This file was deleted.

0 commit comments

Comments
 (0)