Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thank you, Ray. Any old compilers in your time machine as well? ;-) I had (incorrectly) presumed that this older K&R style of C predated Windows and was never ported from Unix.


Of course. I've uploaded a UTILITIES folder that has all the build tools. In BIN, cc.exe is the compiler, but it forks the P*.exe's for each pass.


Until a few years ago you could still find K&R declarations in the Ruby source code[1]. Wasn't until 1.9 that they switched things over to ANSI style, iirc.

So, believe it or not, you might still find it out there in the wild.

[1] eg: https://github.com/ruby/ruby/blob/v1_8_7_374/compar.c


FreeBSD still uses this declaration style liberally (keep in mind FreeBSD is a fork of BSD which has been around for some decades, and it makes sense that there's some old code floating around in the kernel)


unzip and zlib, which you can find embedded in many other projects, use K&R C style to this day.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: