Follow

cursed 

Original Bourne shell implementation:

tuhs.org/cgi-bin/utree.pl?file

I'm sorry for ruining your evening.

· · Web · 2 · 6 · 3

cursed 

@emersion It's a bit macro heavy and the setjump at the beginning is disturbing. It's definitely not decomposed in an object oriented way but it doesn't seem too bad to me so far.

cursed 

@emersion wow. Do you know what dialect of C that is?

cursed 

@bfiedler just C. With a fair amount of macros, see mac.h for instance ;)

cursed 

@emersion @bfiedler
I guess they came from basic and didn't want to write actual c

cursed 

@emersion ohhh, it’s included from the middle of defs.h! I only checked the top :D thanks!

cursed 

@bfiedler @emersion this is K&R C with macros; to give it a feel of.. ALGOL, or sh itself, i think?

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!