All of lore.kernel.org
 help / color / mirror / Atom feed
* Booleans, what a wonderful type!
@ 2007-07-18  1:43 ricknu-0
  2007-07-18  2:19 ` Al Viro
  2007-07-18  2:25 ` Al Viro
  0 siblings, 2 replies; 8+ messages in thread
From: ricknu-0 @ 2007-07-18  1:43 UTC (permalink / raw)
  To: linux-sparse

Good morning to you all!

As most of you do not know, I am on Google's SoC
<http://code.google.com/soc/2007/sparse/appinfo.html?csaid=CB0974F67B64AD0C> to
add the ability to suggestions when booleans could/should be used.

Unforunatly, you need both a working internet connection and computer to work on
this, which I now appriciate how difficult it can be to manage, otherwise this
would have been sent _much_ earlier.


Anyhow, I would like any and all ideas on these:

* Should it make all the suggestions at the "same time" or should it first just
suggest the "source" of the boolean-change and then, when converted, suggest the
"users" of the source to change over?

* Should it really be handled by a -W-flag? After all, it is more of a
suggestion then a warning.


... and some questions:

* Most likly a _really_ stupid newbie question, but I have seen several of this
form:
<function>
{
        <variable> a;
        <doing something useful (no sign of 'a')>
        a = <some value/variable>;
        <exit>
}
How is this variable useful?

* Why is there no va_end() after va_start()?

According to the manual (STDARG(3)):
va_end
       Each invocation of va_start() must be matched by a corresponding  invo-
       cation  of va_end() in the same function. After the call va_end(ap) the
       variable ap is undefined.  Multiple  transversals  of  the  list,  each
       bracketed  by  va_start() and va_end() are possible.  va_end() may be a
       macro or a function.


* Is there any advantage of "for (;;)" instead of ex "while (true)"?

* Why is it written in C and not C++. Easier access to kernel-developers? (just
curious)


Have a good night.
Richard Knutsson

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-19  7:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18  1:43 Booleans, what a wonderful type! ricknu-0
2007-07-18  2:19 ` Al Viro
2007-07-18  2:40   ` Brett Nash
2007-07-18 16:33   ` Josh Triplett
2007-07-19  0:23     ` ricknu-0
2007-07-18  2:25 ` Al Viro
2007-07-19  0:38   ` ricknu-0
2007-07-19  7:30     ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.