[comp.sys.amiga.programmer] Where is MakeID

fmonro@gara.une.oz.au (F J Monro) (05/17/91)

I have been trying to get a RKM example program working. It reads in and
plays an iff 8svx sample.

The trouble is that it uses iff.h, and I only have a paper copy.  I have 
typed in the #defines and tpyedefs that it appears to need, but there is a
function, MakeID() which needs to be defined, and I cant find it in iff.h.

Is it there?  If not where is it??

Id be gratefull for any help. Thanks!


-(Che) Franz Joseph Monro,                       | At UNE - The University of 
fmonro@gara.une.oz.au | fmonro@neumann.une.oz.au | New England, Armidale Aust.  

dix@clinet.fi (Risto Kaivola) (05/18/91)

[ Query on the location of the definition for MakeID() deleted ]
 
I don't know whether this is in fact in some include file, but here
is a definition I have found. MakeID() is not a function but a macro.
It's purpose is to build long word identifiers for IFF chunks.
The following definition is from "Amiga Rom Kernel Reference Manual -
Includes & Autodocs (revised and updated)", for KS 1.3, appendix A:
[
/* ID typedef and builder for 68000 Lattice C. */
typedef LONG ID;    /* 4 chars in ' ' through '~' */
#define MakeID(a,b,c,d)  (  (a)<<24 |  (b)<<16 | (c)<<8 | (d) )
]
I hope this is of some help to you.

Risto
-- 
Risto Kaivola (dix@clinet.fi) or (Risto.Kaivola@f123.n220.z2.FIDONET.ORG)