All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] Any need for __cplusplus?
@ 2007-04-03  7:26 Richard Knutsson
  2007-04-03  8:58 ` milindchoudhary
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Richard Knutsson @ 2007-04-03  7:26 UTC (permalink / raw)
  To: kernel-janitors

Hello

There were recently a thread in LKML about C++-usage in the kernel (again).
That reminded me, why do we have those "ifdef __cplusplus"? As an 
example, we have this (in include/linux/stddef.h) when defining NULL as 
0 in C++ and ((void *)0) otherwise. From what I can see, there is no
reason to have them, or am I missing something? (like they are needed by
libraries)

> grep -nr cplusplus * | wc -l
121

Richard Knutsson

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2007-04-04 10:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03  7:26 [KJ] Any need for __cplusplus? Richard Knutsson
2007-04-03  8:58 ` milindchoudhary
2007-04-03  9:30 ` Jaco Kroon
2007-04-03 10:40 ` Robert P. J. Day
2007-04-03 22:50 ` Richard Knutsson
2007-04-03 23:13 ` Robert P. J. Day
2007-04-03 23:22 ` Robert P. J. Day
2007-04-03 23:34 ` Howell, David P
2007-04-04  1:41 ` Richard Knutsson
2007-04-04  2:14 ` Randy Dunlap
2007-04-04 10:25 ` Robert P. J. Day

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.