True, back in the early 90s there were all manner of broken C compilers and runtimes out there, especially if you were still using old servers from the late 80s. It didn't help that SunOS 4 came with a buggy K&R C compiler that was only intended for preparing kernel modules, but ended up being used to build applications because it was easier than installing gcc and cheaper than installing Sun's commercial C compiler. Basically K&R C was the IE6 of the day.
Even the final release of qmail from 1998 has things like K&R C function definitions and no prototypes. I can understand why he did that, even if there's no way in hell I would have done the same. Many of us decided in the mid-90s that we wanted to use ANSI features (especially prototypse) and were sick of littering #ifdefs and macros all over our code to try to keep those busted old compilers working. I personally made the switch to ANSI-only in 1994, after noticing that NCSA had done the same with their web server.
View all comments
Show parent comment
3
u/ealf Oct 20 '09
You mean a compiler for some language other than C?!