Video: C Programming on System 6 - Porting OpenBSD's diff(1)
I've wanted a simple revision control system on my Mac since starting
development of my IMAP client.
Porting a large system like Git or even CVS would be overkill (and very slow),
but maybe something small like OpenBSD's
RCS
implementation would suffice.
For now, just having a diff
utility would be helpful so in this video I port
the guts of
OpenBSD's diff(1)
and show it generating a unified diff between revisions of a C file.
Video notes:
- OpenBSD
diff(1)
source code KAHL
as the THINK C file creator type refers to Michael Kahl, the original THINK C author (thanks to Theo Buehler for letting me know)- Phil Collins - stdio
- My
strdup
code inxstrdup
shouldmalloc(len + 1)
- tinkerBOY PS/2 keyboard to Mac converter
Please contact me with any feedback or questions, view past videos in this series, and subscribe to my RSS feed to be notified about future videos and other posts.
Join me and others on
Libera Chat
in the
#cyberpals
channel if you are interested in following along with this series and have
questions or would like to help others.