Thread View: net.micro.mac
3 messages
3 total messages
Started by Tom Phillips
Thu, 21 Mar 1985 03:37
SKEL for megamax 2.0
Author: Tom Phillips
Date: Thu, 21 Mar 1985 03:37
Date: Thu, 21 Mar 1985 03:37
17 lines
1043 bytes
1043 bytes
*** REPLACE THIS LINE WITH YOUR CARNAGE ***
Dear friends...
A short note pertaining to the use of SKEL.C (posted in net.sources.mac)
with the new (v2.0) Megamax-C compiler.
The qdvars.h file now is structured so there is one global, "qdvars", that
contains all of the qdvars.
You will have to fix the references to white, black, dkgray, and screenbits.
They will now read qdvars.white, qdvars.black, etc...
--
Tom (Flip) Phillips
The Ohio State University
osu-eddie!tepj
Re: SKEL for megamax 2.0
Author: Joel West
Date: Thu, 21 Mar 1985 15:39
Date: Thu, 21 Mar 1985 15:39
62 lines
2456 bytes
2456 bytes
> The qdvars.h file now is structured so there is one global, "qdvars", that
> contains all of the qdvars.
>
> You will have to fix the references to white, black, dkgray, and screenbits.
> They will now read qdvars.white, qdvars.black, etc...
>
> --
> Tom (Flip) Phillips
> The Ohio State University
> osu-eddie!tepj
NO NO NO NO NO!!!
I have already converted the qdvars.h file for use under 2.0. For whatever
reason, the changes made by the Megamax folks put the burden back on you.
They force you to learn a non-standard toolbox interface. (***FLAME WARNING***)
This is wrong.
If you look at your <qdvars.h> you will note that even they know this.
Look at "theport" which is used all the time. Instead they declare it as
typedef struct {
...
grafptr qdtheport;
} qdvar;
#define theport (qdvars.qdtheport)
So instead, when you use the standard QuickDraw terminology "theport" that's
what you'll get. DO the same for the standard patterns, screenbits, and
randseed:
typdef struct {
...
long qdrandseed;
bitmap qdscrnbits;
...
pattern qddkgray;
pattern qdltgray;
pattern qdgray;
pattern qdblack;
pattern qdwhite;
#define randseed (qdvars.qdrandseed)
#define screenbits (qdvars.qdscrnbits)
#define dkgray (qdvars.qddkgray)
and so on
This way, the skel.c will almost work (except for the previously
noted C-string problem) without any mucking of the source. More
importantly, standard Pascal and C examples from other systems --
including Apple's own demos -- will port with much less hassle.
And if Megamax knows what they're doing, that's what the <qdvars.h>
will look like in 2.1.
--
Joel West (619) 457-9681
CACI, Inc. - Federal 3344 N. Torrey Pines Ct La Jolla 92037
jww@bonnie.UUCP (ihnp4!bonnie!jww)
westjw@nosc.ARPA
"The best is the enemy of the good" - A. Mullarney
Re: Re: SKEL for megamax 2.0
Author: Tom Phillips
Date: Mon, 25 Mar 1985 03:38
Date: Mon, 25 Mar 1985 03:38
39 lines
1687 bytes
1687 bytes
> > The qdvars.h file now is structured so there is one global, "qdvars", that
> > contains all of the qdvars.
> >
> > You will have to fix the references to white, black, dkgray, and screenbits.
> > They will now read qdvars.white, qdvars.black, etc...
> >
> > --
>
> NO NO NO NO NO!!!
>
> This is wrong.
>
> If you look at your <qdvars.h> you will note that even they know this.
> Look at "theport" which is used all the time. Instead they declare it as
>
> typedef struct {
> ...
> grafptr qdtheport;
> ...
>
> And if Megamax knows what they're doing, that's what the <qdvars.h>
> will look like in 2.1.
> --
> Joel West (619) 457-9681
> CACI, Inc. - Federal 3344 N. Torrey Pines Ct La Jolla 92037
> jww@bonnie.UUCP (ihnp4!bonnie!jww)> westjw@nosc.ARPA
>
ok, so I'm sorry. I didnt write it... I was just advising as to a needed
fix. I sent a flame off to megemax for you...
Granted, the solution was not an optimal solution, just a solution.
flip
--
Tom (Flip) Phillips
The Ohio State University
osu-eddie!tepj
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads