Skip to content

Commit

Permalink
Merge pull request #383 from Don-Ward/Remove-MacGraph-Take2
Browse files Browse the repository at this point in the history
Remove MacGraph configuration.
  • Loading branch information
Jafaral authored Mar 9, 2024
2 parents b71f756 + cda7fd3 commit 5ef26d0
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 2,422 deletions.
4 changes: 2 additions & 2 deletions doc/ib/appH.tex
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ \chapter{Glossary of Defined Symbols}
LONG64 & IU & C compiler's long is 64 bits (xpm) \\
LoopThreshold & U & number of tended var initializations iconc will unroll \\
M\_PI & IU & constant value of Pi \\
MacGraph & U & build graphics using (legacy pre OSX) Mac graphics (should delete) \\
MACGRAPH\_H & IU & macgraph.h has been included \\
{\gr MacGraph} & {\gr U} &{\gr build graphics using (legacy pre OSX) Mac graphics (should delete)} \\
{\gr MACGRAPH\_H} & {\gr IU} & {\gr macgraph.h has been included} \\
{\gr MACINTOSH} & {\gr all} & {\gr build on legacy Mac platform (delete?)} \\
MacOS & U & build on modern UNIX-based Mac platform \\
max & all & compute maximum of x and y \\
Expand Down
17 changes: 6 additions & 11 deletions src/h/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,8 @@
#define ConsoleWindow 1
#endif /* NTConsole */
#endif /* MSWindows */

#ifdef MacGraph
#undef Graphics
#define Graphics 1
#endif /* MacGraph */
#endif



#ifdef Graphics
#ifndef NoXpmFormat
#if UNIX
Expand All @@ -446,10 +439,8 @@
#endif /* NoXpmFormat */

#ifndef MSWindows
#ifndef MacGraph
#undef XWindows
#define XWindows 1
#endif /* MacGraph */
#undef XWindows
#define XWindows 1
#endif /* MSWindows */

#undef LineCodes
Expand Down Expand Up @@ -1026,3 +1017,7 @@ Deliberate Syntax Error
#if defined(MACINTOSH)
#error The MACINTOSH configuration option is no longer supported (since 7 Mar 2024)
#endif /* MACINTOSH */

#if defined(MacGraph)
#error The MacGraph configuration option is no longer supported (since 8 Mar 2024)
#endif /* MacGraph */
59 changes: 0 additions & 59 deletions src/h/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

#define MAXDISPLAYNAME 128

#ifdef MacGraph
#include "::h:macgraph.h"
#endif /* MacGraph */

#ifdef XWindows
#include "../h/xwin.h"
#endif /* XWindows */
Expand Down Expand Up @@ -241,12 +237,6 @@ typedef struct _wfont {
char type;
int size;
void *fonts;
#ifdef MacGraph
short fontNum;
Style fontStyle;
int fontSize;
FontInfo fInfo; /* I-173 */
#endif /* MacGraph */
#ifdef XWindows
char * name; /* name for WAttrib and fontsearch */
int ascent; /* font dimensions */
Expand Down Expand Up @@ -323,25 +313,6 @@ struct imgmem {
#define PCH2 ',' /* punctuation character */


#ifdef MacGraph
typedef struct _wctype {
Pattern bkPat;
Pattern fillPat;
Point pnLoc;
Point pnSize;
short pnMode;
Pattern pnPat;
short txFont;
Style txFace;
short txMode;
short txSize;
Fixed spExtra;
RGBColor fgColor;
RGBColor bgColor;
} ContextType, *ContextPtrType;
#endif /* MacGraph */


/*
* Texture management requires that we be able to lookup and reuse
* existing textures, as well as support dynamic window-based textures.
Expand Down Expand Up @@ -460,9 +431,6 @@ typedef struct _wcontext {
int leading; /* inter-line leading */
#endif /* GraphicsGL */

#ifdef MacGraph
ContextPtrType contextPtr;
#endif /* MacGraph */
wdp display;
#ifdef XWindows
GC gc; /* X graphics context */
Expand Down Expand Up @@ -598,19 +566,6 @@ typedef struct _wstate {
struct descrip filep, listp; /* icon values for this window */
struct wbind_list *children;
struct _wbinding *parent;
#ifdef MacGraph
WindowPtr theWindow; /* pointer to the window */
PicHandle windowPic; /* handle to backing pixmap */
GWorldPtr offScreenGWorld; /* offscreen graphics world */
CGrafPtr origPort;
GDHandle origDev;
PixMapHandle offScreenPMHandle;
Rect sourceRect;
Rect destRect;
Rect GWorldRect;
Boolean lockOK;
Boolean visible;
#endif /* MacGraph */
wdp display;

#ifdef GraphicsGL
Expand Down Expand Up @@ -708,20 +663,6 @@ struct wbind_list {
struct wbind_list *next;
};

#ifdef MacGraph
typedef struct
{
Boolean wasDown;
uword when;
Point where;
int whichButton;
int modKey;
wsp ws;
} MouseInfoType;
#endif /* MacGraph */



/*
* Gamma Correction value to compensate for nonlinear monitor color response
*/
Expand Down
9 changes: 0 additions & 9 deletions src/h/grttin.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,6 @@ typedef int va_list, siptr;
#endif /* HAVE_LIBFREETYPE */
#endif /* GraphicsGL */

#ifdef MacGraph
typedef int Str255, Point, StandardFileReply, SFTypeList, Ptr, PixMap;
typedef int Boolean, Rect, PolyHandle, EventRecord, wsp, MouseInfoType;
typedef int Handle, MenuHandle, OSErr, WindowPtr, GWorldFlags;
typedef int PaletteHandle, BitMap, RgnHandle, QDErr, GWorldPtr;
typedef int GrafPtr, GDHandle, PixMapHandle, OSType, FInfo;
typedef int IOParam, DialogPtr, ControlHandle, StringHandle, Size;
#endif /* MacGraph */

#ifdef XWindows
typedef int Atom, Time, XSelectionEvent, XErrorEvent, XErrorHandler;
typedef int XGCValues, XColor, XFontStruct, XWindowAttributes, XEvent;
Expand Down
204 changes: 0 additions & 204 deletions src/h/macgraph.h

This file was deleted.

Loading

0 comments on commit 5ef26d0

Please sign in to comment.