1 line
1.2 KiB
C
1 line
1.2 KiB
C
/*********************************************************/
|
|
/* This source code copyright (c) 1991-2001, Aaron Giles */
|
|
/* See the Read Me file for licensing information. */
|
|
/* Contact email: mac@aarongiles.com */
|
|
/*********************************************************/
|
|
|
|
#ifndef __MISCELLANEOUSUTILS__
|
|
#define __MISCELLANEOUSUTILS__
|
|
|
|
Boolean CheckAbort(JVDrawParamsHandle theParams);
|
|
void StartTimer(void);
|
|
long StopTimer(void);
|
|
char *DirName(long dirID, short vRefNum, char *s);
|
|
OSErr GetDirectoryID(FSSpec *theSpec, long *theID);
|
|
OSErr GetFullPath(FSSpec *theSpec, Handle *thePath);
|
|
void ForceFolderUpdate(long dirID, short vRefNum);
|
|
void AddString(StringPtr theString, StringPtr theAddition);
|
|
void AddCString(StringPtr theString, char *theAddition, int length);
|
|
void AddNumber(StringPtr theString, long theNum);
|
|
void StuffNumber(StringPtr theString, short theItem, long theNum);
|
|
void StuffNumber0(StringPtr theString, short theItem, long theNum, short theLength);
|
|
void StuffDepth(StringPtr theString, short theItem, short theDepth);
|
|
void StuffString(StringPtr theString, short theItem, StringPtr addString);
|
|
Point GlobalMouse(void);
|
|
#define abs(val) (((val) < 0) ? -(val) : (val))
|
|
#define AddChar(item, c) item[++item[0]] = c
|
|
|
|
#endif
|