/* $Id: mac-mach.h,v 1.6 89/05/06 17:13:32 lee Exp $ * GLIB - a Generic LIBrarian and editor for synths * * Machine dependent stuff. * * Macintosh version * Steven Falco * $Log: mac-mach.h,v $ * Revision 1.6 89/05/06 17:13:32 lee * rel. to comp.sources.misc * */ #define macintosh /* * You must also chose a development system. * Currently, only MPW is supported. See machdep.c and vt.c for more * information. Note that INT16 must be defined as a 16-bit (or larger) * integer. In MPW (my development system), a short is 16 bits. * * Steve Falco, moss!saf */ #define MPW /* any others? */ /* overlay directives for compiler */ #ifdef OVERLAY1 #define __SEG__ over1 #endif #ifdef OVERLAY2 #define __SEG__ over2 #endif #include #include #include #include #include #include #include #define SIGNATURE 'GLIB' #define FSFCBLen 0x3f6 #define INT16 short OSErr GetFinfo(), SetFinfo(); /* * MPW doesn't set the file type. This tends to be important so we * do it manually... */ #define SET_TEXT(filename) \ { \ FInfo myfinfo; \ switch(GetFInfo(filename, 0, &myfinfo)) { \ case noErr: \ myfinfo.fdType = 'TEXT'; \ myfinfo.fdCreator = SIGNATURE; \ SetFInfo(filename, 0, &myfinfo);\ break; \ default: \ fprintf(stderr,"Cannot set file type for %s\n", filename); \ break; \ } \ } #define STATMIDI (midi_rxst==MIDI_NE?1:0) #define STATTXBF (midi_txst==MIDI_NE?1:0)