Systems, instructions and comments

DOS
I used a small library model to link the modules. When I tried to use other than that, the program would crash at the first file read instruction. As my knowledge about C is poor I was unable to track down the reason for this. As a consequence of the small memory model the read buffers could only be 1024 bytes long.
VAX
Compile all source files using cc tp_m2t16.c,tp_decl.c,....
Before linking : $define lnk$library sys$library:vaxcrtl.olb.
Then : $link tp_m2t16,tp_decl,tp_misc,tp_midi,....
This gives you the executable with extension .EXE. Now, to enable command line arguments define a foreign command by :
MIDI2TeX == "$ $disk:[....]tp_m2t16.exe. The string $disk:[...] can be inspected on the local system by typing : show default. Now the program can be run by typing : MIDI2TEX midifile.
Macintosh
MacTraps should be included in the link process. Enable Require prototypes in Edit Menu : Options : Language Settings and check Far Data in Project Menu : Set Project Type. Code should be segmented.