; ; File: CatSrchPriv.a ; ; Contains: Private equates for CatSearch ; ; Written by: Dave N. Feldman ; ; Copyright: © 1989-1991 by Apple Computer, Inc., all rights reserved. ; ; Change History (most recent first): ; ; <8> 9/13/91 JSM Cleanup header. ; <7> 2/25/91 dnf dho,#83584: Include the fsSBNegate bit in the search criteria ; that don't require ioSpec2 to be non-nil. ; <6> 10/30/90 dnf (with dba) Add timerFired bit to CSSR.flags ; <5> 8/28/90 dnf Rename ioSpecBits to ioSearchBits, turn debugging off ; <4> 6/2/90 dnf Add flag for type of current record ; <3> 2/26/90 dnf Add timerWasInstalled bit ; <2> 1/9/90 dnf Add inclNames bit to CSSR.flags ; <1.4> 8/26/89 dnf Add flags bit for buffer on stack ; <1.3> 7/31/89 dnf Cleaned up some comments ; <1.2> 7/6/89 dnf Changed param block to support read buffer. ; <1.1> 5/31/89 dnf Got rid of fsSBxxx equates. They've been moved to HFS70Equ.a ; <1.0> 5/30/89 dnf Integrate CatSearch, FileID's and Desktop Database Mgr into one ; ptch ; ; ; Debugging flag ; CSDebug equ 0 ; set to 1 for debug labels ; ; These macros generate variable length symbol names for Macsbug. The first ; argument is the routine name, in quotes. 'Foo', for example. The second is an ; integer indicating the amount of constant data. This number is used by macsbug ; to figure out where the next routine starts. ; macro _CSDebug &routineName, &dataSize if CSDebug then dc.b $80 ; i.e variable length string, next byte has length dc.b &len(&routineName)-2 ; length of string (-2 for the quotes around it) dc.b &routineName ; align 2 dc.w &dataSize ; size (bytes) of constant data endif endm ; same as above, but adds an rts for routines which don't end with one. macro _CSDebugRts &routineName, &dataSize if CSDebug then rts ; many DT routines don't end w/rts, so add one in. dc.b $80 ; i.e variable length string, next byte has length dc.b &len(&routineName)-2 ; length of string (-2 for the quotes around it) dc.b &routineName ; align 2 dc.w &dataSize ; size (bytes) of constant data endif endm ioLockFlg equ 0 ; bit # of the locked bit in attributes PBFilDist equ ioFlPyLen-filPyLen ; the distance between an offset for a value ; in a CInfoPBRec and that value on disk in ; a file record in the catalog. maskPartialName equ 1< maskNotSearchInfo2 equ ~(maskPartialName | maskFullName | maskNegate) ; <7> ; bits that don't require an ioSearchInfo2 record to be present maskLengthBits equ ((1< timerWasInstalled equ 4 ; set if a timer task was installed with _InsTime isFile equ 5 ; true in CheckCriteria if current record is a file timerFired equ 6 ; set by the timer task ; Mbuf entry MBR RECORD 0, Increment ParId ds.l 1 ; Parent ID of the matched item CName ds.b 32 ; Name (str31) of the matched item size equ *-MBR ENDR