mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2024-12-28 01:29:20 +00:00
4325cdcc78
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included. The Tools directory, containing mostly junk, is also excluded.
38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
/*
|
|
File: HList.h
|
|
|
|
Contains: Interface definition for routines in HList.c
|
|
|
|
Written by: Phil Goldman
|
|
|
|
Copyright: © 1988-1991 by Apple Computer, Inc., all rights reserved.
|
|
|
|
Change History (most recent first):
|
|
|
|
<0> 5/12/88 PYG New Today.
|
|
|
|
*/
|
|
|
|
#ifndef __HLIST__
|
|
#define __HLIST__
|
|
|
|
/* HList types */
|
|
typedef unsigned long HListElem, *HListPtr, **HListHdl;
|
|
typedef void (HListElemFnc)(HListElem hListElem);
|
|
|
|
/* Macros that should be inline functions */
|
|
#define CreateHList(initialSlopSlots) ((HListHdl)NewHandleClear((initialSlopSlots) * sizeof(HListElem)))
|
|
#define HListExists(hListHdl) ((hListHdl) != nil)
|
|
#define HListCount(hListHdl) (((u_size)(GetHandleSize(hListHdl)))/sizeof(HListElem))
|
|
|
|
/* Function headers */
|
|
OSErr AddToHList(HListHdl, HListElem);
|
|
OSErr RemoveFromHList(HListHdl, HListElem);
|
|
void DestroyHList(HListHdl);
|
|
HListElem RecoverHListElem(HListHdl, Ptr);
|
|
void ApplyToHListElems(HListHdl, HListElemFnc *);
|
|
OSErr InHList(HListHdl, HListElem);
|
|
HListElem GetFirstHListElem(HListHdl);
|
|
|
|
#endif __HLIST__
|