[comp.sys.mac.programmer] CDEV/INIT file type...

sonenbli@oxy.edu (Andrew D. Sonenblick) (12/17/89)

     Howdy Mac Programming World!  I have been working on a CDEV/INIT and
have encountered one problem: when the file type is cdev, it appears in the
control panel, works there, etc., but fails to be loaded and run as an INIT
by INIT 31.  If my file type is INIT, the INIT runs, but it no longer shows
up in the Control Panel.  Any one have any ideas or suggestions or solutions
or comments or a new IIci to give to me or maybe just a bunch of money?  I
thought that might get your attentions.  Anything suggested is apprecieated.
Thanks much, Ando Moon.  Sonenbli@oxy.edu

tim@hoptoad.uucp (Tim Maroney) (12/20/89)

In article <67228@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes:
>     Howdy Mac Programming World!  I have been working on a CDEV/INIT and
>have encountered one problem: when the file type is cdev, it appears in the
>control panel, works there, etc., but fails to be loaded and run as an INIT
>by INIT 31.  If my file type is INIT, the INIT runs, but it no longer shows
>up in the Control Panel.

Tres bizarre.  I have to think you must be misinterpreting your clues.
INIT 31 doesn't really distinguish between the file types; I was just
looking at this the other day, and the only code in INIT 31 that even
looks at the file type is:

	CMPI.L	#'INIT',D0
	BEQ.S	oktype
	CMPI.L	#'cdev',D0
	BEQ.S	oktype
	CMPI.L	#'RDEV',D0
	BNE.S	loop
oktype


That is, the only check is the equivalent of:

if (type != 'INIT' && type != 'cdev' && type != 'RDEV') continue;

It's well-nigh impossible for this code to treat the files differently
depending on type, provided the type is one of the three.  There are no
other file type checks in the resource.  System 6.0.3.
-- 
Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com

"God must be a Boogie Man." -- Joni Mitchell