Posted Jun 29, 2006 17:16 UTC (Thu) by ncm
In reply to: Request clue-bat
Parent article: Trees II: red-black trees
No, it's just defining two variables, and leaving one uninitialized. In C++ code this would be bad form, but in C89 you have to define variables at the top of the block, often before you're ready to initialize them to anything useful. The kernel isn't coded in C89, though; it requires Gcc. With recent releases of Gcc, if run with C99 support turned on, variables can be defined in the middle of a block. It's really only inertia supporting this unfortunate practice.
to post comments)