[comp.sys.amiga.tech] OpenIntuition

stan@hpcvca.CV.HP.COM (Stan Gibbs) (07/07/89)

By chance I managed to use "OpenIntuition()" as a function name in one of
my programs, not realizing that it was indeed an intuition.library function.

Compiling with Lattice 5.02 and including the "proto/intuition.h" header
file gave me, naturally, the #pragma expansion of OpenIntuition(). (The
actual definition of MY OpenIntuition() was in another file which I did
not compile with the above include file, so the compiler didn't complain.)
((Lesson: always compile auxiliary files with the same headers to assure
the same symbolic environment!))

This led to instant GURUs, as can be expected, since "_IntuitionBase" was
undefined in my main program.

My question is:  What does the intuition.library function "OpenIntuition()"
do?  I can find reference to it in the RKM only in the offsets tables for the
library.  It does not appear in any of the function description sections
or in the function index of the "Includes and Autodocs" RKM.


============================================================================
| Stan Gibbs                                                               |
| stan@cv.hp.com || {hplabs,tektronix}!hp-pcd!stan                         |
============================================================================

jimm@amiga.UUCP (Jim Mackraz) (07/10/89)

In article <1410022@hpcvca.CV.HP.COM> stan@hpcvca.CV.HP.COM (Stan Gibbs) writes:

)My question is:  What does the intuition.library function "OpenIntuition()" do?

It appears to be a direct entry point to Intuition's Open function (the one
that gets called when you call OpenLibrary().  Undoubtedly a relic.  Perhaps
in the early days this entry point, together with a practice of stashing
the pointer to IntuitionBase at some secret low-memory location, allowed
Intuition to be init'd and tested in times that the OpenLibrary() code
was in a state of flux.

Archeology.

	jimm
-- 
Jim Mackraz, I and I Computing	   	"... the signs are very ominous,
{cbmvax,well,oliveb}!amiga!jimm          and a chill wind blows."
							- Justice Blackmun
Opinions are my own.  Comments are not to be taken as Commodore official policy.