zephyr/include/sys
Peter Bigot 6554a5e5b6 include: rearrange for standard use of extern "C" in various headers
Consistently place C++ use of extern "C" after all include directives,
within the negative branch of _ASMLANGUAGE if used.

The inclusion of the generated syscall files is placed outside the
extern "C" block as the generated file has its own extern "C" block.

Background from issue #17997:

Declarations that use C linkage should be placed within extern "C"
so the language linkage is correct when the header is included by
a C++ compiler.

Similarly #include directives should be outside the extern "C" to
ensure the language-specific default linkage is applied to any
declarations provided by the included header.

See: https://en.cppreference.com/w/cpp/language/language_linkage
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-13 18:00:31 +02:00
..
__assert.h
atomic.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
base64.h
byteorder.h
crc.h
dlist.h
errno_private.h
fdtable.h
libc-hooks.h
list_gen.h cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
math_extras_impl.h
math_extras.h
mempool_base.h mempool: simplify the logic for sizing the free block bitmap 2019-07-31 10:09:29 -07:00
mempool.h mempool: make sure max block size isn't smaller than minimum allowed 2019-07-02 19:41:20 -07:00
mutex.h
printk.h
rb.h
ring_buffer.h ring_buffer: Fix return types 2019-08-05 13:26:28 +02:00
sem.h sys/sem.h: fix path to atomic.h 2019-07-26 06:37:59 +03:00
sflist.h cleanup: include/: move misc/sflist.h to sys/sflist.h 2019-06-27 22:55:49 -04:00
slist.h cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
speculation.h cleanup: include/: move misc/speculation.h to sys/speculation.h 2019-06-27 22:55:49 -04:00
sys_io.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
timeutil.h sys: timeutil: add module 2019-07-17 14:04:44 +02:00
util.h Revert "sys/util.h: helper macro to perform pointer difference" 2019-07-17 03:44:03 -04:00