3 ms·
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
by stormbrew 12y ago
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 https://github.com/ruby/ruby/blob/v1_8_7_374/compar.c
- astrange 12y agounzip and zlib, which you can find embedded in many other projects, use K&R C style to this day.
- umanwizard 12y agoFreeBSD 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)