ksherlock / mpw

Macintosh Programmer's Workshop (mpw) compatibility layer
238 stars 21 forks source link

Assume binary file type for .ntkc and .sym files #22

Closed jake-b closed 9 years ago

jake-b commented 9 years ago

mpw works great for compiling ARM code for the Apple Newton. However, a few of the tools are not very good at setting the binary flag. As such, some files have their 0x0D's swapped out for 0x0A's-- not very good for binary files.

This patch just adds two file types used by the Newton C++ Toolkit to the list of files that are assumed to be binary.

MatthiasWM commented 9 years ago

I originally wrote 'mosrun' for exactly those tools. Obviously, I had the same problem. I solved it by introducing triple-dash options. Every filename in the command line can be proceeded with an option such as '---binary' or '---text' or further options to change to UTF8 or Unix line endings. The Mac MPW tool never sees this option, but the routine that handles file reading and writing knows when to apply which conversion.

BTW, congratulations on the fantastic progress of your app!