|
|
Subscribe / Log in / New account

Request clue-bat

Request clue-bat

Posted Jun 29, 2006 17:16 UTC (Thu) by ncm (guest, #165)
In reply to: Request clue-bat by smitty_one_each
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

Request clue-bat

Posted Apr 11, 2007 19:33 UTC (Wed) by jengelh (guest, #33263) [Link]

Bad form or not, it is also allowed in C++.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds