home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / suntar1.cpt / system7.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-31  |  1.4 KB  |  49 lines

  1. /* this file is needed only if you want to compile suntar 1.1 with
  2. A pre-System 7.0 version of Think-C: since that's what we have done,
  3. you could have some problems to compile suntar on a newer release
  4. (maybe Think-C 5.0): these damned compilers are stupid, they
  5. don't accept that a type or function be declared twice, even if
  6. the two declarations are absolutely identical. And obviously
  7. these declarations do exist in new header files.
  8. */
  9.  
  10. #ifndef    _MacTypes_
  11. #include "MacTypes.h"
  12. #endif
  13.  
  14. typedef unsigned char Str63[64];
  15. typedef short ScriptCode;
  16.  
  17. typedef struct FSSpec {
  18.     short    vRefNum;
  19.     long    parID;
  20.     Str63    name;
  21. } FSSpec;
  22. typedef FSSpec *FSSpecPtr;
  23.  
  24. struct StandardFileReply {
  25.     Boolean sfGood;
  26.     Boolean sfReplacing;
  27.     OSType sfType;
  28.     FSSpec sfFile;
  29.     ScriptCode sfScript;
  30.     short sfFlags;
  31.     Boolean sfIsFolder;
  32.     Boolean sfIsVolume;
  33.     long sfReserved1;
  34.     short sfReserved2;
  35. };
  36. typedef struct StandardFileReply StandardFileReply;
  37.  
  38.  
  39. pascal void CustomPutFile(Str255,Str255,StandardFileReply *,short,Point,ProcPtr,ProcPtr,short *,ProcPtr,void *)
  40.     = {0x3F3C,0x0007,0xA9EA}; 
  41.  
  42. pascal OSErr ResolveAliasFile(FSSpec*,Boolean,Boolean *,Boolean    *) = { 0x700C,0xA823};
  43.  
  44. pascal OSErr FSMakeFSSpec( short, long, StringPtr,FSSpecPtr) = {0x303C,0x0001,0xAA52};
  45.  
  46. /* pascal OSErr HMSetDialogResID(short) = {0x303C,0x010C,0xA830}; */
  47.  
  48. pascal OSErr Gestalt(OSType,long *) = {0xA1AD};
  49.