4 ms·
What was the point of minimizing the source code for this
by VWWHFSfQ 3y ago
What was the point of minimizing the source code for this
- adamdennis 3y agoSomethings up with GH’s rendering… when we view the raw sc, it’s un-minified: https://raw.githubusercontent.com/retrospectmike/MacDock/main/DockApp.c https://raw.githubusercontent.com/retrospectmike/MacDock/mai...
- linux2647 3y agoMacOS traditionally used `\r` for line endings. Unix (and thus macOS 10+) uses `\n` and Windows `\r\n`. Github isn't properly recognizing the files have classic MacOS line endings
- deaddodo 3y agoYup, this is it. Newline and CR + NL are the only recognized line endings on Github. You see this often on old source dumps (the Prince of Persia source release stands out, IIRC) of Classic Mac software.
- deleted 3y ago[deleted]
- retrospectMike 3y agoInteresting to read about the issue. This is my first time posting source code on git written on a vintage machine. Honestly the source code tracking, the way Ive done it, is not very useful. I dont blame git and I can’t say there aren’t ways to configure it to be more useful. Classic Macintosh also used “data forks” and “resource forks” as part of all files. I know Windows strips the resource fork part (by accident as it has no awareness of it) — so any Macintosh file that uses its resource fork will be broken. This includes the THINKC project file and the .rsrc file in the repo! Tldr - anyone interested in using the source code should just grab the .sit file and bring it to their emulator/or vintage machine and unstuff it there to preserve resource forks. But anyone in the vintage mac space knows all this by now :). Sharing it as fyi here! So proud to see my little app make HN!!!!
- ksherlock 3y agoYou could run DockApp.rsrc through DeRez (DeRez DockApp.rsrc Types.r) to get a usable (with Rez) text file.