home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
online
/
source
/
c
/
compilers
/
Tickle-4.0.sit.hqx
/
Tickle-4.0
/
src
/
asd.h
< prev
next >
Wrap
Text File
|
1993-11-18
|
2KB
|
90 lines
/*
** This source code was written by Tim Endres
** Email: time@ice.com.
** USMail: 8840 Main Street, Whitmore Lake, MI 48189
**
** Some portions of this application utilize sources
** that are copyrighted by ICE Engineering, Inc., and
** ICE Engineering retains all rights to those sources.
**
** Neither ICE Engineering, Inc., nor Tim Endres,
** warrants this source code for any reason, and neither
** party assumes any responsbility for the use of these
** sources, libraries, or applications. The user of these
** sources and binaries assumes all responsbilities for
** any resulting consequences.
*/
#define VERSION_APPLE 0x00010000
#define MAGIC_APPLE_SINGLE 0x00051600
#define MAGIC_APPLE_DOUBLE 0x00051607
#define ASDID_DATA_FORK 1
#define ASDID_RSRC_FORK 2
#define ASDID_NAME_FORK 3
#define ASDID_CMNT_FORK 4
#define ASDID_MICN_FORK 5
#define ASDID_CICN_FORK 6
#define ASDID_INFO_FORK 7
#define ASDID_FNDR_FORK 9
#define ASDID_DATA_PATH 100
#define MAC_UNIX_TIME_DIFF 0x7c25b080
#define MAC_TO_UNIX_TIME(time) ((time) - MAC_UNIX_TIME_DIFF)
#define UNIX_TO_MAC_TIME(time) ((time) + MAC_UNIX_TIME_DIFF)
#define MAX_ASD_ENTRIES 16
typedef struct
{
long magic;
long version;
char filesys[16];
short entries;
} asd_hdr;
typedef struct
{
long id;
long offset;
long length;
} asd_entry;
typedef struct
{
long fdType;
long fdCreator;
unsigned char fdFlags;
unsigned char zero;
short fdLocation[2];
short fdFldr;
} asd_fndr_fork;
typedef struct
{
asd_hdr asd_head;
asd_entry asd_entries[6];
} asd_file_hdr;
#ifndef ALLOC_CLASS
#ifdef ALLOCATE_GLOBALS
#define ALLOC_CLASS
#define ALLOC_INIT(def) = def
#define ALLOC_ARRAY(asize) [asize]
#else
#define ALLOC_CLASS extern
#define ALLOC_INIT(def)
#define ALLOC_ARRAY(asize) []
#endif
#endif
ALLOC_CLASS asd_hdr asd_header;
ALLOC_CLASS asd_fndr_fork g_asd_finder;
ALLOC_CLASS asd_entry the_entries ALLOC_ARRAY(MAX_ASD_ENTRIES);
ALLOC_CLASS asd_file_hdr asd_file_head;
ALLOC_CLASS asd_fndr_fork asd_finder;