diff --git a/sys/include/analog_util.h b/sys/include/analog_util.h index 581ded7e3082..a2da1e742673 100644 --- a/sys/include/analog_util.h +++ b/sys/include/analog_util.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ANALOG_UTIL_H +#define ANALOG_UTIL_H + /** * @defgroup sys_analog_util Analog data conversion utilities * @ingroup sys @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef ANALOG_UTIL_H -#define ANALOG_UTIL_H - #include #include "periph/adc.h" @@ -90,5 +90,5 @@ uint16_t dac_util_mapf(float value, float min, float max); } #endif -#endif /* ANALOG_UTIL_H */ /** @} */ +#endif /* ANALOG_UTIL_H */ diff --git a/sys/include/app_metadata.h b/sys/include/app_metadata.h index 9c128aa5383e..9552f586e423 100644 --- a/sys/include/app_metadata.h +++ b/sys/include/app_metadata.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef APP_METADATA_H +#define APP_METADATA_H + /** * @defgroup sys_app_metadata app_metadata * @ingroup sys @@ -15,9 +18,6 @@ * @author Kevin Weiss */ -#ifndef APP_METADATA_H -#define APP_METADATA_H - #ifdef __cplusplus extern "C" { #endif @@ -50,5 +50,5 @@ void app_metadata_print_json(void); } #endif -#endif /* APP_METADATA_H */ /** @} */ +#endif /* APP_METADATA_H */ diff --git a/sys/include/architecture.h b/sys/include/architecture.h index 37c36a7a32d6..d3018f6fdad2 100644 --- a/sys/include/architecture.h +++ b/sys/include/architecture.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ARCHITECTURE_H +#define ARCHITECTURE_H + /** * @defgroup sys_architecture Platform-independent access to architecture * details @@ -21,9 +24,6 @@ * @author Marian Buschsieweke */ -#ifndef ARCHITECTURE_H -#define ARCHITECTURE_H - #include #include #include @@ -229,5 +229,5 @@ typedef uintptr_t uinttxtptr_t; } #endif -#endif /* ARCHITECTURE_H */ /** @} */ +#endif /* ARCHITECTURE_H */ diff --git a/sys/include/atomic_utils.h b/sys/include/atomic_utils.h index 1b3ff414391b..ff9e71fcdf95 100644 --- a/sys/include/atomic_utils.h +++ b/sys/include/atomic_utils.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ATOMIC_UTILS_H +#define ATOMIC_UTILS_H + /** * @defgroup sys_atomic_utils Utility functions for atomic access * @ingroup sys @@ -133,9 +136,6 @@ * @author Marian Buschsieweke */ -#ifndef ATOMIC_UTILS_H -#define ATOMIC_UTILS_H - #include #include "irq.h" @@ -1391,5 +1391,5 @@ static inline uint64_t semi_atomic_fetch_and_u64(volatile uint64_t *dest, } #endif -#endif /* ATOMIC_UTILS_H */ /** @} */ +#endif /* ATOMIC_UTILS_H */ diff --git a/sys/include/auto_init.h b/sys/include/auto_init.h index 71c7746e2bba..0a1544b94f01 100644 --- a/sys/include/auto_init.h +++ b/sys/include/auto_init.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef AUTO_INIT_H +#define AUTO_INIT_H + /** * @defgroup sys_auto_init Auto-initialization * @ingroup sys @@ -105,9 +108,6 @@ * @author Alexandre Abadie */ -#ifndef AUTO_INIT_H -#define AUTO_INIT_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/auto_init_utils.h b/sys/include/auto_init_utils.h index 4aefda05a644..467e3c032076 100644 --- a/sys/include/auto_init_utils.h +++ b/sys/include/auto_init_utils.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef AUTO_INIT_UTILS_H +#define AUTO_INIT_UTILS_H /** * @defgroup sys_auto_init_utils Utilities to influence the order of auto-initialized modules * @ingroup sys @@ -24,8 +26,6 @@ * @experimental * @author Fabian Hüßler */ -#ifndef AUTO_INIT_UTILS_H -#define AUTO_INIT_UTILS_H #include #include "xfa.h" @@ -97,5 +97,5 @@ typedef struct { } #endif -#endif /* AUTO_INIT_UTILS_H */ /** @} */ +#endif /* AUTO_INIT_UTILS_H */ diff --git a/sys/include/base64.h b/sys/include/base64.h index 493779776585..f876aa267bd3 100644 --- a/sys/include/base64.h +++ b/sys/include/base64.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef BASE64_H +#define BASE64_H + /** * @defgroup sys_base64 base64 encoder decoder * @ingroup sys_serialization @@ -17,9 +20,6 @@ * @author Martin Landsmann */ -#ifndef BASE64_H -#define BASE64_H - #include /* for size_t */ #ifdef __cplusplus diff --git a/sys/include/bcd.h b/sys/include/bcd.h index 67b65f3a0aaf..6703a95e0780 100644 --- a/sys/include/bcd.h +++ b/sys/include/bcd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef BCD_H +#define BCD_H /** * @defgroup sys_bcd Binary coded decimal * @ingroup sys @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef BCD_H -#define BCD_H #include @@ -56,5 +56,5 @@ static inline uint8_t bcd_to_byte(uint8_t bcd) } #endif -#endif /* BCD_H */ /** @} */ +#endif /* BCD_H */ diff --git a/sys/include/benchmark.h b/sys/include/benchmark.h index e40d7fe4733d..8c58aba643ce 100644 --- a/sys/include/benchmark.h +++ b/sys/include/benchmark.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef BENCHMARK_H +#define BENCHMARK_H + /** * @defgroup sys_benchmark Benchmark * @ingroup sys @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef BENCHMARK_H -#define BENCHMARK_H - #include #include "irq.h" @@ -65,5 +65,5 @@ void benchmark_print_time(uint32_t time, unsigned long runs, const char *name); } #endif -#endif /* BENCHMARK_H */ /** @} */ +#endif /* BENCHMARK_H */ diff --git a/sys/include/bhp.h b/sys/include/bhp.h index ed2cd389eaf6..4d6437d833ea 100644 --- a/sys/include/bhp.h +++ b/sys/include/bhp.h @@ -6,6 +6,9 @@ * details. */ +#ifndef BHP_H +#define BHP_H + /** * @defgroup sys_bhp Bottom Half Processor * @ingroup sys @@ -26,9 +29,6 @@ * @author José I. Alamos */ -#ifndef BHP_H -#define BHP_H - #ifdef __cplusplus extern "C" { #endif @@ -86,5 +86,5 @@ static inline void bhp_set_cb(bhp_t *bhp, bhp_cb_t cb, void *ctx) } #endif -#endif /* BHP_H */ /** @} */ +#endif /* BHP_H */ diff --git a/sys/include/bhp/event.h b/sys/include/bhp/event.h index b31d16960848..61a5d3732776 100644 --- a/sys/include/bhp/event.h +++ b/sys/include/bhp/event.h @@ -6,6 +6,9 @@ * details. */ +#ifndef BHP_EVENT_H +#define BHP_EVENT_H + /** * @defgroup sys_bhp_event Event based implementation of Bottom Half Processor * @ingroup sys_bhp @@ -16,9 +19,6 @@ * @author José I. Alamos */ -#ifndef BHP_EVENT_H -#define BHP_EVENT_H - #include "bhp.h" #include @@ -58,5 +58,5 @@ void bhp_event_isr_cb(void *bhp_event_ctx); } #endif -#endif /* BHP_EVENT_H */ /** @} */ +#endif /* BHP_EVENT_H */ diff --git a/sys/include/bhp/msg.h b/sys/include/bhp/msg.h index e4acad17d2d0..9fee542b53a7 100644 --- a/sys/include/bhp/msg.h +++ b/sys/include/bhp/msg.h @@ -6,6 +6,9 @@ * details. */ +#ifndef BHP_MSG_H +#define BHP_MSG_H + /** * @defgroup sys_bhp_msg Message based implementation of Bottom Half Processor * @ingroup sys_bhp @@ -21,9 +24,6 @@ * @author José I. Alamos */ -#ifndef BHP_MSG_H -#define BHP_MSG_H - #include "msg.h" #include "thread.h" #include "bhp.h" @@ -102,5 +102,5 @@ static inline void bhp_msg_handler(msg_t *msg) } #endif -#endif /* BHP_MSG_H */ /** @} */ +#endif /* BHP_MSG_H */ diff --git a/sys/include/bit.h b/sys/include/bit.h index 2879bf92019e..1ff7d3b7d921 100644 --- a/sys/include/bit.h +++ b/sys/include/bit.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef BIT_H +#define BIT_H + /** * @ingroup sys * @{ @@ -16,9 +19,6 @@ * @author Joakim Nohlgård */ -#ifndef BIT_H -#define BIT_H - #include #include "cpu.h" @@ -305,5 +305,5 @@ static inline bool bit_check8(volatile uint8_t *ptr, uint8_t bit) } #endif -#endif /* BIT_H */ /** @} */ +#endif /* BIT_H */ diff --git a/sys/include/bitfield.h b/sys/include/bitfield.h index 19c952eb8c3f..6abd0cf5b280 100644 --- a/sys/include/bitfield.h +++ b/sys/include/bitfield.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef BITFIELD_H +#define BITFIELD_H + /** * @defgroup sys_bitfield Bitfields * @ingroup sys @@ -26,9 +29,6 @@ * @author Oliver Hahm */ -#ifndef BITFIELD_H -#define BITFIELD_H - #include #include #include diff --git a/sys/include/bloom.h b/sys/include/bloom.h index cce5b7f59a7b..439b154bd33c 100644 --- a/sys/include/bloom.h +++ b/sys/include/bloom.h @@ -108,6 +108,9 @@ * */ +#ifndef BLOOM_H +#define BLOOM_H + /** * @defgroup sys_bloom Bloom filter * @ingroup sys @@ -120,9 +123,6 @@ * @author Christian Mehlis */ -#ifndef BLOOM_H -#define BLOOM_H - #include #include #include diff --git a/sys/include/busy_wait.h b/sys/include/busy_wait.h index 243f5c425880..431ed0870d39 100644 --- a/sys/include/busy_wait.h +++ b/sys/include/busy_wait.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef BUSY_WAIT_H +#define BUSY_WAIT_H + /** * @defgroup busy_wait Busy Waiting low-level helpers * @ingroup sys @@ -18,9 +21,6 @@ * @{ */ -#ifndef BUSY_WAIT_H -#define BUSY_WAIT_H - #include #include "periph_conf.h" #include "time_units.h" @@ -85,5 +85,5 @@ static inline void busy_wait_us(unsigned usec) } #endif -#endif /* BUSY_WAIT_H */ /** @} */ +#endif /* BUSY_WAIT_H */ diff --git a/sys/include/byteorder.h b/sys/include/byteorder.h index af5e74f183dd..a5a5e1923600 100644 --- a/sys/include/byteorder.h +++ b/sys/include/byteorder.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef BYTEORDER_H +#define BYTEORDER_H + /** * @ingroup sys * @{ @@ -16,9 +19,6 @@ * @author René Kijewski */ -#ifndef BYTEORDER_H -#define BYTEORDER_H - #include #include #include @@ -618,5 +618,5 @@ static inline void byteorder_htolebufll(uint8_t *buf, uint64_t val) } #endif -#endif /* BYTEORDER_H */ /** @} */ +#endif /* BYTEORDER_H */ diff --git a/sys/include/can/can.h b/sys/include/can/can.h index 08e0a145604a..70019bdba4c2 100644 --- a/sys/include/can/can.h +++ b/sys/include/can/can.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_CAN_H +#define CAN_CAN_H + /** * @defgroup sys_can_dll Data Link Layer * @ingroup sys_can @@ -23,9 +26,6 @@ * @author Toon Stegen */ -#ifndef CAN_CAN_H -#define CAN_CAN_H - #ifdef __cplusplus extern "C" { #endif @@ -183,6 +183,6 @@ typedef struct can_frame can_frame_t; } #endif -#endif /* CAN_CAN_H */ - /** @} */ + +#endif /* CAN_CAN_H */ diff --git a/sys/include/can/common.h b/sys/include/can/common.h index ba56f31b25a4..bc6aeb126fa0 100644 --- a/sys/include/can/common.h +++ b/sys/include/can/common.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_COMMON_H +#define CAN_COMMON_H + /** * @defgroup sys_can_common Common definitions * @ingroup sys_can @@ -23,9 +26,6 @@ * @author Vincent Dupont */ -#ifndef CAN_COMMON_H -#define CAN_COMMON_H - #ifdef __cplusplus extern "C" { #endif @@ -171,5 +171,5 @@ typedef struct can_reg_entry { } #endif -#endif /* CAN_COMMON_H */ /** @} */ +#endif /* CAN_COMMON_H */ diff --git a/sys/include/can/conn/isotp.h b/sys/include/can/conn/isotp.h index 9a3071e0acdb..52711b0c0260 100644 --- a/sys/include/can/conn/isotp.h +++ b/sys/include/can/conn/isotp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CAN_CONN_ISOTP_H +#define CAN_CONN_ISOTP_H + /** * @ingroup sys_can_conn * @{ @@ -17,9 +20,6 @@ * */ -#ifndef CAN_CONN_ISOTP_H -#define CAN_CONN_ISOTP_H - #ifdef __cplusplus extern "C" { #endif @@ -198,5 +198,5 @@ int conn_can_isotp_select(conn_can_isotp_slave_t **conn, conn_can_isotp_t *maste } #endif -#endif /* CAN_CONN_ISOTP_H */ /** @} */ +#endif /* CAN_CONN_ISOTP_H */ diff --git a/sys/include/can/conn/raw.h b/sys/include/can/conn/raw.h index 8eed58ac14de..855234230308 100644 --- a/sys/include/can/conn/raw.h +++ b/sys/include/can/conn/raw.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CAN_CONN_RAW_H +#define CAN_CONN_RAW_H + /** * @defgroup sys_can_conn Connection * @ingroup sys_can @@ -22,9 +25,6 @@ * */ -#ifndef CAN_CONN_RAW_H -#define CAN_CONN_RAW_H - #ifdef __cplusplus extern "C" { #endif @@ -138,5 +138,5 @@ int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, siz } #endif -#endif /* CAN_CONN_RAW_H */ /** @} */ +#endif /* CAN_CONN_RAW_H */ diff --git a/sys/include/can/device.h b/sys/include/can/device.h index 3972119d5b00..77f58da5b10f 100644 --- a/sys/include/can/device.h +++ b/sys/include/can/device.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_DEVICE_H +#define CAN_DEVICE_H + /** * @ingroup sys_can_dll * @{ @@ -17,9 +20,6 @@ * @author Toon Stegen */ -#ifndef CAN_DEVICE_H -#define CAN_DEVICE_H - #ifdef __cplusplus extern "C" { #endif @@ -122,6 +122,6 @@ int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const * } #endif -#endif /* CAN_DEVICE_H */ - /** @} */ + +#endif /* CAN_DEVICE_H */ diff --git a/sys/include/can/dll.h b/sys/include/can/dll.h index 15436cca6995..39405bfc6108 100644 --- a/sys/include/can/dll.h +++ b/sys/include/can/dll.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_DLL_H +#define CAN_DLL_H + /** * @ingroup sys_can_dll * @{ @@ -17,9 +20,6 @@ * @author Toon Stegen */ -#ifndef CAN_DLL_H -#define CAN_DLL_H - #ifdef __cplusplus extern "C" { #endif @@ -104,6 +104,6 @@ int can_dll_dispatch_bus_off(kernel_pid_t pid); } #endif -#endif /* CAN_DLL_H */ - /** @} */ + +#endif /* CAN_DLL_H */ diff --git a/sys/include/can/isotp.h b/sys/include/can/isotp.h index 3e57da181c80..cc9a3065fdd6 100644 --- a/sys/include/can/isotp.h +++ b/sys/include/can/isotp.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_ISOTP_H +#define CAN_ISOTP_H + /** * @defgroup sys_can_isotp ISO transport protocol over CAN * @ingroup sys_can @@ -18,9 +21,6 @@ * @author Vincent Dupont */ -#ifndef CAN_ISOTP_H -#define CAN_ISOTP_H - #ifdef __cplusplus extern "C" { #endif @@ -214,5 +214,5 @@ void isotp_free_rx(can_rx_data_t *rx); } #endif -#endif /* CAN_ISOTP_H */ /** @} */ +#endif /* CAN_ISOTP_H */ diff --git a/sys/include/can/pkt.h b/sys/include/can/pkt.h index 85a57282f472..145c7785f3c8 100644 --- a/sys/include/can/pkt.h +++ b/sys/include/can/pkt.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_PKT_H +#define CAN_PKT_H + /** * @ingroup sys_can_dll * @{ @@ -17,9 +20,6 @@ * @author Toon Stegen */ -#ifndef CAN_PKT_H -#define CAN_PKT_H - #ifdef __cplusplus extern "C" { #endif @@ -143,5 +143,5 @@ void can_pkt_buf_free(void *data, size_t size); } #endif -#endif /* CAN_PKT_H */ /** @} */ +#endif /* CAN_PKT_H */ diff --git a/sys/include/can/raw.h b/sys/include/can/raw.h index 6f544addb55a..465bb3d7590f 100644 --- a/sys/include/can/raw.h +++ b/sys/include/can/raw.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_RAW_H +#define CAN_RAW_H + /** * @ingroup sys_can_dll * @{ @@ -21,9 +24,6 @@ * @author Aurelien Gonce */ -#ifndef CAN_RAW_H -#define CAN_RAW_H - #ifdef __cplusplus extern "C" { #endif @@ -275,5 +275,5 @@ int raw_can_set_trx(int ifnum, can_trx_t *trx); } #endif -#endif /* CAN_RAW_H */ /** @} */ +#endif /* CAN_RAW_H */ diff --git a/sys/include/can/router.h b/sys/include/can/router.h index 8c83253da6c1..c455d51b975b 100644 --- a/sys/include/can/router.h +++ b/sys/include/can/router.h @@ -6,6 +6,9 @@ * details. */ +#ifndef CAN_ROUTER_H +#define CAN_ROUTER_H + /** * @ingroup sys_can_dll * @{ @@ -17,9 +20,6 @@ * @author Vincent Dupont */ -#ifndef CAN_ROUTER_H -#define CAN_ROUTER_H - #ifdef __cplusplus extern "C" { #endif @@ -113,5 +113,5 @@ int can_router_dispatch_tx_error(can_pkt_t *pkt); } #endif -#endif /* CAN_ROUTER_H */ /** @} */ +#endif /* CAN_ROUTER_H */ diff --git a/sys/include/cb_mux.h b/sys/include/cb_mux.h index 8f28223c105a..c59861c51cb2 100644 --- a/sys/include/cb_mux.h +++ b/sys/include/cb_mux.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CB_MUX_H +#define CB_MUX_H + /** * @defgroup sys_cb_mux Callback multiplexer * @ingroup sys @@ -26,9 +29,6 @@ * @author Matthew Blue */ -#ifndef CB_MUX_H -#define CB_MUX_H - #include /* For alternate cb_mux_cbid_t */ diff --git a/sys/include/checksum/crc16_ccitt.h b/sys/include/checksum/crc16_ccitt.h index 9d90d48fff98..bd7f5157cc05 100644 --- a/sys/include/checksum/crc16_ccitt.h +++ b/sys/include/checksum/crc16_ccitt.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CHECKSUM_CRC16_CCITT_H +#define CHECKSUM_CRC16_CCITT_H + /** * @defgroup sys_checksum_crc16_ccitt CRC16-CCITT * @ingroup sys_checksum @@ -29,9 +32,6 @@ * @author Bennet Blischke */ -#ifndef CHECKSUM_CRC16_CCITT_H -#define CHECKSUM_CRC16_CCITT_H - #include #include @@ -186,6 +186,6 @@ uint16_t crc16_ccitt_aug_calc(const unsigned char *buf, size_t len); } #endif -#endif /* CHECKSUM_CRC16_CCITT_H */ - /** @} */ + +#endif /* CHECKSUM_CRC16_CCITT_H */ diff --git a/sys/include/checksum/crc32.h b/sys/include/checksum/crc32.h index be5c1f1c7ac8..11efc3536f2e 100644 --- a/sys/include/checksum/crc32.h +++ b/sys/include/checksum/crc32.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CHECKSUM_CRC32_H +#define CHECKSUM_CRC32_H + /** * @defgroup sys_checksum_crc32 CRC32 * @ingroup sys_checksum @@ -17,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef CHECKSUM_CRC32_H -#define CHECKSUM_CRC32_H - #include #include @@ -46,6 +46,6 @@ uint32_t crc32(const void *buf, size_t size); } #endif -#endif /* CHECKSUM_CRC32_H */ - /** @} */ + +#endif /* CHECKSUM_CRC32_H */ diff --git a/sys/include/checksum/crc8.h b/sys/include/checksum/crc8.h index 94523eed383e..8a82cafbbf50 100644 --- a/sys/include/checksum/crc8.h +++ b/sys/include/checksum/crc8.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CHECKSUM_CRC8_H +#define CHECKSUM_CRC8_H /** * @defgroup sys_checksum_crc8 CRC-8 * @ingroup sys_checksum @@ -18,8 +20,6 @@ * * @author Gunar Schorcht */ -#ifndef CHECKSUM_CRC8_H -#define CHECKSUM_CRC8_H #include #include @@ -47,5 +47,5 @@ uint8_t crc8(const uint8_t *data, size_t len, uint8_t poly, uint8_t seed); } #endif -#endif /* CHECKSUM_CRC8_H */ /** @} */ +#endif /* CHECKSUM_CRC8_H */ diff --git a/sys/include/checksum/fletcher16.h b/sys/include/checksum/fletcher16.h index 0cbf37bf2b53..95a15f58b4a4 100644 --- a/sys/include/checksum/fletcher16.h +++ b/sys/include/checksum/fletcher16.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CHECKSUM_FLETCHER16_H +#define CHECKSUM_FLETCHER16_H + /** * @defgroup sys_checksum_fletcher16 Fletcher16 * @ingroup sys_checksum @@ -17,9 +20,6 @@ * @author Joakim Nohlgård */ -#ifndef CHECKSUM_FLETCHER16_H -#define CHECKSUM_FLETCHER16_H - #include #include @@ -81,6 +81,6 @@ uint16_t fletcher16_finish(fletcher16_ctx_t *ctx); } #endif -#endif /* CHECKSUM_FLETCHER16_H */ - /** @} */ + +#endif /* CHECKSUM_FLETCHER16_H */ diff --git a/sys/include/checksum/fletcher32.h b/sys/include/checksum/fletcher32.h index a53e02aa02b8..de7138c07eef 100644 --- a/sys/include/checksum/fletcher32.h +++ b/sys/include/checksum/fletcher32.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CHECKSUM_FLETCHER32_H +#define CHECKSUM_FLETCHER32_H + /** * @defgroup sys_checksum_fletcher32 Fletcher32 * @ingroup sys_checksum @@ -18,9 +21,6 @@ * @author Koen Zandberg */ -#ifndef CHECKSUM_FLETCHER32_H -#define CHECKSUM_FLETCHER32_H - #include #include @@ -86,6 +86,6 @@ uint32_t fletcher32_finish(fletcher32_ctx_t *ctx); } #endif -#endif /* CHECKSUM_FLETCHER32_H */ - /** @} */ + +#endif /* CHECKSUM_FLETCHER32_H */ diff --git a/sys/include/checksum/ucrc16.h b/sys/include/checksum/ucrc16.h index 67e7d3e4fa37..a891c413a09c 100644 --- a/sys/include/checksum/ucrc16.h +++ b/sys/include/checksum/ucrc16.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CHECKSUM_UCRC16_H +#define CHECKSUM_UCRC16_H /** * @defgroup sys_checksum_ucrc16 CRC16 (lightweight) * @ingroup sys_checksum @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef CHECKSUM_UCRC16_H -#define CHECKSUM_UCRC16_H #include #include @@ -78,5 +78,5 @@ uint16_t ucrc16_calc_le(const uint8_t *buf, size_t len, uint16_t poly, } #endif -#endif /* CHECKSUM_UCRC16_H */ /** @} */ +#endif /* CHECKSUM_UCRC16_H */ diff --git a/sys/include/chunked_ringbuffer.h b/sys/include/chunked_ringbuffer.h index 75cf9fa4ba5d..43a8632e2be8 100644 --- a/sys/include/chunked_ringbuffer.h +++ b/sys/include/chunked_ringbuffer.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CHUNKED_RINGBUFFER_H +#define CHUNKED_RINGBUFFER_H + /** * @defgroup sys_chunk_buffer chunked Ringbuffer * @ingroup sys @@ -20,9 +23,6 @@ * @author Benjamin Valentin */ -#ifndef CHUNKED_RINGBUFFER_H -#define CHUNKED_RINGBUFFER_H - #include #include #include @@ -247,5 +247,5 @@ bool crb_chunk_foreach(chunk_ringbuf_t *rb, crb_foreach_callback_t func, void *c } #endif -#endif /* CHUNKED_RINGBUFFER_H */ /** @} */ +#endif /* CHUNKED_RINGBUFFER_H */ diff --git a/sys/include/clif.h b/sys/include/clif.h index 95dab7b57d86..e0b0ededb5ca 100644 --- a/sys/include/clif.h +++ b/sys/include/clif.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CLIF_H +#define CLIF_H + /** * @defgroup sys_clif CoRE Link Format * @ingroup sys_serialization @@ -92,9 +95,6 @@ * @author Leandro Lanzieri */ -#ifndef CLIF_H -#define CLIF_H - #include #include "clif_internal.h" @@ -331,5 +331,5 @@ int clif_init_attr(clif_attr_t *attr, clif_attr_type_t type); } #endif -#endif /* CLIF_H */ /** @} */ +#endif /* CLIF_H */ diff --git a/sys/include/clk.h b/sys/include/clk.h index 577642bba94f..75d1da505ec6 100644 --- a/sys/include/clk.h +++ b/sys/include/clk.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CLK_H +#define CLK_H + /** * @defgroup sys_clk System core clock * @ingroup sys @@ -15,9 +18,6 @@ * @brief System core clock utility functions */ -#ifndef CLK_H -#define CLK_H - #include #include #include "periph_conf.h" @@ -45,5 +45,5 @@ static inline uint32_t coreclk(void) { } #endif -#endif /* CLK_H */ /** @} */ +#endif /* CLK_H */ diff --git a/sys/include/coding/xor.h b/sys/include/coding/xor.h index 37ca60d556fc..2a594d813388 100644 --- a/sys/include/coding/xor.h +++ b/sys/include/coding/xor.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CODING_XOR_H +#define CODING_XOR_H + /** * @defgroup sys_coding_xor XOR code * @ingroup sys_coding @@ -24,9 +27,6 @@ * @author Benjamin Valentin */ -#ifndef CODING_XOR_H -#define CODING_XOR_H - #include #include @@ -89,5 +89,5 @@ bool coding_xor_recover(void *data, size_t len, uint8_t *parity, } #endif -#endif /* CODING_XOR_H */ /** @} */ +#endif /* CODING_XOR_H */ diff --git a/sys/include/color.h b/sys/include/color.h index 63a204bfe68a..4eadfe89deeb 100644 --- a/sys/include/color.h +++ b/sys/include/color.h @@ -6,6 +6,9 @@ * details. */ +#ifndef COLOR_H +#define COLOR_H + /** * @defgroup sys_color Color * @ingroup sys @@ -20,9 +23,6 @@ * @author Simon Brummer */ -#ifndef COLOR_H -#define COLOR_H - #include #ifdef __cplusplus @@ -183,5 +183,5 @@ void color_rgb_complementary(const color_rgb_t *rgb, color_rgb_t *comp_rgb); } #endif -#endif /* COLOR_H */ /** @} */ +#endif /* COLOR_H */ diff --git a/sys/include/congure.h b/sys/include/congure.h index d9930028934a..23f190be5b67 100644 --- a/sys/include/congure.h +++ b/sys/include/congure.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_H +#define CONGURE_H /** * @defgroup sys_congure CongURE - A Congestion control framework * @ingroup sys @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_H -#define CONGURE_H #include @@ -221,5 +221,5 @@ struct congure_snd_driver { } #endif -#endif /* CONGURE_H */ /** @} */ +#endif /* CONGURE_H */ diff --git a/sys/include/congure/abe.h b/sys/include/congure/abe.h index 392f2a1c01c1..b8134cc7554d 100644 --- a/sys/include/congure/abe.h +++ b/sys/include/congure/abe.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_ABE_H +#define CONGURE_ABE_H /** * @defgroup sys_congure_abe CongURE implementation of TCP ABE * @ingroup sys_congure @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_ABE_H -#define CONGURE_ABE_H #include @@ -91,5 +91,5 @@ static inline void congure_abe_set_mss(congure_abe_snd_t *c, unsigned mss) } #endif -#endif /* CONGURE_ABE_H */ /** @} */ +#endif /* CONGURE_ABE_H */ diff --git a/sys/include/congure/config.h b/sys/include/congure/config.h index 8f67b8b47fe6..278e24d7d518 100644 --- a/sys/include/congure/config.h +++ b/sys/include/congure/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_CONFIG_H +#define CONGURE_CONFIG_H /** * @defgroup sys_congure_config CongURE compile time configuration * @ingroup sys_congure @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_CONFIG_H -#define CONGURE_CONFIG_H #ifdef __cplusplus extern "C" { @@ -48,5 +48,5 @@ extern "C" { } #endif -#endif /* CONGURE_CONFIG_H */ /** @} */ +#endif /* CONGURE_CONFIG_H */ diff --git a/sys/include/congure/mock.h b/sys/include/congure/mock.h index 429bf92bfb2e..73b7500a6fe4 100644 --- a/sys/include/congure/mock.h +++ b/sys/include/congure/mock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_MOCK_H +#define CONGURE_MOCK_H /** * @defgroup sys_congure_mock CongURE mock implementation * @ingroup sys_congure @@ -16,8 +18,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_MOCK_H -#define CONGURE_MOCK_H #include @@ -168,5 +168,5 @@ void congure_mock_snd_setup(congure_mock_snd_t *c, } #endif -#endif /* CONGURE_MOCK_H */ /** @} */ +#endif /* CONGURE_MOCK_H */ diff --git a/sys/include/congure/quic.h b/sys/include/congure/quic.h index 37815333f574..2e38a6ff4bb7 100644 --- a/sys/include/congure/quic.h +++ b/sys/include/congure/quic.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_QUIC_H +#define CONGURE_QUIC_H /** * @defgroup sys_congure_quic CongURE implementation of QUIC's CC * @ingroup sys_congure @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_QUIC_H -#define CONGURE_QUIC_H #include "ztimer.h" @@ -229,5 +229,5 @@ void congure_quic_snd_setup(congure_quic_snd_t *c, } #endif -#endif /* CONGURE_QUIC_H */ /** @} */ +#endif /* CONGURE_QUIC_H */ diff --git a/sys/include/congure/reno.h b/sys/include/congure/reno.h index 5bc41fd82e4c..0e044758c2f0 100644 --- a/sys/include/congure/reno.h +++ b/sys/include/congure/reno.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef CONGURE_RENO_H +#define CONGURE_RENO_H /** * @defgroup sys_congure_reno CongURE implementation of TCP Reno * @ingroup sys_congure @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef CONGURE_RENO_H -#define CONGURE_RENO_H #include @@ -308,5 +308,5 @@ void congure_reno_snd_report_ecn_ce(congure_snd_t *c, ztimer_now_t time); } #endif -#endif /* CONGURE_RENO_H */ /** @} */ +#endif /* CONGURE_RENO_H */ diff --git a/sys/include/congure/test.h b/sys/include/congure/test.h index 9340b6674731..e13b7d5801d5 100644 --- a/sys/include/congure/test.h +++ b/sys/include/congure/test.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CONGURE_TEST_H +#define CONGURE_TEST_H + /** * @defgroup sys_congure_test CongURE test framework shell commands * @ingroup sys_congure @@ -33,9 +36,6 @@ * @author Martine S Lenders */ -#ifndef CONGURE_TEST_H -#define CONGURE_TEST_H - #include "congure_impl.h" #ifdef __cplusplus @@ -328,5 +328,5 @@ int congure_test_call_report(int argc, char **argv); } #endif -#endif /* CONGURE_TEST_H */ /** @} */ +#endif /* CONGURE_TEST_H */ diff --git a/sys/include/crypto/aes.h b/sys/include/crypto/aes.h index a0151f0f4672..0e70b35377d4 100644 --- a/sys/include/crypto/aes.h +++ b/sys/include/crypto/aes.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_AES_H +#define CRYPTO_AES_H + /** * @ingroup sys_crypto * @{ @@ -27,9 +30,6 @@ * @author Zakaria Kasmi */ -#ifndef CRYPTO_AES_H -#define CRYPTO_AES_H - #include #include "crypto/ciphers.h" diff --git a/sys/include/crypto/chacha20poly1305.h b/sys/include/crypto/chacha20poly1305.h index 1f6042089c4d..51736d7e34d7 100644 --- a/sys/include/crypto/chacha20poly1305.h +++ b/sys/include/crypto/chacha20poly1305.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_CHACHA20POLY1305_H +#define CRYPTO_CHACHA20POLY1305_H + /** * @defgroup sys_crypto_chacha20poly1305 chacha20poly1305 AEAD cipher * @ingroup sys_crypto @@ -25,9 +28,6 @@ * @author Koen Zandberg */ -#ifndef CRYPTO_CHACHA20POLY1305_H -#define CRYPTO_CHACHA20POLY1305_H - #include "crypto/poly1305.h" #ifdef __cplusplus @@ -114,5 +114,5 @@ void chacha20_encrypt_decrypt(const uint8_t *input, uint8_t *output, #ifdef __cplusplus } #endif -#endif /* CRYPTO_CHACHA20POLY1305_H */ /** @} */ +#endif /* CRYPTO_CHACHA20POLY1305_H */ diff --git a/sys/include/crypto/ciphers.h b/sys/include/crypto/ciphers.h index b9ae66fa479e..640e127adb9e 100644 --- a/sys/include/crypto/ciphers.h +++ b/sys/include/crypto/ciphers.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_CIPHERS_H +#define CRYPTO_CIPHERS_H + /** * @ingroup sys_crypto * @{ @@ -19,9 +22,6 @@ * @author Mark Essien */ -#ifndef CRYPTO_CIPHERS_H -#define CRYPTO_CIPHERS_H - #include #include "modules.h" diff --git a/sys/include/crypto/helper.h b/sys/include/crypto/helper.h index 667a92be4960..fcdf0679f065 100644 --- a/sys/include/crypto/helper.h +++ b/sys/include/crypto/helper.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_HELPER_H +#define CRYPTO_HELPER_H + /** * @ingroup sys_crypto * @{ @@ -17,9 +20,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_HELPER_H -#define CRYPTO_HELPER_H - #include #include @@ -67,5 +67,5 @@ void crypto_secure_wipe(void *buf, size_t len); } #endif -#endif /* CRYPTO_HELPER_H */ /** @} */ +#endif /* CRYPTO_HELPER_H */ diff --git a/sys/include/crypto/modes/cbc.h b/sys/include/crypto/modes/cbc.h index 914016f0f31e..989a327b2483 100644 --- a/sys/include/crypto/modes/cbc.h +++ b/sys/include/crypto/modes/cbc.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_MODES_CBC_H +#define CRYPTO_MODES_CBC_H + /** * @ingroup sys_crypto * @{ @@ -17,9 +20,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CBC_H -#define CRYPTO_MODES_CBC_H - #include #include "crypto/ciphers.h" @@ -68,5 +68,5 @@ int cipher_decrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *in } #endif -#endif /* CRYPTO_MODES_CBC_H */ /** @} */ +#endif /* CRYPTO_MODES_CBC_H */ diff --git a/sys/include/crypto/modes/ccm.h b/sys/include/crypto/modes/ccm.h index d8e11345c55a..6184e57fa2a4 100644 --- a/sys/include/crypto/modes/ccm.h +++ b/sys/include/crypto/modes/ccm.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_MODES_CCM_H +#define CRYPTO_MODES_CCM_H + /** * @ingroup sys_crypto * @{ @@ -17,9 +20,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CCM_H -#define CRYPTO_MODES_CCM_H - #include "crypto/ciphers.h" #ifdef __cplusplus @@ -109,5 +109,5 @@ int cipher_decrypt_ccm(const cipher_t *cipher, } #endif -#endif /* CRYPTO_MODES_CCM_H */ /** @} */ +#endif /* CRYPTO_MODES_CCM_H */ diff --git a/sys/include/crypto/modes/ctr.h b/sys/include/crypto/modes/ctr.h index 7f65b44ab4b2..a877ea07a903 100644 --- a/sys/include/crypto/modes/ctr.h +++ b/sys/include/crypto/modes/ctr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_MODES_CTR_H +#define CRYPTO_MODES_CTR_H + /** * @ingroup sys_crypto * @{ @@ -17,9 +20,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_CTR_H -#define CRYPTO_MODES_CTR_H - #include "crypto/ciphers.h" #ifdef __cplusplus @@ -75,5 +75,5 @@ int cipher_decrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16], } #endif -#endif /* CRYPTO_MODES_CTR_H */ /** @} */ +#endif /* CRYPTO_MODES_CTR_H */ diff --git a/sys/include/crypto/modes/ecb.h b/sys/include/crypto/modes/ecb.h index 35b23098efc5..d76e77411b48 100644 --- a/sys/include/crypto/modes/ecb.h +++ b/sys/include/crypto/modes/ecb.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_MODES_ECB_H +#define CRYPTO_MODES_ECB_H + /** * @ingroup sys_crypto * @{ @@ -17,9 +20,6 @@ * @author Nico von Geyso */ -#ifndef CRYPTO_MODES_ECB_H -#define CRYPTO_MODES_ECB_H - #include "crypto/ciphers.h" #ifdef __cplusplus @@ -65,5 +65,5 @@ int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input, } #endif -#endif /* CRYPTO_MODES_ECB_H */ /** @} */ +#endif /* CRYPTO_MODES_ECB_H */ diff --git a/sys/include/crypto/modes/ocb.h b/sys/include/crypto/modes/ocb.h index ef076b40a560..a4d3865b6eb4 100644 --- a/sys/include/crypto/modes/ocb.h +++ b/sys/include/crypto/modes/ocb.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_MODES_OCB_H +#define CRYPTO_MODES_OCB_H + /** * @ingroup sys_crypto * @{ @@ -20,9 +23,6 @@ * @author Mathias Tausig */ -#ifndef CRYPTO_MODES_OCB_H -#define CRYPTO_MODES_OCB_H - #include "crypto/ciphers.h" #include #include @@ -112,5 +112,5 @@ int32_t cipher_decrypt_ocb(const cipher_t *cipher, } #endif -#endif /* CRYPTO_MODES_OCB_H */ /** @} */ +#endif /* CRYPTO_MODES_OCB_H */ diff --git a/sys/include/crypto/poly1305.h b/sys/include/crypto/poly1305.h index 0512b0f40b23..56e790f9bcec 100644 --- a/sys/include/crypto/poly1305.h +++ b/sys/include/crypto/poly1305.h @@ -8,6 +8,8 @@ * directory for more details. */ +#ifndef CRYPTO_POLY1305_H +#define CRYPTO_POLY1305_H /** * @ingroup sys_crypto * @defgroup sys_crypto_poly1305 poly1305 @@ -25,8 +27,6 @@ * * @see https://tools.ietf.org/html/rfc8439#section-2.5 */ -#ifndef CRYPTO_POLY1305_H -#define CRYPTO_POLY1305_H #ifdef __cplusplus extern "C" { @@ -90,5 +90,5 @@ void poly1305_auth(uint8_t *mac, const uint8_t *data, size_t len, #ifdef __cplusplus } #endif -#endif /* CRYPTO_POLY1305_H */ /** @} */ +#endif /* CRYPTO_POLY1305_H */ diff --git a/sys/include/crypto/psa/riot_ciphers.h b/sys/include/crypto/psa/riot_ciphers.h index 433be055fa6b..e8211c0c2a7a 100644 --- a/sys/include/crypto/psa/riot_ciphers.h +++ b/sys/include/crypto/psa/riot_ciphers.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef CRYPTO_PSA_RIOT_CIPHERS_H +#define CRYPTO_PSA_RIOT_CIPHERS_H + /** * @ingroup sys_psa_crypto * @{ @@ -16,9 +19,6 @@ * */ -#ifndef CRYPTO_PSA_RIOT_CIPHERS_H -#define CRYPTO_PSA_RIOT_CIPHERS_H - #ifdef __cplusplus extern "C" { #endif @@ -40,5 +40,5 @@ typedef cipher_t psa_cipher_aes_256_ctx_t; } #endif -#endif /* CRYPTO_PSA_RIOT_CIPHERS_H */ /** @} */ +#endif /* CRYPTO_PSA_RIOT_CIPHERS_H */ diff --git a/sys/include/debug_irq_disable.h b/sys/include/debug_irq_disable.h index 1a15042ff164..0e84db04b226 100644 --- a/sys/include/debug_irq_disable.h +++ b/sys/include/debug_irq_disable.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef DEBUG_IRQ_DISABLE_H +#define DEBUG_IRQ_DISABLE_H + /** * @defgroup debug_irq_disable IRQ Disable Debug helper * @ingroup sys @@ -17,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef DEBUG_IRQ_DISABLE_H -#define DEBUG_IRQ_DISABLE_H - #include #ifdef __cplusplus diff --git a/sys/include/div.h b/sys/include/div.h index 6c044f76bccb..8374a02c091a 100644 --- a/sys/include/div.h +++ b/sys/include/div.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef DIV_H +#define DIV_H + /** * @defgroup sys_div Integer division functions * @ingroup sys_math @@ -21,9 +24,6 @@ * @{ */ -#ifndef DIV_H -#define DIV_H - #include #include diff --git a/sys/include/ecc/golay2412.h b/sys/include/ecc/golay2412.h index 1aa314da368a..eee0b86fbc5a 100644 --- a/sys/include/ecc/golay2412.h +++ b/sys/include/ecc/golay2412.h @@ -21,6 +21,9 @@ * THE SOFTWARE. */ +#ifndef ECC_GOLAY2412_H +#define ECC_GOLAY2412_H + /** * @ingroup sys_ecc * @{ @@ -36,9 +39,6 @@ * @author Peter Kietzmann */ -#ifndef ECC_GOLAY2412_H -#define ECC_GOLAY2412_H - #ifdef __cplusplus extern "C" { #endif @@ -71,5 +71,5 @@ void golay2412_decode(uint32_t _dec_msg_len, } #endif -#endif /* ECC_GOLAY2412_H */ /** @} */ +#endif /* ECC_GOLAY2412_H */ diff --git a/sys/include/ecc/hamming256.h b/sys/include/ecc/hamming256.h index 3d852fa8935a..8377156b3786 100644 --- a/sys/include/ecc/hamming256.h +++ b/sys/include/ecc/hamming256.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ECC_HAMMING256_H +#define ECC_HAMMING256_H + /** * @ingroup sys_ecc * @brief @@ -15,9 +18,6 @@ * @author Lucas Jenß */ -#ifndef ECC_HAMMING256_H -#define ECC_HAMMING256_H - #include #ifdef __cplusplus @@ -64,5 +64,5 @@ uint8_t hamming_verify256x( uint8_t *data, uint32_t size, const uint8_t *code ); } #endif -#endif /* ECC_HAMMING256_H */ /** @} */ +#endif /* ECC_HAMMING256_H */ diff --git a/sys/include/ecc/repetition.h b/sys/include/ecc/repetition.h index 964b84bab35b..79f6e683043b 100644 --- a/sys/include/ecc/repetition.h +++ b/sys/include/ecc/repetition.h @@ -21,6 +21,9 @@ * THE SOFTWARE. */ +#ifndef ECC_REPETITION_H +#define ECC_REPETITION_H + /** * @ingroup sys_ecc * @{ @@ -32,9 +35,6 @@ * @author Peter Kietzmann */ -#ifndef ECC_REPETITION_H -#define ECC_REPETITION_H - #ifdef __cplusplus extern "C" { #endif @@ -73,5 +73,5 @@ void repetition_decode(unsigned int _dec_msg_len, } #endif -#endif /* ECC_REPETITION_H */ /** @} */ +#endif /* ECC_REPETITION_H */ diff --git a/sys/include/eepreg.h b/sys/include/eepreg.h index 269d6c3044bd..476d719c4bc5 100644 --- a/sys/include/eepreg.h +++ b/sys/include/eepreg.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef EEPREG_H +#define EEPREG_H + /** * @defgroup sys_eepreg EEPROM registration * @ingroup sys @@ -54,9 +57,6 @@ * @author Matthew Blue */ -#ifndef EEPREG_H -#define EEPREG_H - #include #include "periph_cpu.h" diff --git a/sys/include/embUnit/ColorOutputter.h b/sys/include/embUnit/ColorOutputter.h index 1f40fa546837..6725062b6a00 100644 --- a/sys/include/embUnit/ColorOutputter.h +++ b/sys/include/embUnit/ColorOutputter.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef EMBUNIT_COLOROUTPUTTER_H +#define EMBUNIT_COLOROUTPUTTER_H /** * @{ * @@ -13,8 +15,6 @@ * * @author Janos Kutscherauer */ -#ifndef EMBUNIT_COLOROUTPUTTER_H -#define EMBUNIT_COLOROUTPUTTER_H #include "Outputter.h" @@ -41,5 +41,5 @@ void ColorOutputter_printStatistics(OutputterRef self, TestResultRef result); } #endif -#endif /* EMBUNIT_COLOROUTPUTTER_H */ /** @} */ +#endif /* EMBUNIT_COLOROUTPUTTER_H */ diff --git a/sys/include/embUnit/ColorTextOutputter.h b/sys/include/embUnit/ColorTextOutputter.h index 8df9868131a0..e7e512b796fa 100644 --- a/sys/include/embUnit/ColorTextOutputter.h +++ b/sys/include/embUnit/ColorTextOutputter.h @@ -6,13 +6,13 @@ * directory for more details. */ +#ifndef EMBUNIT_COLORTEXTOUTPUTTER_H +#define EMBUNIT_COLORTEXTOUTPUTTER_H /** * @{ * * @file ColorTextOutputter.h */ -#ifndef EMBUNIT_COLORTEXTOUTPUTTER_H -#define EMBUNIT_COLORTEXTOUTPUTTER_H #include "Outputter.h" @@ -26,5 +26,5 @@ OutputterRef ColorTextOutputter_outputter(void); } #endif -#endif /* EMBUNIT_COLORTEXTOUTPUTTER_H */ /** @} */ +#endif /* EMBUNIT_COLORTEXTOUTPUTTER_H */ diff --git a/sys/include/endian.h b/sys/include/endian.h index 9f253955d896..086ec4a37196 100644 --- a/sys/include/endian.h +++ b/sys/include/endian.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ENDIAN_H +#define ENDIAN_H + /** * @defgroup sys_endian endian conversions as provided by most libcs * @ingroup sys @@ -20,9 +23,6 @@ * @author Marian Buschsieweke */ -#ifndef ENDIAN_H -#define ENDIAN_H - #include #ifdef __cplusplus @@ -177,5 +177,5 @@ uint64_t le64toh(uint64_t little_endian_64bits);/**< little endian to host, 64 b } #endif -#endif /* ENDIAN_H */ /** @} */ +#endif /* ENDIAN_H */ diff --git a/sys/include/entropy_source.h b/sys/include/entropy_source.h index 6e30609d7df2..f60c90bae3fc 100644 --- a/sys/include/entropy_source.h +++ b/sys/include/entropy_source.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ENTROPY_SOURCE_H +#define ENTROPY_SOURCE_H + /** * @defgroup sys_entropy_source_common Entropy Source Common * @ingroup sys_entropy_source @@ -18,9 +21,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_H -#define ENTROPY_SOURCE_H - #ifdef __cplusplus extern "C" { #endif @@ -302,5 +302,5 @@ static inline int entropy_source_test(entropy_source_tests_rep_t *state_rep, } #endif -#endif /* ENTROPY_SOURCE_H */ /** @} */ +#endif /* ENTROPY_SOURCE_H */ diff --git a/sys/include/entropy_source/adc_noise.h b/sys/include/entropy_source/adc_noise.h index 5fcef460fcce..1e0e1147ffab 100644 --- a/sys/include/entropy_source/adc_noise.h +++ b/sys/include/entropy_source/adc_noise.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ENTROPY_SOURCE_ADC_NOISE_H +#define ENTROPY_SOURCE_ADC_NOISE_H + /** * @defgroup sys_entropy_source_adc ADC Noise Entropy Source * @ingroup sys_entropy_source @@ -31,9 +34,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_ADC_NOISE_H -#define ENTROPY_SOURCE_ADC_NOISE_H - #ifdef __cplusplus extern "C" { #endif @@ -154,5 +154,5 @@ static inline uint32_t entropy_source_adc_entropy_per_sample(void) } #endif -#endif /* ENTROPY_SOURCE_ADC_NOISE_H */ /** @} */ +#endif /* ENTROPY_SOURCE_ADC_NOISE_H */ diff --git a/sys/include/entropy_source/zero_entropy.h b/sys/include/entropy_source/zero_entropy.h index aa76158a530e..ec50ea2ecfa5 100644 --- a/sys/include/entropy_source/zero_entropy.h +++ b/sys/include/entropy_source/zero_entropy.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ENTROPY_SOURCE_ZERO_ENTROPY_H +#define ENTROPY_SOURCE_ZERO_ENTROPY_H + /** * @defgroup sys_entropy_source_zero Zero Entropy Source * @ingroup sys_entropy_source @@ -19,9 +22,6 @@ * @author Peter Kietzmann */ -#ifndef ENTROPY_SOURCE_ZERO_ENTROPY_H -#define ENTROPY_SOURCE_ZERO_ENTROPY_H - #ifdef __cplusplus extern "C" { #endif @@ -88,5 +88,5 @@ int entropy_source_zero_get(uint8_t *buf, size_t len); } #endif -#endif /* ENTROPY_SOURCE_ZERO_ENTROPY_H */ /** @} */ +#endif /* ENTROPY_SOURCE_ZERO_ENTROPY_H */ diff --git a/sys/include/event.h b/sys/include/event.h index 19daf5c2091b..fd3c31427667 100644 --- a/sys/include/event.h +++ b/sys/include/event.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef EVENT_H +#define EVENT_H + /** * @defgroup sys_event Event Queue * @ingroup sys @@ -93,9 +96,6 @@ * @author Hauke Petersen */ -#ifndef EVENT_H -#define EVENT_H - #include #include #include @@ -489,5 +489,5 @@ void event_sync(event_queue_t *queue); #ifdef __cplusplus } #endif -#endif /* EVENT_H */ /** @} */ +#endif /* EVENT_H */ diff --git a/sys/include/event/callback.h b/sys/include/event/callback.h index ffed28db3b3a..8fb39414f196 100644 --- a/sys/include/event/callback.h +++ b/sys/include/event/callback.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef EVENT_CALLBACK_H +#define EVENT_CALLBACK_H + /** * @ingroup sys_event * @brief Provides a callback-with-argument event type @@ -33,9 +36,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_CALLBACK_H -#define EVENT_CALLBACK_H - #include #include "event.h" @@ -123,5 +123,5 @@ void _event_callback_handler(event_t *event); #ifdef __cplusplus } #endif -#endif /* EVENT_CALLBACK_H */ /** @} */ +#endif /* EVENT_CALLBACK_H */ diff --git a/sys/include/event/periodic.h b/sys/include/event/periodic.h index 47fc8e77cd37..c4154c89e773 100644 --- a/sys/include/event/periodic.h +++ b/sys/include/event/periodic.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef EVENT_PERIODIC_H +#define EVENT_PERIODIC_H + /** * @ingroup sys_event * @brief Provides functionality to trigger periodic events @@ -33,9 +36,6 @@ * */ -#ifndef EVENT_PERIODIC_H -#define EVENT_PERIODIC_H - #include "event.h" #include "ztimer/periodic.h" @@ -151,5 +151,5 @@ static inline void event_periodic_stop(event_periodic_t *event_periodic) #ifdef __cplusplus } #endif -#endif /* EVENT_PERIODIC_H */ /** @} */ +#endif /* EVENT_PERIODIC_H */ diff --git a/sys/include/event/periodic_callback.h b/sys/include/event/periodic_callback.h index 81a48aba7a79..768bc5c68df4 100644 --- a/sys/include/event/periodic_callback.h +++ b/sys/include/event/periodic_callback.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef EVENT_PERIODIC_CALLBACK_H +#define EVENT_PERIODIC_CALLBACK_H + /** * @ingroup sys_event * @brief Provides functionality to trigger periodic event callbacks @@ -22,9 +25,6 @@ * */ -#ifndef EVENT_PERIODIC_CALLBACK_H -#define EVENT_PERIODIC_CALLBACK_H - #include #include "event/callback.h" #include "event/periodic.h" @@ -180,5 +180,5 @@ static inline void event_periodic_callback_stop(event_periodic_callback_t *event #ifdef __cplusplus } #endif -#endif /* EVENT_PERIODIC_CALLBACK_H */ /** @} */ +#endif /* EVENT_PERIODIC_CALLBACK_H */ diff --git a/sys/include/event/source.h b/sys/include/event/source.h index 8e6f5a2e3278..2f5efdfb4b0a 100644 --- a/sys/include/event/source.h +++ b/sys/include/event/source.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef EVENT_SOURCE_H +#define EVENT_SOURCE_H + /** * @ingroup sys_event * @brief Provides functionality to trigger multiple events at once @@ -19,9 +22,6 @@ * */ -#ifndef EVENT_SOURCE_H -#define EVENT_SOURCE_H - #include "event.h" #include "list.h" #include "irq.h" @@ -114,5 +114,5 @@ static inline void event_source_trigger(event_source_t *source) #ifdef __cplusplus } #endif -#endif /* EVENT_SOURCE_H */ /** @} */ +#endif /* EVENT_SOURCE_H */ diff --git a/sys/include/event/thread.h b/sys/include/event/thread.h index 82ea17116100..e8c7a01547cb 100644 --- a/sys/include/event/thread.h +++ b/sys/include/event/thread.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef EVENT_THREAD_H +#define EVENT_THREAD_H + /** * @ingroup sys_event * @brief Provides utility functions for event handler threads @@ -50,9 +53,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_THREAD_H -#define EVENT_THREAD_H - #include #include "event.h" @@ -124,5 +124,5 @@ extern event_queue_t event_thread_queues[EVENT_QUEUE_PRIO_NUMOF]; #ifdef __cplusplus } #endif -#endif /* EVENT_THREAD_H */ /** @} */ +#endif /* EVENT_THREAD_H */ diff --git a/sys/include/event/timeout.h b/sys/include/event/timeout.h index 7885bb19b0be..80d86c400189 100644 --- a/sys/include/event/timeout.h +++ b/sys/include/event/timeout.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef EVENT_TIMEOUT_H +#define EVENT_TIMEOUT_H + /** * @ingroup sys_event * @brief Provides functionality to trigger events after timeout @@ -34,9 +37,6 @@ * @author Kaspar Schleiser */ -#ifndef EVENT_TIMEOUT_H -#define EVENT_TIMEOUT_H - #include "event.h" #include "ztimer.h" @@ -127,5 +127,5 @@ static inline bool event_timeout_is_pending(const event_timeout_t *event_timeout #ifdef __cplusplus } #endif -#endif /* EVENT_TIMEOUT_H */ /** @} */ +#endif /* EVENT_TIMEOUT_H */ diff --git a/sys/include/evtimer.h b/sys/include/evtimer.h index 28844200c2a6..97f3b32773d6 100644 --- a/sys/include/evtimer.h +++ b/sys/include/evtimer.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef EVTIMER_H +#define EVTIMER_H + /** * @defgroup sys_evtimer Millisecond interval event timers * @ingroup sys @@ -38,9 +41,6 @@ * @author Martine Lenders */ -#ifndef EVTIMER_H -#define EVTIMER_H - #include #include "modules.h" @@ -121,5 +121,5 @@ static inline uint32_t evtimer_now_msec(void) } #endif -#endif /* EVTIMER_H */ /** @} */ +#endif /* EVTIMER_H */ diff --git a/sys/include/evtimer_mbox.h b/sys/include/evtimer_mbox.h index 37d9507401fb..17e6320085c8 100644 --- a/sys/include/evtimer_mbox.h +++ b/sys/include/evtimer_mbox.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef EVTIMER_MBOX_H +#define EVTIMER_MBOX_H /** * @addtogroup sys_evtimer * @{ @@ -15,8 +17,6 @@ * * @author Simon Brummer */ -#ifndef EVTIMER_MBOX_H -#define EVTIMER_MBOX_H #include "assert.h" #include "msg.h" @@ -87,5 +87,5 @@ static inline void evtimer_init_mbox(evtimer_t *evtimer) } #endif -#endif /* EVTIMER_MBOX_H */ /** @} */ +#endif /* EVTIMER_MBOX_H */ diff --git a/sys/include/evtimer_msg.h b/sys/include/evtimer_msg.h index ce15f6c3c65a..014e7f0740f7 100644 --- a/sys/include/evtimer_msg.h +++ b/sys/include/evtimer_msg.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef EVTIMER_MSG_H +#define EVTIMER_MSG_H /** * @addtogroup sys_evtimer * @{ @@ -17,8 +19,6 @@ * @author Kaspar Schleiser * @author Martine Lenders */ -#ifndef EVTIMER_MSG_H -#define EVTIMER_MSG_H #include "msg.h" #include "evtimer.h" @@ -84,5 +84,5 @@ static inline void evtimer_init_msg(evtimer_t *evtimer) } #endif -#endif /* EVTIMER_MSG_H */ /** @} */ +#endif /* EVTIMER_MSG_H */ diff --git a/sys/include/fido2/ctap.h b/sys/include/fido2/ctap.h index dbf522b1de0e..e03bd760a71e 100644 --- a/sys/include/fido2/ctap.h +++ b/sys/include/fido2/ctap.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_H +#define FIDO2_CTAP_H + /** * @defgroup fido2_ctap CTAP * @ingroup fido2 @@ -22,9 +25,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_H -#define FIDO2_CTAP_H - #include #ifdef __cplusplus @@ -230,5 +230,5 @@ ctap_status_code_t fido2_ctap_reset(ctap_resp_t *resp); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_H */ /** @} */ +#endif /* FIDO2_CTAP_H */ diff --git a/sys/include/fido2/ctap/ctap.h b/sys/include/fido2/ctap/ctap.h index 7849ec9f74d5..6ed6b9725417 100644 --- a/sys/include/fido2/ctap/ctap.h +++ b/sys/include/fido2/ctap/ctap.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_CTAP_H +#define FIDO2_CTAP_CTAP_H + /** * @defgroup fido2_ctap_ctap FIDO2 CTAP * @ingroup fido2_ctap @@ -22,9 +25,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_H -#define FIDO2_CTAP_CTAP_H - #include #include "mutex.h" @@ -680,5 +680,5 @@ ctap_state_t *fido2_ctap_get_state(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_H */ /** @} */ +#endif /* FIDO2_CTAP_CTAP_H */ diff --git a/sys/include/fido2/ctap/ctap_cbor.h b/sys/include/fido2/ctap/ctap_cbor.h index 7b5a808e8f16..fdbb5ce50ae0 100644 --- a/sys/include/fido2/ctap/ctap_cbor.h +++ b/sys/include/fido2/ctap/ctap_cbor.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_CTAP_CBOR_H +#define FIDO2_CTAP_CTAP_CBOR_H + /** * @defgroup fido2_ctap_cbor FIDO2 CTAP CBOR * @ingroup fido2_ctap @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_CBOR_H -#define FIDO2_CTAP_CTAP_CBOR_H - #include "fido2/ctap/ctap.h" #ifdef __cplusplus @@ -334,5 +334,5 @@ void fido2_ctap_cbor_init_encoder(uint8_t *buf, size_t len); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_CBOR_H */ /** @} */ +#endif /* FIDO2_CTAP_CTAP_CBOR_H */ diff --git a/sys/include/fido2/ctap/ctap_crypto.h b/sys/include/fido2/ctap/ctap_crypto.h index ac551ccfb863..23d08bb2ca03 100644 --- a/sys/include/fido2/ctap/ctap_crypto.h +++ b/sys/include/fido2/ctap/ctap_crypto.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_CTAP_CRYPTO_H +#define FIDO2_CTAP_CTAP_CRYPTO_H + /** * @defgroup fido2_ctap_crypto FIDO2 CTAP crypto * @ingroup fido2_ctap @@ -20,9 +23,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_CRYPTO_H -#define FIDO2_CTAP_CTAP_CRYPTO_H - #include #include "hashes/sha256.h" @@ -298,5 +298,5 @@ ctap_status_code_t fido2_ctap_crypto_aes_ccm_dec(uint8_t *out, size_t out_len, #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_CRYPTO_H */ /** @} */ +#endif /* FIDO2_CTAP_CTAP_CRYPTO_H */ diff --git a/sys/include/fido2/ctap/ctap_mem.h b/sys/include/fido2/ctap/ctap_mem.h index 96e52d9da2e5..b921eb1ca968 100644 --- a/sys/include/fido2/ctap/ctap_mem.h +++ b/sys/include/fido2/ctap/ctap_mem.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_CTAP_MEM_H +#define FIDO2_CTAP_CTAP_MEM_H + /** * @defgroup fido2_ctap_mem FIDO2 CTAP flash * @ingroup fido2_ctap @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_MEM_H -#define FIDO2_CTAP_CTAP_MEM_H - #include #include "fido2/ctap/ctap.h" @@ -170,5 +170,5 @@ ctap_status_code_t fido2_ctap_mem_write_rk_to_flash(ctap_resident_key_t *rk); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_MEM_H */ /** @} */ +#endif /* FIDO2_CTAP_CTAP_MEM_H */ diff --git a/sys/include/fido2/ctap/ctap_utils.h b/sys/include/fido2/ctap/ctap_utils.h index 7aa988bef7e7..9ed4ba5e080a 100644 --- a/sys/include/fido2/ctap/ctap_utils.h +++ b/sys/include/fido2/ctap/ctap_utils.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_CTAP_UTILS_H +#define FIDO2_CTAP_CTAP_UTILS_H + /** * @defgroup fido2_ctap_utils FIDO2 CTAP utils * @ingroup fido2_ctap @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_CTAP_UTILS_H -#define FIDO2_CTAP_CTAP_UTILS_H - #include #include "fido2/ctap/ctap.h" #include "periph/gpio.h" @@ -90,5 +90,5 @@ static inline bool fido2_ctap_utils_ks_equal(const ctap_resident_key_t *k1, #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_CTAP_UTILS_H */ /** @} */ +#endif /* FIDO2_CTAP_CTAP_UTILS_H */ diff --git a/sys/include/fido2/ctap/transport/ctap_transport.h b/sys/include/fido2/ctap/transport/ctap_transport.h index 41f0ff52f8df..9465c7a7ad5d 100644 --- a/sys/include/fido2/ctap/transport/ctap_transport.h +++ b/sys/include/fido2/ctap/transport/ctap_transport.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H +#define FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H + /** * @defgroup fido2_ctap_transport FIDO2 CTAP transport * @ingroup fido2_ctap @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H -#define FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H - #include #include "mutex.h" #include "timex.h" @@ -44,5 +44,5 @@ void fido2_ctap_transport_init(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H */ /** @} */ +#endif /* FIDO2_CTAP_TRANSPORT_CTAP_TRANSPORT_H */ diff --git a/sys/include/fido2/ctap/transport/hid/ctap_hid.h b/sys/include/fido2/ctap/transport/hid/ctap_hid.h index 79908d81981e..8f7d424a8660 100644 --- a/sys/include/fido2/ctap/transport/hid/ctap_hid.h +++ b/sys/include/fido2/ctap/transport/hid/ctap_hid.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H +#define FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H + /** * @defgroup fido2_ctap_transport_hid FIDO2 CTAPHID * @ingroup fido2_ctap_transport @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H -#define FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H - #include #include "usb/usbus/hid.h" @@ -251,5 +251,5 @@ bool fido2_ctap_transport_hid_should_cancel(void); #ifdef __cplusplus } #endif -#endif /* FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H */ /** @} */ +#endif /* FIDO2_CTAP_TRANSPORT_HID_CTAP_HID_H */ diff --git a/sys/include/flash_utils.h b/sys/include/flash_utils.h index e5bdd64428d8..b2ca046c8958 100644 --- a/sys/include/flash_utils.h +++ b/sys/include/flash_utils.h @@ -6,6 +6,9 @@ * details. */ +#ifndef FLASH_UTILS_H +#define FLASH_UTILS_H + /** * @defgroup sys_flash_utils Utility functions, macros, and types for * read-only memory @@ -44,9 +47,6 @@ * @author Marian Buschsieweke */ -#ifndef FLASH_UTILS_H -#define FLASH_UTILS_H - #include #include @@ -251,5 +251,5 @@ static inline void flash_print_str(FLASH_ATTR const char *flash) } #endif -#endif /* FLASH_UTILS_H */ /** @} */ +#endif /* FLASH_UTILS_H */ diff --git a/sys/include/fmt.h b/sys/include/fmt.h index e0132510756a..b6eeaaa00673 100644 --- a/sys/include/fmt.h +++ b/sys/include/fmt.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FMT_H +#define FMT_H + /** * @defgroup sys_fmt String formatting (fmt) * @ingroup sys @@ -38,9 +41,6 @@ * @author Kaspar Schleiser */ -#ifndef FMT_H -#define FMT_H - #include #include #include diff --git a/sys/include/fmt_table.h b/sys/include/fmt_table.h index ecdb16726313..e9734ee3d574 100644 --- a/sys/include/fmt_table.h +++ b/sys/include/fmt_table.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FMT_TABLE_H +#define FMT_TABLE_H + /** * @defgroup sys_fmt_table Table extension of the string formatting API (fmt_table) * @ingroup sys_fmt @@ -24,9 +27,6 @@ * @author Marian Buschsieweke */ -#ifndef FMT_TABLE_H -#define FMT_TABLE_H - #include #include diff --git a/sys/include/frac.h b/sys/include/frac.h index 2c2031842203..c466717b4520 100644 --- a/sys/include/frac.h +++ b/sys/include/frac.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FRAC_H +#define FRAC_H + /** * @defgroup sys_frac Fractional integer operations * @ingroup sys @@ -38,9 +41,6 @@ * @{ */ -#ifndef FRAC_H -#define FRAC_H - #include #ifdef __cplusplus diff --git a/sys/include/fs/constfs.h b/sys/include/fs/constfs.h index 435fe95001cc..6eb8ff6cdbe2 100644 --- a/sys/include/fs/constfs.h +++ b/sys/include/fs/constfs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_CONSTFS_H +#define FS_CONSTFS_H + /** * @defgroup sys_fs_constfs ConstFS static file system * @ingroup sys_fs @@ -21,9 +24,6 @@ * @author Joakim Nohlgård */ -#ifndef FS_CONSTFS_H -#define FS_CONSTFS_H - #include #include @@ -61,6 +61,6 @@ extern const vfs_file_system_t constfs_file_system; } #endif -#endif /* FS_CONSTFS_H */ - /** @} */ + +#endif /* FS_CONSTFS_H */ diff --git a/sys/include/fs/devfs.h b/sys/include/fs/devfs.h index 4bc08d513344..c16ba1d8f87c 100644 --- a/sys/include/fs/devfs.h +++ b/sys/include/fs/devfs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_DEVFS_H +#define FS_DEVFS_H + /** * @defgroup sys_fs_devfs DevFS device file system * @ingroup sys_fs @@ -22,9 +25,6 @@ * @author Joakim Nohlgård */ -#ifndef FS_DEVFS_H -#define FS_DEVFS_H - #include "clist.h" #include "vfs.h" @@ -89,6 +89,6 @@ int devfs_unregister(devfs_t *node); } #endif -#endif /* FS_DEVFS_H */ - /** @} */ + +#endif /* FS_DEVFS_H */ diff --git a/sys/include/fs/fatfs.h b/sys/include/fs/fatfs.h index bfaf86e4d865..e67ccb0a0485 100644 --- a/sys/include/fs/fatfs.h +++ b/sys/include/fs/fatfs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_FATFS_H +#define FS_FATFS_H + /** * @defgroup sys_fatfs FatFs integration * @ingroup sys_fs @@ -17,9 +20,6 @@ * @author Michel Rottleuthner */ -#ifndef FS_FATFS_H -#define FS_FATFS_H - #ifdef __cplusplus extern "C" { #endif @@ -101,6 +101,6 @@ extern const vfs_file_system_t fatfs_file_system; } #endif -#endif /* FS_FATFS_H */ - /** @} */ + +#endif /* FS_FATFS_H */ diff --git a/sys/include/fs/littlefs2_fs.h b/sys/include/fs/littlefs2_fs.h index 17da92515585..12dbd89db1e2 100644 --- a/sys/include/fs/littlefs2_fs.h +++ b/sys/include/fs/littlefs2_fs.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef FS_LITTLEFS2_FS_H +#define FS_LITTLEFS2_FS_H + /** * @defgroup sys_littlefs2 littlefs v2 integration * @ingroup pkg_littlefs2 @@ -21,9 +24,6 @@ * @author Koen Zandberg */ -#ifndef FS_LITTLEFS2_FS_H -#define FS_LITTLEFS2_FS_H - #include #include "vfs.h" @@ -124,5 +124,5 @@ extern const vfs_file_system_t littlefs2_file_system; } #endif -#endif /* FS_LITTLEFS2_FS_H */ /** @} */ +#endif /* FS_LITTLEFS2_FS_H */ diff --git a/sys/include/fs/littlefs_fs.h b/sys/include/fs/littlefs_fs.h index 7c458d5c2736..ad5a0ca2cd49 100644 --- a/sys/include/fs/littlefs_fs.h +++ b/sys/include/fs/littlefs_fs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_LITTLEFS_FS_H +#define FS_LITTLEFS_FS_H + /** * @defgroup sys_littlefs littlefs integration * @ingroup pkg_littlefs @@ -19,9 +22,6 @@ * @author Vincent Dupont */ -#ifndef FS_LITTLEFS_FS_H -#define FS_LITTLEFS_FS_H - #include #include "vfs.h" @@ -106,5 +106,5 @@ extern const vfs_file_system_t littlefs_file_system; } #endif -#endif /* FS_LITTLEFS_FS_H */ /** @} */ +#endif /* FS_LITTLEFS_FS_H */ diff --git a/sys/include/fs/lwext4_fs.h b/sys/include/fs/lwext4_fs.h index 3cfe55f822c4..27b4dcb0be82 100644 --- a/sys/include/fs/lwext4_fs.h +++ b/sys/include/fs/lwext4_fs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_LWEXT4_FS_H +#define FS_LWEXT4_FS_H + /** * @defgroup sys_lwext4 lwEXT4 integration * @ingroup pkg_lwext4 @@ -19,9 +22,6 @@ * @author Benjamin Valentin */ -#ifndef FS_LWEXT4_FS_H -#define FS_LWEXT4_FS_H - #include #include "vfs.h" @@ -54,5 +54,5 @@ extern const vfs_file_system_t lwext4_file_system; } #endif -#endif /* FS_LWEXT4_FS_H */ /** @} */ +#endif /* FS_LWEXT4_FS_H */ diff --git a/sys/include/fs/native_fs.h b/sys/include/fs/native_fs.h index 5abfd9092231..7129b153ec6a 100644 --- a/sys/include/fs/native_fs.h +++ b/sys/include/fs/native_fs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_NATIVE_FS_H +#define FS_NATIVE_FS_H + /** * @defgroup sys_fs_native Native FS Integration * @ingroup cpu_native @@ -19,9 +22,6 @@ * @author Benjamin Valentin */ -#ifndef FS_NATIVE_FS_H -#define FS_NATIVE_FS_H - #include #include "vfs.h" @@ -46,5 +46,5 @@ extern const vfs_file_system_t native_file_system; } #endif -#endif /* FS_NATIVE_FS_H */ /** @} */ +#endif /* FS_NATIVE_FS_H */ diff --git a/sys/include/fs/spiffs_fs.h b/sys/include/fs/spiffs_fs.h index caa305ad6be1..b434c8e5d469 100644 --- a/sys/include/fs/spiffs_fs.h +++ b/sys/include/fs/spiffs_fs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef FS_SPIFFS_FS_H +#define FS_SPIFFS_FS_H + /** * @defgroup sys_spiffs SPIFFS integration * @ingroup pkg_spiffs @@ -41,9 +44,6 @@ * @author Vincent Dupont */ -#ifndef FS_SPIFFS_FS_H -#define FS_SPIFFS_FS_H - #ifdef __cplusplus extern "C" { #endif @@ -150,6 +150,6 @@ void spiffs_unlock(struct spiffs_t *fs); } #endif -#endif /* FS_SPIFFS_FS_H */ - /** @} */ + +#endif /* FS_SPIFFS_FS_H */ diff --git a/sys/include/fuzzing.h b/sys/include/fuzzing.h index feb8bb4fba8c..671d4254a1e8 100644 --- a/sys/include/fuzzing.h +++ b/sys/include/fuzzing.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef FUZZING_H +#define FUZZING_H + /** * @defgroup sys_fuzzing FUZZING utilities * @ingroup sys @@ -19,9 +22,6 @@ * @author Sören Tempel */ -#ifndef FUZZING_H -#define FUZZING_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/hashes.h b/sys/include/hashes.h index 34d0b38ea04b..9fdec8b9d4c3 100644 --- a/sys/include/hashes.h +++ b/sys/include/hashes.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_H +#define HASHES_H + /** * @ingroup sys_hashes_non_crypto * @{ @@ -17,9 +20,6 @@ * @author Christian Mehlis */ -#ifndef HASHES_H -#define HASHES_H - #include #include diff --git a/sys/include/hashes/aes128_cmac.h b/sys/include/hashes/aes128_cmac.h index a32614e101cd..76c91256ed1b 100644 --- a/sys/include/hashes/aes128_cmac.h +++ b/sys/include/hashes/aes128_cmac.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_AES128_CMAC_H +#define HASHES_AES128_CMAC_H + /** * @defgroup sys_hashes_aes128_cmac AES128_CMAC * @ingroup sys_hashes_keyed @@ -19,9 +22,6 @@ * @author José Ignacio Alamos */ -#ifndef HASHES_AES128_CMAC_H -#define HASHES_AES128_CMAC_H - #include #include "crypto/ciphers.h" @@ -84,5 +84,5 @@ void aes128_cmac_final(aes128_cmac_context_t *ctx, void *digest); } #endif -#endif /* HASHES_AES128_CMAC_H */ /** @} */ +#endif /* HASHES_AES128_CMAC_H */ diff --git a/sys/include/hashes/md5.h b/sys/include/hashes/md5.h index 56623ad7434b..fc5b4ec2a417 100644 --- a/sys/include/hashes/md5.h +++ b/sys/include/hashes/md5.h @@ -17,6 +17,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef HASHES_MD5_H +#define HASHES_MD5_H + /** * @defgroup sys_hashes_md5 MD5 * @ingroup sys_hashes_unkeyed @@ -51,9 +54,6 @@ * @author Hauke Petersen */ -#ifndef HASHES_MD5_H -#define HASHES_MD5_H - #include #include @@ -124,5 +124,5 @@ void md5(void *digest, const void *data, size_t len); } #endif -#endif /* HASHES_MD5_H */ /** @} */ +#endif /* HASHES_MD5_H */ diff --git a/sys/include/hashes/psa/riot_hashes.h b/sys/include/hashes/psa/riot_hashes.h index 6e2bfd6e5aab..35f223a856f4 100644 --- a/sys/include/hashes/psa/riot_hashes.h +++ b/sys/include/hashes/psa/riot_hashes.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_PSA_RIOT_HASHES_H +#define HASHES_PSA_RIOT_HASHES_H + /** * @ingroup sys_psa_crypto * @{ @@ -16,9 +19,6 @@ * */ -#ifndef HASHES_PSA_RIOT_HASHES_H -#define HASHES_PSA_RIOT_HASHES_H - #ifdef __cplusplus extern "C" { #endif @@ -89,5 +89,5 @@ typedef keccak_state_t psa_hashes_sha3_ctx_t; } #endif -#endif /* HASHES_PSA_RIOT_HASHES_H */ /** @} */ +#endif /* HASHES_PSA_RIOT_HASHES_H */ diff --git a/sys/include/hashes/sha1.h b/sys/include/hashes/sha1.h index f157f4fb754f..f08480803512 100644 --- a/sys/include/hashes/sha1.h +++ b/sys/include/hashes/sha1.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA1_H +#define HASHES_SHA1_H + /** * @defgroup sys_hashes_sha1 SHA-1 * @ingroup sys_hashes_unkeyed @@ -23,9 +26,6 @@ /* This code is public-domain - it is based on libcrypt * placed in the public domain by Wei Dai and other contributors. */ -#ifndef HASHES_SHA1_H -#define HASHES_SHA1_H - #include #ifdef __cplusplus @@ -35,12 +35,12 @@ extern "C" { /** * @brief Length of SHA-1 digests in byte */ -#define SHA1_DIGEST_LENGTH (20) +#define SHA1_DIGEST_LENGTH (20) /** * @brief Length of SHA-1 block in byte */ -#define SHA1_BLOCK_LENGTH (64) +#define SHA1_BLOCK_LENGTH (64) /** * @brief SHA-1 algorithm context @@ -117,5 +117,5 @@ void sha1_final_hmac(sha1_context *ctx, void *digest); } #endif -#endif /* HASHES_SHA1_H */ /** @} */ +#endif /* HASHES_SHA1_H */ diff --git a/sys/include/hashes/sha224.h b/sys/include/hashes/sha224.h index 8f2d04953f1c..4bb6931c69f3 100644 --- a/sys/include/hashes/sha224.h +++ b/sys/include/hashes/sha224.h @@ -30,6 +30,9 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#ifndef HASHES_SHA224_H +#define HASHES_SHA224_H + /** * @defgroup sys_hashes_sha224 SHA-224 * @ingroup sys_hashes_unkeyed @@ -46,9 +49,6 @@ * @author Peter Kietzmann */ -#ifndef HASHES_SHA224_H -#define HASHES_SHA224_H - #include #include diff --git a/sys/include/hashes/sha256.h b/sys/include/hashes/sha256.h index b4a303926ea6..385c90becb36 100644 --- a/sys/include/hashes/sha256.h +++ b/sys/include/hashes/sha256.h @@ -29,6 +29,9 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#ifndef HASHES_SHA256_H +#define HASHES_SHA256_H + /** * @defgroup sys_hashes_sha256 SHA-256 * @ingroup sys_hashes_unkeyed @@ -44,9 +47,6 @@ * @author Hermann Lelong */ -#ifndef HASHES_SHA256_H -#define HASHES_SHA256_H - #include #include diff --git a/sys/include/hashes/sha2xx_common.h b/sys/include/hashes/sha2xx_common.h index d685809fa580..7e50c737f5d9 100644 --- a/sys/include/hashes/sha2xx_common.h +++ b/sys/include/hashes/sha2xx_common.h @@ -30,6 +30,9 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ +#ifndef HASHES_SHA2XX_COMMON_H +#define HASHES_SHA2XX_COMMON_H + /** * @defgroup sys_hashes_sha2xx_common SHA-2xx common * @ingroup sys_hashes_unkeyed @@ -46,9 +49,6 @@ * @author Peter Kietzmann */ -#ifndef HASHES_SHA2XX_COMMON_H -#define HASHES_SHA2XX_COMMON_H - #include #include diff --git a/sys/include/hashes/sha3.h b/sys/include/hashes/sha3.h index 8bd5c04d0f9b..b4ce6516ef1b 100644 --- a/sys/include/hashes/sha3.h +++ b/sys/include/hashes/sha3.h @@ -11,6 +11,9 @@ * For more information see: http://creativecommons.org/publicdomain/zero/1.0/ */ +#ifndef HASHES_SHA3_H +#define HASHES_SHA3_H + /** * @defgroup sys_hashes_sha3 SHA-3 * @ingroup sys_hashes_unkeyed @@ -24,9 +27,6 @@ * @author RIOT OS adaptations by Mathias Tausig */ -#ifndef HASHES_SHA3_H -#define HASHES_SHA3_H - #include #ifdef __cplusplus @@ -189,5 +189,5 @@ void sha3_512(void *digest, const void *data, size_t len); } #endif -#endif /* HASHES_SHA3_H */ /** @} */ +#endif /* HASHES_SHA3_H */ diff --git a/sys/include/hashes/sha384.h b/sys/include/hashes/sha384.h index d93eacffb69d..c931e9997786 100644 --- a/sys/include/hashes/sha384.h +++ b/sys/include/hashes/sha384.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA384_H +#define HASHES_SHA384_H + /** * @defgroup sys_hashes_sha384 SHA-384 * @ingroup sys_hashes_unkeyed @@ -18,9 +21,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA384_H -#define HASHES_SHA384_H - #include #include diff --git a/sys/include/hashes/sha512.h b/sys/include/hashes/sha512.h index 0642412b1c3e..e2b3ba367ccd 100644 --- a/sys/include/hashes/sha512.h +++ b/sys/include/hashes/sha512.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA512_H +#define HASHES_SHA512_H + /** * @defgroup sys_hashes_sha512 SHA-512 * @ingroup sys_hashes_unkeyed @@ -18,9 +21,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_H -#define HASHES_SHA512_H - #include #include diff --git a/sys/include/hashes/sha512_224.h b/sys/include/hashes/sha512_224.h index 8600269378a4..0a6a8db01716 100644 --- a/sys/include/hashes/sha512_224.h +++ b/sys/include/hashes/sha512_224.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA512_224_H +#define HASHES_SHA512_224_H + /** * @defgroup sys_hashes_sha512_224 SHA-512/224 * @ingroup sys_hashes_unkeyed @@ -18,9 +21,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_224_H -#define HASHES_SHA512_224_H - #include #include diff --git a/sys/include/hashes/sha512_256.h b/sys/include/hashes/sha512_256.h index 0b9423e4b75a..71bfb4225bc9 100644 --- a/sys/include/hashes/sha512_256.h +++ b/sys/include/hashes/sha512_256.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA512_256_H +#define HASHES_SHA512_256_H + /** * @defgroup sys_hashes_sha512_256 SHA-512/256 * @ingroup sys_hashes_unkeyed @@ -18,9 +21,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_256_H -#define HASHES_SHA512_256_H - #include #include diff --git a/sys/include/hashes/sha512_common.h b/sys/include/hashes/sha512_common.h index 347b6cdfe38f..34d4aca8b097 100644 --- a/sys/include/hashes/sha512_common.h +++ b/sys/include/hashes/sha512_common.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef HASHES_SHA512_COMMON_H +#define HASHES_SHA512_COMMON_H + /** * @defgroup sys_hashes_sha512_common SHA-512 common * @ingroup sys_hashes_unkeyed @@ -18,9 +21,6 @@ * @author Mikolai Gütschow */ -#ifndef HASHES_SHA512_COMMON_H -#define HASHES_SHA512_COMMON_H - #include #include diff --git a/sys/include/imath.h b/sys/include/imath.h index 1f2ff5fcb11a..755a3ffebfdc 100644 --- a/sys/include/imath.h +++ b/sys/include/imath.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef IMATH_H +#define IMATH_H + /** * @defgroup sys_imath imath: Integer Math functions * @ingroup sys @@ -18,9 +21,6 @@ * @{ */ -#ifndef IMATH_H -#define IMATH_H - #include #ifdef __cplusplus @@ -140,5 +140,5 @@ static inline uint32_t powi(unsigned x, unsigned y) } #endif -#endif /* IMATH_H */ /** @} */ +#endif /* IMATH_H */ diff --git a/sys/include/iolist.h b/sys/include/iolist.h index a5617b4e1fbf..afdab0937437 100644 --- a/sys/include/iolist.h +++ b/sys/include/iolist.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef IOLIST_H +#define IOLIST_H + /** * @defgroup sys_iolist iolist scatter / gather IO * @ingroup sys @@ -21,9 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef IOLIST_H -#define IOLIST_H - #include #ifdef __cplusplus @@ -97,5 +97,5 @@ ssize_t iolist_to_buffer(const iolist_t *iolist, void *dst, size_t len); #ifdef __cplusplus } #endif -#endif /* IOLIST_H */ /** @} */ +#endif /* IOLIST_H */ diff --git a/sys/include/isrpipe.h b/sys/include/isrpipe.h index b1a18434f8ac..0e66cabe0874 100644 --- a/sys/include/isrpipe.h +++ b/sys/include/isrpipe.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ISRPIPE_H +#define ISRPIPE_H + /** * @defgroup isr_pipe ISR Pipe * @ingroup sys @@ -19,9 +22,6 @@ * */ -#ifndef ISRPIPE_H -#define ISRPIPE_H - #include #include "mutex.h" diff --git a/sys/include/isrpipe/read_timeout.h b/sys/include/isrpipe/read_timeout.h index 984de0c53fee..7986805465d9 100644 --- a/sys/include/isrpipe/read_timeout.h +++ b/sys/include/isrpipe/read_timeout.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ISRPIPE_READ_TIMEOUT_H +#define ISRPIPE_READ_TIMEOUT_H + /** * @defgroup isr_pipe_read_timeout Read timeouts with ISR pipe * @ingroup isr_pipe @@ -19,9 +22,6 @@ * */ -#ifndef ISRPIPE_READ_TIMEOUT_H -#define ISRPIPE_READ_TIMEOUT_H - #include "isrpipe.h" #ifdef __cplusplus diff --git a/sys/include/luid.h b/sys/include/luid.h index 86df1623611e..b6537cbcc0a9 100644 --- a/sys/include/luid.h +++ b/sys/include/luid.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef LUID_H +#define LUID_H + /** * @defgroup sys_luid Locally Unique ID Generator * @ingroup sys @@ -50,9 +53,6 @@ * @author Hauke Petersen */ -#ifndef LUID_H -#define LUID_H - #include #include "net/eui48.h" @@ -199,5 +199,5 @@ void luid_base(void *buf, size_t len); } #endif -#endif /* LUID_H */ /** @} */ +#endif /* LUID_H */ diff --git a/sys/include/matstat.h b/sys/include/matstat.h index 95e322f735e2..448c76c51ca4 100644 --- a/sys/include/matstat.h +++ b/sys/include/matstat.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef MATSTAT_H +#define MATSTAT_H + /** * @ingroup sys_matstat * @@ -29,9 +32,6 @@ * @author Joakim Nohlgård */ -#ifndef MATSTAT_H -#define MATSTAT_H - #include #ifdef __cplusplus @@ -113,6 +113,6 @@ void matstat_merge(matstat_state_t *dest, const matstat_state_t *src); } #endif -#endif /* MATSTAT_H */ - /** @} */ + +#endif /* MATSTAT_H */ diff --git a/sys/include/mineplex.h b/sys/include/mineplex.h index 4060ed1a2729..20785d91a712 100644 --- a/sys/include/mineplex.h +++ b/sys/include/mineplex.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef MINEPLEX_H +#define MINEPLEX_H + /** * @defgroup sys_mineplex 5x5 Font 'Mineplex' * @ingroup sys @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef MINEPLEX_H -#define MINEPLEX_H - #include #ifdef __cplusplus @@ -55,5 +55,5 @@ const uint8_t *mineplex_char(char c); } #endif -#endif /* MINEPLEX_H */ /** @} */ +#endif /* MINEPLEX_H */ diff --git a/sys/include/net/af.h b/sys/include/net/af.h index be4a58fe7e1c..99f0221d6b9c 100644 --- a/sys/include/net/af.h +++ b/sys/include/net/af.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_AF_H +#define NET_AF_H /** * @defgroup net_af UNIX address families * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_AF_H -#define NET_AF_H #ifdef __cplusplus extern "C" { @@ -48,5 +48,5 @@ typedef enum { } #endif -#endif /* NET_AF_H */ /** @} */ +#endif /* NET_AF_H */ diff --git a/sys/include/net/arp.h b/sys/include/net/arp.h index 844e4fca9b43..90242b7dd522 100644 --- a/sys/include/net/arp.h +++ b/sys/include/net/arp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_ARP_H +#define NET_ARP_H /** * @defgroup net_arp Address resolution protocol (ARP) * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_ARP_H -#define NET_ARP_H #ifdef __cplusplus extern "C" { @@ -40,5 +40,5 @@ extern "C" { } #endif -#endif /* NET_ARP_H */ /** @} */ +#endif /* NET_ARP_H */ diff --git a/sys/include/net/asymcute.h b/sys/include/net/asymcute.h index 3da576ffc6cf..f13ff2c41877 100644 --- a/sys/include/net/asymcute.h +++ b/sys/include/net/asymcute.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_ASYMCUTE_H +#define NET_ASYMCUTE_H + /** * @defgroup net_asymcute MQTT-SN Client (Asymcute) * @ingroup net @@ -41,9 +44,6 @@ * @author Hauke Petersen */ -#ifndef NET_ASYMCUTE_H -#define NET_ASYMCUTE_H - #include #include #include @@ -574,5 +574,5 @@ int asymcute_unsubscribe(asymcute_con_t *con, asymcute_req_t *req, } #endif -#endif /* NET_ASYMCUTE_H */ /** @} */ +#endif /* NET_ASYMCUTE_H */ diff --git a/sys/include/net/ble.h b/sys/include/net/ble.h index 630514169867..887bd3e90280 100644 --- a/sys/include/net/ble.h +++ b/sys/include/net/ble.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_BLE_H +#define NET_BLE_H + /** * @defgroup ble_defs Generic BLE defines * @ingroup ble @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLE_H -#define NET_BLE_H - #ifdef __cplusplus extern "C" { #endif @@ -496,5 +496,5 @@ extern "C" { } #endif -#endif /* NET_BLE_H */ /** @} */ +#endif /* NET_BLE_H */ diff --git a/sys/include/net/bluetil/ad.h b/sys/include/net/bluetil/ad.h index 55aa005e740e..366f67073caa 100644 --- a/sys/include/net/bluetil/ad.h +++ b/sys/include/net/bluetil/ad.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_BLUETIL_AD_H +#define NET_BLUETIL_AD_H + /** * @defgroup ble_bluetil_ad BLE Advertising Data (AD) Processing * @ingroup ble_bluetil @@ -24,9 +27,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLUETIL_AD_H -#define NET_BLUETIL_AD_H - #include #include #include @@ -205,5 +205,5 @@ static inline int bluetil_ad_init_with_flags(bluetil_ad_t *ad, } #endif -#endif /* NET_BLUETIL_AD_H */ /** @} */ +#endif /* NET_BLUETIL_AD_H */ diff --git a/sys/include/net/bluetil/addr.h b/sys/include/net/bluetil/addr.h index 2d998863b828..100704e69273 100644 --- a/sys/include/net/bluetil/addr.h +++ b/sys/include/net/bluetil/addr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_BLUETIL_ADDR_H +#define NET_BLUETIL_ADDR_H + /** * @defgroup ble_bluetil_addr BLE Address Helper * @ingroup ble_bluetil @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_BLUETIL_ADDR_H -#define NET_BLUETIL_ADDR_H - #include #include "net/ble.h" @@ -112,5 +112,5 @@ void bluetil_addr_ipv6_l2ll_print(const uint8_t *addr); } #endif -#endif /* NET_BLUETIL_ADDR_H */ /** @} */ +#endif /* NET_BLUETIL_ADDR_H */ diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index 6b9323524a7b..d7bd797fb930 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_COAP_H +#define NET_COAP_H + /** * @defgroup net_coap CoAP defines * @ingroup net @@ -19,9 +22,6 @@ * */ -#ifndef NET_COAP_H -#define NET_COAP_H - #ifdef __cplusplus extern "C" { #endif @@ -631,5 +631,5 @@ typedef enum { } #endif -#endif /* NET_COAP_H */ /** @} */ +#endif /* NET_COAP_H */ diff --git a/sys/include/net/cord/common.h b/sys/include/net/cord/common.h index 5248b62bacfb..352785bbde79 100644 --- a/sys/include/net/cord/common.h +++ b/sys/include/net/cord/common.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_COMMON_H +#define NET_CORD_COMMON_H + /** * @defgroup net_cord_common CoRE RD Common * @ingroup net_cord @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_COMMON_H -#define NET_CORD_COMMON_H - #include "net/cord/config.h" #ifdef __cplusplus @@ -64,5 +64,5 @@ int cord_common_add_qstring(coap_pkt_t *pkt); } #endif -#endif /* NET_CORD_COMMON_H */ /** @} */ +#endif /* NET_CORD_COMMON_H */ diff --git a/sys/include/net/cord/config.h b/sys/include/net/cord/config.h index a2d5e5ccdf3c..21b75fd3ac81 100644 --- a/sys/include/net/cord/config.h +++ b/sys/include/net/cord/config.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_CONFIG_H +#define NET_CORD_CONFIG_H + /** * @defgroup net_cord_config CoRE RD Configuration * @ingroup net_cord @@ -20,9 +23,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_CONFIG_H -#define NET_CORD_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -110,5 +110,5 @@ extern "C" { } #endif -#endif /* NET_CORD_CONFIG_H */ /** @} */ +#endif /* NET_CORD_CONFIG_H */ diff --git a/sys/include/net/cord/ep.h b/sys/include/net/cord/ep.h index aedaf60f7a5e..532875b98a1d 100644 --- a/sys/include/net/cord/ep.h +++ b/sys/include/net/cord/ep.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_EP_H +#define NET_CORD_EP_H + /** * @defgroup net_cord_ep CoRE RD Endpoint * @ingroup net_cord @@ -31,9 +34,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EP_H -#define NET_CORD_EP_H - #include "net/sock/udp.h" #ifdef __cplusplus @@ -115,5 +115,5 @@ void cord_ep_dump_status(void); } #endif -#endif /* NET_CORD_EP_H */ /** @} */ +#endif /* NET_CORD_EP_H */ diff --git a/sys/include/net/cord/ep_standalone.h b/sys/include/net/cord/ep_standalone.h index e6d52861ead0..0d0d10bdf0e0 100644 --- a/sys/include/net/cord/ep_standalone.h +++ b/sys/include/net/cord/ep_standalone.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_EP_STANDALONE_H +#define NET_CORD_EP_STANDALONE_H + /** * @defgroup net_cord_ep_standalone CoRE RD Endpoint Standalone Extension * @ingroup net_cord_ep @@ -23,9 +26,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EP_STANDALONE_H -#define NET_CORD_EP_STANDALONE_H - #ifdef __cplusplus extern "C" { #endif @@ -84,5 +84,5 @@ void cord_ep_standalone_signal(bool connected); } #endif -#endif /* NET_CORD_EP_STANDALONE_H */ /** @} */ +#endif /* NET_CORD_EP_STANDALONE_H */ diff --git a/sys/include/net/cord/epsim.h b/sys/include/net/cord/epsim.h index 4b14a9e69535..bfe66a113547 100644 --- a/sys/include/net/cord/epsim.h +++ b/sys/include/net/cord/epsim.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_EPSIM_H +#define NET_CORD_EPSIM_H + /** * @defgroup net_cord_epsim CoRE RD Simple Registration Endpoint * @ingroup net_cord @@ -25,9 +28,6 @@ * @author Hauke Petersen */ -#ifndef NET_CORD_EPSIM_H -#define NET_CORD_EPSIM_H - #include "net/sock/udp.h" #ifdef __cplusplus @@ -71,5 +71,5 @@ int cord_epsim_state(void); } #endif -#endif /* NET_CORD_EPSIM_H */ /** @} */ +#endif /* NET_CORD_EPSIM_H */ diff --git a/sys/include/net/cord/lc.h b/sys/include/net/cord/lc.h index 9588a56f25d3..fbaed9c75aee 100644 --- a/sys/include/net/cord/lc.h +++ b/sys/include/net/cord/lc.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CORD_LC_H +#define NET_CORD_LC_H + /** * @defgroup net_cord_lc CoRE RD Lookup Client * @ingroup net_cord @@ -46,9 +49,6 @@ * @author Aiman Ismail */ -#ifndef NET_CORD_LC_H -#define NET_CORD_LC_H - #include "net/sock/udp.h" #include "net/nanocoap.h" #include "clif.h" @@ -242,5 +242,5 @@ static inline ssize_t cord_lc_ep(cord_lc_rd_t *rd, cord_lc_ep_t *endpoint, } #endif -#endif /* NET_CORD_LC_H */ /** @} */ +#endif /* NET_CORD_LC_H */ diff --git a/sys/include/net/credman.h b/sys/include/net/credman.h index 91f988d32832..399b97a14504 100644 --- a/sys/include/net/credman.h +++ b/sys/include/net/credman.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_CREDMAN_H +#define NET_CREDMAN_H + /** * @defgroup net_credman (D)TLS Credential Manager * @ingroup net net_dtls @@ -24,9 +27,6 @@ * @author Aiman Ismail */ -#ifndef NET_CREDMAN_H -#define NET_CREDMAN_H - #include #include #include "modules.h" @@ -274,5 +274,5 @@ void credman_reset(void); } #endif -#endif /* NET_CREDMAN_H */ /** @} */ +#endif /* NET_CREDMAN_H */ diff --git a/sys/include/net/csma_sender.h b/sys/include/net/csma_sender.h index 7bf576351930..1ad159176ce6 100644 --- a/sys/include/net/csma_sender.h +++ b/sys/include/net/csma_sender.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_CSMA_SENDER_H +#define NET_CSMA_SENDER_H + /** * @defgroup net_csma_sender CSMA/CA helper * @ingroup net @@ -22,9 +25,6 @@ * @author Martine Lenders */ -#ifndef NET_CSMA_SENDER_H -#define NET_CSMA_SENDER_H - #include #include "net/netdev.h" @@ -142,6 +142,6 @@ int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist); } #endif -#endif /* NET_CSMA_SENDER_H */ - /** @} */ + +#endif /* NET_CSMA_SENDER_H */ diff --git a/sys/include/net/dhcpv6.h b/sys/include/net/dhcpv6.h index ec23e7db7943..d2e39f17abc8 100644 --- a/sys/include/net/dhcpv6.h +++ b/sys/include/net/dhcpv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DHCPV6_H +#define NET_DHCPV6_H /** * @defgroup net_dhcpv6 Dynamic Host Configuration Protocol for IPv6 (DHCPv6) * @ingroup net_ipv6 @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_H -#define NET_DHCPV6_H #ifdef __cplusplus extern "C" { @@ -109,5 +109,5 @@ extern "C" { } #endif -#endif /* NET_DHCPV6_H */ /** @} */ +#endif /* NET_DHCPV6_H */ diff --git a/sys/include/net/dhcpv6/client.h b/sys/include/net/dhcpv6/client.h index 9a2a82e8c761..cf7763fdd804 100644 --- a/sys/include/net/dhcpv6/client.h +++ b/sys/include/net/dhcpv6/client.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DHCPV6_CLIENT_H +#define NET_DHCPV6_CLIENT_H /** * @defgroup net_dhcpv6_client DHCPv6 client * @ingroup net_dhcpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_CLIENT_H -#define NET_DHCPV6_CLIENT_H #include "byteorder.h" #include "event.h" @@ -317,5 +317,5 @@ uint8_t dhcpv6_client_get_conf_mode(void); } #endif -#endif /* NET_DHCPV6_CLIENT_H */ /** @} */ +#endif /* NET_DHCPV6_CLIENT_H */ diff --git a/sys/include/net/dhcpv6/relay.h b/sys/include/net/dhcpv6/relay.h index 7c66e72e7f8d..9a84ea48fe76 100644 --- a/sys/include/net/dhcpv6/relay.h +++ b/sys/include/net/dhcpv6/relay.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DHCPV6_RELAY_H +#define NET_DHCPV6_RELAY_H /** * @defgroup net_dhcpv6_relay DHCPv6 relay agent * @ingroup net_dhcpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DHCPV6_RELAY_H -#define NET_DHCPV6_RELAY_H #include @@ -75,5 +75,5 @@ void dhcpv6_relay_init(event_queue_t *event_queue, uint16_t listen_netif, } #endif -#endif /* NET_DHCPV6_RELAY_H */ /** @} */ +#endif /* NET_DHCPV6_RELAY_H */ diff --git a/sys/include/net/dns.h b/sys/include/net/dns.h index bebaf8b62f39..a9d4940ef05c 100644 --- a/sys/include/net/dns.h +++ b/sys/include/net/dns.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DNS_H +#define NET_DNS_H /** * @defgroup net_dns DNS defines * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DNS_H -#define NET_DNS_H #include "modules.h" #include "net/sock/dns.h" @@ -100,5 +100,5 @@ static inline int dns_query(const char *domain_name, void *addr_out, int family) } #endif -#endif /* NET_DNS_H */ /** @} */ +#endif /* NET_DNS_H */ diff --git a/sys/include/net/dns/cache.h b/sys/include/net/dns/cache.h index 91a43ff28feb..9737691e9086 100644 --- a/sys/include/net/dns/cache.h +++ b/sys/include/net/dns/cache.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_DNS_CACHE_H +#define NET_DNS_CACHE_H + /** * @defgroup net_dns_cache DNS cache * @ingroup net_dns @@ -30,9 +33,6 @@ * @author Benjamin Valentin */ -#ifndef NET_DNS_CACHE_H -#define NET_DNS_CACHE_H - #include #include "modules.h" @@ -107,5 +107,5 @@ static inline void dns_cache_add(const char *domain_name, const void *addr, } #endif -#endif /* NET_DNS_CACHE_H */ /** @} */ +#endif /* NET_DNS_CACHE_H */ diff --git a/sys/include/net/dns/msg.h b/sys/include/net/dns/msg.h index 19f222239dee..b540e50d531e 100644 --- a/sys/include/net/dns/msg.h +++ b/sys/include/net/dns/msg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DNS_MSG_H +#define NET_DNS_MSG_H /** * @defgroup net_dns_msg DNS message parser and composer * @ingroup net_dns @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_DNS_MSG_H -#define NET_DNS_MSG_H #include #include @@ -117,5 +117,5 @@ int dns_msg_parse_reply(const uint8_t *buf, size_t len, int family, } #endif -#endif /* NET_DNS_MSG_H */ /** @} */ +#endif /* NET_DNS_MSG_H */ diff --git a/sys/include/net/dns_mock.h b/sys/include/net/dns_mock.h index 58a251f019c2..bf2aed65a5a5 100644 --- a/sys/include/net/dns_mock.h +++ b/sys/include/net/dns_mock.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DNS_MOCK_H +#define NET_DNS_MOCK_H /** * @defgroup net_dns_mock DNS defines * @ingroup net @@ -17,8 +19,6 @@ * * @author Hendrik van Essen */ -#ifndef NET_DNS_MOCK_H -#define NET_DNS_MOCK_H #ifdef __cplusplus extern "C" { @@ -52,5 +52,5 @@ static const ipv6_addr_t sock_dns_mock_example_com_addr_ipv6 = { { } #endif -#endif /* NET_DNS_MOCK_H */ /** @} */ +#endif /* NET_DNS_MOCK_H */ diff --git a/sys/include/net/dsm.h b/sys/include/net/dsm.h index 4e75541ace82..408209900806 100644 --- a/sys/include/net/dsm.h +++ b/sys/include/net/dsm.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_DSM_H +#define NET_DSM_H + /** * @defgroup net_dsm DTLS Session Management (DSM) * @ingroup net net_dtls @@ -27,9 +30,6 @@ * @author János Brodbeck */ -#ifndef NET_DSM_H -#define NET_DSM_H - #include #include "dtls.h" @@ -121,5 +121,5 @@ ssize_t dsm_get_least_recently_used_session(sock_dtls_t *sock, sock_dtls_session } #endif -#endif /* NET_DSM_H */ /** @} */ +#endif /* NET_DSM_H */ diff --git a/sys/include/net/dtls.h b/sys/include/net/dtls.h index 1e5571dacebc..8dc0758bd936 100644 --- a/sys/include/net/dtls.h +++ b/sys/include/net/dtls.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_DTLS_H +#define NET_DTLS_H /** * @defgroup net_dtls DTLS * @ingroup net @@ -33,8 +35,6 @@ * * @author Aiman Ismail */ -#ifndef NET_DTLS_H -#define NET_DTLS_H #include "modules.h" @@ -57,5 +57,5 @@ extern "C" { } #endif -#endif /* NET_DTLS_H */ /** @} */ +#endif /* NET_DTLS_H */ diff --git a/sys/include/net/eddystone.h b/sys/include/net/eddystone.h index 31c8fd280f22..be4bb87a178d 100644 --- a/sys/include/net/eddystone.h +++ b/sys/include/net/eddystone.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_EDDYSTONE_H +#define NET_EDDYSTONE_H + /** * @defgroup net_eddystone Eddystone * @ingroup net @@ -20,9 +23,6 @@ * @author Hauke Petersen */ -#ifndef NET_EDDYSTONE_H -#define NET_EDDYSTONE_H - #ifdef __cplusplus extern "C" { #endif @@ -59,5 +59,5 @@ extern "C" { } #endif -#endif /* NET_EDDYSTONE_H */ /** @} */ +#endif /* NET_EDDYSTONE_H */ diff --git a/sys/include/net/emcute.h b/sys/include/net/emcute.h index 6b9eaabed99d..dc36ef65063f 100644 --- a/sys/include/net/emcute.h +++ b/sys/include/net/emcute.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_EMCUTE_H +#define NET_EMCUTE_H + /** * @defgroup net_emcute MQTT-SN Client (emCute) * @ingroup net @@ -83,9 +86,6 @@ * @author Hauke Petersen */ -#ifndef NET_EMCUTE_H -#define NET_EMCUTE_H - #include #include #include @@ -389,5 +389,5 @@ const char *emcute_type_str(uint8_t type); } #endif -#endif /* NET_EMCUTE_H */ /** @} */ +#endif /* NET_EMCUTE_H */ diff --git a/sys/include/net/eui48.h b/sys/include/net/eui48.h index 50dd310afc81..556877e79b65 100644 --- a/sys/include/net/eui48.h +++ b/sys/include/net/eui48.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_EUI48_H +#define NET_EUI48_H + /** * @defgroup net_eui48 IEEE EUI-48 identifier * @ingroup net @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_EUI48_H -#define NET_EUI48_H - #include #include "net/eui64.h" @@ -160,5 +160,5 @@ static inline void eui48_from_ipv6_iid(eui48_t *addr, const eui64_t *iid) } #endif -#endif /* NET_EUI48_H */ /** @} */ +#endif /* NET_EUI48_H */ diff --git a/sys/include/net/eui64.h b/sys/include/net/eui64.h index 34c3cee6834d..c2720e88fba3 100644 --- a/sys/include/net/eui64.h +++ b/sys/include/net/eui64.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_EUI64_H +#define NET_EUI64_H /** * @defgroup net_eui64 IEEE EUI-64 identifier * @ingroup net @@ -21,8 +23,6 @@ * @author Martine Lenders * @author Oliver Hahm */ -#ifndef NET_EUI64_H -#define NET_EUI64_H #include #include "byteorder.h" @@ -88,5 +88,5 @@ static inline void eui64_clear_group(eui64_t *addr) } #endif -#endif /* NET_EUI64_H */ /** @} */ +#endif /* NET_EUI64_H */ diff --git a/sys/include/net/eui_provider.h b/sys/include/net/eui_provider.h index a85640681553..f638f5caec03 100644 --- a/sys/include/net/eui_provider.h +++ b/sys/include/net/eui_provider.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_EUI_PROVIDER_H +#define NET_EUI_PROVIDER_H /** * @defgroup net_eui_provider IEEE EUI-48/64 provider * @ingroup net @@ -95,8 +97,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_EUI_PROVIDER_H -#define NET_EUI_PROVIDER_H #include "net/eui48.h" #include "net/eui64.h" @@ -201,5 +201,5 @@ static inline void eui_short_from_eui64(eui64_t *addr_long, } #endif -#endif /* NET_EUI_PROVIDER_H */ /** @} */ +#endif /* NET_EUI_PROVIDER_H */ diff --git a/sys/include/net/fib.h b/sys/include/net/fib.h index 27898eb7d8f2..427c0d0bdcc7 100644 --- a/sys/include/net/fib.h +++ b/sys/include/net/fib.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_FIB_H +#define NET_FIB_H + /** * @defgroup net_fib Forwarding Information Base (FIB) * @ingroup net @@ -24,9 +27,6 @@ * @author Oliver Hahm */ -#ifndef NET_FIB_H -#define NET_FIB_H - #include #include "net/fib/table.h" @@ -514,5 +514,5 @@ int fib_devel_get_lifetime(fib_table_t *table, uint64_t *lifetime, uint8_t *dst, } #endif -#endif /* NET_FIB_H */ /** @} */ +#endif /* NET_FIB_H */ diff --git a/sys/include/net/fib/table.h b/sys/include/net/fib/table.h index 9cbe50dbe031..2ba3ddc2cb95 100644 --- a/sys/include/net/fib/table.h +++ b/sys/include/net/fib/table.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_FIB_TABLE_H +#define NET_FIB_TABLE_H + /** * @ingroup net_fib * @{ @@ -16,9 +19,6 @@ * @author Martin Landsmann */ -#ifndef NET_FIB_TABLE_H -#define NET_FIB_TABLE_H - #include #include "sched.h" @@ -139,5 +139,5 @@ typedef struct { } #endif -#endif /* NET_FIB_TABLE_H */ /** @} */ +#endif /* NET_FIB_TABLE_H */ diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index 7e4d271971ac..153def339819 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GCOAP_H +#define NET_GCOAP_H + /** * @defgroup net_gcoap GCoAP * @ingroup net @@ -394,9 +397,6 @@ * @author Hauke Petersen */ -#ifndef NET_GCOAP_H -#define NET_GCOAP_H - #include #include "event/callback.h" @@ -1237,5 +1237,5 @@ static inline coap_hdr_t *gcoap_request_memo_get_hdr(const gcoap_request_memo_t } #endif -#endif /* NET_GCOAP_H */ /** @} */ +#endif /* NET_GCOAP_H */ diff --git a/sys/include/net/gcoap/dns.h b/sys/include/net/gcoap/dns.h index 30cd9f1d621c..0de3b9a9b76e 100644 --- a/sys/include/net/gcoap/dns.h +++ b/sys/include/net/gcoap/dns.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GCOAP_DNS_H +#define NET_GCOAP_DNS_H /** * @defgroup net_gcoap_dns DNS over CoAP client implementation * @ingroup net_gcoap @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef NET_GCOAP_DNS_H -#define NET_GCOAP_DNS_H #include @@ -215,5 +215,5 @@ ssize_t gcoap_dns_server_proxy_get(char *proxy, size_t proxy_len); } #endif -#endif /* NET_GCOAP_DNS_H */ /** @} */ +#endif /* NET_GCOAP_DNS_H */ diff --git a/sys/include/net/gcoap/forward_proxy.h b/sys/include/net/gcoap/forward_proxy.h index dc59848d3035..0ca2a3c2285b 100644 --- a/sys/include/net/gcoap/forward_proxy.h +++ b/sys/include/net/gcoap/forward_proxy.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef NET_GCOAP_FORWARD_PROXY_H +#define NET_GCOAP_FORWARD_PROXY_H + /** * @defgroup net_gcoap_forward_proxy GCoAP Forward Proxy * @ingroup net_gcoap @@ -23,9 +26,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GCOAP_FORWARD_PROXY_H -#define NET_GCOAP_FORWARD_PROXY_H - #include #include diff --git a/sys/include/net/gnrc.h b/sys/include/net/gnrc.h index 77afe734f144..91d07a7b8eb9 100644 --- a/sys/include/net/gnrc.h +++ b/sys/include/net/gnrc.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_H +#define NET_GNRC_H + /** * @defgroup net_gnrc Generic (GNRC) network stack * @ingroup net @@ -284,9 +287,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_H -#define NET_GNRC_H - #include "net/netopt.h" #include "net/gnrc/netapi.h" #include "net/gnrc/netreg.h" @@ -306,5 +306,5 @@ extern "C" { } #endif -#endif /* NET_GNRC_H */ /** @} */ +#endif /* NET_GNRC_H */ diff --git a/sys/include/net/gnrc/dhcpv6/client/simple_pd.h b/sys/include/net/gnrc/dhcpv6/client/simple_pd.h index b1a2a784e876..d7188dfecfcf 100644 --- a/sys/include/net/gnrc/dhcpv6/client/simple_pd.h +++ b/sys/include/net/gnrc/dhcpv6/client/simple_pd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H +#define NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H /** * @defgroup net_dhcpv6_client_simple_pd gnrc_dhcpv6_client_simple_pd: DHCPv6 client for * simple prefix delegation @@ -19,8 +21,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H -#define NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H #ifdef __cplusplus extern "C" { @@ -91,5 +91,5 @@ void gnrc_dhcpv6_client_simple_pd_init(void); } #endif -#endif /* NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H */ /** @} */ +#endif /* NET_GNRC_DHCPV6_CLIENT_SIMPLE_PD_H */ diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 4098d36874bd..fde12995fd33 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_GOMACH_GOMACH_H +#define NET_GNRC_GOMACH_GOMACH_H + /** * @defgroup net_gnrc_gomach GoMacH * @ingroup net_gnrc @@ -39,9 +42,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_GOMACH_H -#define NET_GNRC_GOMACH_GOMACH_H - #include "periph/rtt.h" #include "net/gnrc/netif.h" @@ -374,5 +374,5 @@ int gnrc_netif_gomach_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_GOMACH_GOMACH_H */ /** @} */ +#endif /* NET_GNRC_GOMACH_GOMACH_H */ diff --git a/sys/include/net/gnrc/gomach/hdr.h b/sys/include/net/gnrc/gomach/hdr.h index 1113b6acad95..899121429fef 100644 --- a/sys/include/net/gnrc/gomach/hdr.h +++ b/sys/include/net/gnrc/gomach/hdr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_GOMACH_HDR_H +#define NET_GNRC_GOMACH_HDR_H + /** * @ingroup net_gnrc_gomach * @{ @@ -16,9 +19,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_HDR_H -#define NET_GNRC_GOMACH_HDR_H - #include #include @@ -138,5 +138,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_GNRC_GOMACH_HDR_H */ /** @} */ +#endif /* NET_GNRC_GOMACH_HDR_H */ diff --git a/sys/include/net/gnrc/gomach/timeout.h b/sys/include/net/gnrc/gomach/timeout.h index 5c2040bc8d2e..10324996b382 100644 --- a/sys/include/net/gnrc/gomach/timeout.h +++ b/sys/include/net/gnrc/gomach/timeout.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_GOMACH_TIMEOUT_H +#define NET_GNRC_GOMACH_TIMEOUT_H + /** * @ingroup net_gnrc_gomach * @{ @@ -16,9 +19,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_TIMEOUT_H -#define NET_GNRC_GOMACH_TIMEOUT_H - #include #include @@ -96,5 +96,5 @@ static inline void gnrc_gomach_timeout_make_expire(gnrc_gomach_timeout_t *timeou } #endif -#endif /* NET_GNRC_GOMACH_TIMEOUT_H */ /** @} */ +#endif /* NET_GNRC_GOMACH_TIMEOUT_H */ diff --git a/sys/include/net/gnrc/gomach/types.h b/sys/include/net/gnrc/gomach/types.h index 8ed411d5fbc9..c10c4f3c0753 100644 --- a/sys/include/net/gnrc/gomach/types.h +++ b/sys/include/net/gnrc/gomach/types.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_GOMACH_TYPES_H +#define NET_GNRC_GOMACH_TYPES_H + /** * @ingroup net_gnrc_gomach * @{ @@ -16,9 +19,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_GOMACH_TYPES_H -#define NET_GNRC_GOMACH_TYPES_H - #include #include @@ -310,5 +310,5 @@ typedef struct gomach { } #endif -#endif /* NET_GNRC_GOMACH_TYPES_H */ /** @} */ +#endif /* NET_GNRC_GOMACH_TYPES_H */ diff --git a/sys/include/net/gnrc/icmpv6/echo.h b/sys/include/net/gnrc/icmpv6/echo.h index b84c2ae3aa97..57be8306b933 100644 --- a/sys/include/net/gnrc/icmpv6/echo.h +++ b/sys/include/net/gnrc/icmpv6/echo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_ICMPV6_ECHO_H +#define NET_GNRC_ICMPV6_ECHO_H /** * @defgroup net_gnrc_icmpv6_echo ICMPv6 echo messages * @ingroup net_gnrc_icmpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_ICMPV6_ECHO_H -#define NET_GNRC_ICMPV6_ECHO_H #include @@ -107,5 +107,5 @@ int gnrc_icmpv6_echo_rsp_handle(gnrc_pktsnip_t *pkt, size_t len, } #endif -#endif /* NET_GNRC_ICMPV6_ECHO_H */ /** @} */ +#endif /* NET_GNRC_ICMPV6_ECHO_H */ diff --git a/sys/include/net/gnrc/icmpv6/error.h b/sys/include/net/gnrc/icmpv6/error.h index e1aad9f3b78e..3cade60fe5a9 100644 --- a/sys/include/net/gnrc/icmpv6/error.h +++ b/sys/include/net/gnrc/icmpv6/error.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_ICMPV6_ERROR_H +#define NET_GNRC_ICMPV6_ERROR_H /** * @defgroup net_gnrc_icmpv6_error ICMPv6 error messages * @ingroup net_gnrc_icmpv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_ICMPV6_ERROR_H -#define NET_GNRC_ICMPV6_ERROR_H #include #include @@ -106,5 +106,5 @@ void gnrc_icmpv6_error_param_prob_send(uint8_t code, void *ptr, } #endif -#endif /* NET_GNRC_ICMPV6_ERROR_H */ /** @} */ +#endif /* NET_GNRC_ICMPV6_ERROR_H */ diff --git a/sys/include/net/gnrc/ipv6.h b/sys/include/net/gnrc/ipv6.h index 00720ae3827c..50fcff690ab5 100644 --- a/sys/include/net/gnrc/ipv6.h +++ b/sys/include/net/gnrc/ipv6.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef NET_GNRC_IPV6_H +#define NET_GNRC_IPV6_H + /** * @defgroup net_gnrc_ipv6 IPv6 * @ingroup net_gnrc @@ -95,9 +98,6 @@ * @author Oliver Hahm */ -#ifndef NET_GNRC_IPV6_H -#define NET_GNRC_IPV6_H - #include "sched.h" #include "thread.h" diff --git a/sys/include/net/gnrc/ipv6/blacklist.h b/sys/include/net/gnrc/ipv6/blacklist.h index ce58155ee535..fd99027ef8a1 100644 --- a/sys/include/net/gnrc/ipv6/blacklist.h +++ b/sys/include/net/gnrc/ipv6/blacklist.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_BLACKLIST_H +#define NET_GNRC_IPV6_BLACKLIST_H /** * @defgroup net_gnrc_ipv6_blacklist IPv6 address blacklist * @ingroup net_gnrc_ipv6 @@ -19,8 +21,6 @@ * @author Martine Lenders * @author Martin Landsmann */ -#ifndef NET_GNRC_IPV6_BLACKLIST_H -#define NET_GNRC_IPV6_BLACKLIST_H #include @@ -82,5 +82,5 @@ void gnrc_ipv6_blacklist_print(void); } #endif -#endif /* NET_GNRC_IPV6_BLACKLIST_H */ /** @} */ +#endif /* NET_GNRC_IPV6_BLACKLIST_H */ diff --git a/sys/include/net/gnrc/ipv6/ext/frag.h b/sys/include/net/gnrc/ipv6/ext/frag.h index ead4887892e1..7333c5c1e2e1 100644 --- a/sys/include/net/gnrc/ipv6/ext/frag.h +++ b/sys/include/net/gnrc/ipv6/ext/frag.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_EXT_FRAG_H +#define NET_GNRC_IPV6_EXT_FRAG_H /** * @defgroup net_gnrc_ipv6_ext_frag Support for IPv6 fragmentation extension * @ingroup net_gnrc_ipv6_ext @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_FRAG_H -#define NET_GNRC_IPV6_EXT_FRAG_H #include #include @@ -211,5 +211,5 @@ gnrc_ipv6_ext_frag_stats_t *gnrc_ipv6_ext_frag_stats(void); } #endif -#endif /* NET_GNRC_IPV6_EXT_FRAG_H */ /** @} */ +#endif /* NET_GNRC_IPV6_EXT_FRAG_H */ diff --git a/sys/include/net/gnrc/ipv6/ext/opt.h b/sys/include/net/gnrc/ipv6/ext/opt.h index 02fbcc2c43e9..e8e352df9cc0 100644 --- a/sys/include/net/gnrc/ipv6/ext/opt.h +++ b/sys/include/net/gnrc/ipv6/ext/opt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_EXT_OPT_H +#define NET_GNRC_IPV6_EXT_OPT_H /** * @defgroup net_gnrc_ipv6_ext_opt Support for IPv6 option extension headers * @ingroup net_gnrc_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_OPT_H -#define NET_GNRC_IPV6_EXT_OPT_H #include @@ -56,5 +56,5 @@ gnrc_pktsnip_t *gnrc_ipv6_ext_opt_process(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_IPV6_EXT_OPT_H */ /** @} */ +#endif /* NET_GNRC_IPV6_EXT_OPT_H */ diff --git a/sys/include/net/gnrc/ipv6/ext/rh.h b/sys/include/net/gnrc/ipv6/ext/rh.h index 89d9a25fd3da..eeace5eecbc2 100644 --- a/sys/include/net/gnrc/ipv6/ext/rh.h +++ b/sys/include/net/gnrc/ipv6/ext/rh.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_EXT_RH_H +#define NET_GNRC_IPV6_EXT_RH_H /** * @defgroup net_gnrc_ipv6_ext_rh Support for IPv6 routing header extension * @ingroup net_gnrc_ipv6_ext @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_EXT_RH_H -#define NET_GNRC_IPV6_EXT_RH_H #include "net/gnrc/pkt.h" @@ -67,5 +67,5 @@ int gnrc_ipv6_ext_rh_process(gnrc_pktsnip_t *pkt); } #endif -#endif /* NET_GNRC_IPV6_EXT_RH_H */ /** @} */ +#endif /* NET_GNRC_IPV6_EXT_RH_H */ diff --git a/sys/include/net/gnrc/ipv6/hdr.h b/sys/include/net/gnrc/ipv6/hdr.h index daf82d334702..5b14cf160fa8 100644 --- a/sys/include/net/gnrc/ipv6/hdr.h +++ b/sys/include/net/gnrc/ipv6/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_HDR_H +#define NET_GNRC_IPV6_HDR_H /** * @defgroup net_gnrc_ipv6_hdr IPv6 header definitions * @ingroup net_gnrc_ipv6 @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_HDR_H -#define NET_GNRC_IPV6_HDR_H #include @@ -50,5 +50,5 @@ gnrc_pktsnip_t *gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t * } #endif -#endif /* NET_GNRC_IPV6_HDR_H */ /** @} */ +#endif /* NET_GNRC_IPV6_HDR_H */ diff --git a/sys/include/net/gnrc/ipv6/nib.h b/sys/include/net/gnrc/ipv6/nib.h index 2fbcf9ee67ba..f411f80b2a99 100644 --- a/sys/include/net/gnrc/ipv6/nib.h +++ b/sys/include/net/gnrc/ipv6/nib.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_H +#define NET_GNRC_IPV6_NIB_H /** * @defgroup net_gnrc_ipv6_nib Neighbor Information Base for IPv6 * @ingroup net_gnrc_ipv6 @@ -22,8 +24,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_H -#define NET_GNRC_IPV6_NIB_H #include "net/gnrc/ipv6/nib/abr.h" #include "net/gnrc/ipv6/nib/ft.h" @@ -433,5 +433,5 @@ void gnrc_ipv6_nib_change_rtr_adv_iface(gnrc_netif_t *netif, bool enable); } #endif -#endif /* NET_GNRC_IPV6_NIB_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_H */ diff --git a/sys/include/net/gnrc/ipv6/nib/abr.h b/sys/include/net/gnrc/ipv6/nib/abr.h index fbba10b4ea72..305f6a0b7e6c 100644 --- a/sys/include/net/gnrc/ipv6/nib/abr.h +++ b/sys/include/net/gnrc/ipv6/nib/abr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_ABR_H +#define NET_GNRC_IPV6_NIB_ABR_H /** * @defgroup net_gnrc_ipv6_nib_abr Authoritative border router list * @ingroup net_gnrc_ipv6_nib @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_ABR_H -#define NET_GNRC_IPV6_NIB_ABR_H #include "modules.h" @@ -140,5 +140,5 @@ void gnrc_ipv6_nib_abr_print(gnrc_ipv6_nib_abr_t *abr); } #endif -#endif /* NET_GNRC_IPV6_NIB_ABR_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_ABR_H */ diff --git a/sys/include/net/gnrc/ipv6/nib/conf.h b/sys/include/net/gnrc/ipv6/nib/conf.h index 90a9bf4b9df3..36d50816e6f4 100644 --- a/sys/include/net/gnrc/ipv6/nib/conf.h +++ b/sys/include/net/gnrc/ipv6/nib/conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_CONF_H +#define NET_GNRC_IPV6_NIB_CONF_H /** * @defgroup net_gnrc_ipv6_nib_conf GNRC IPv6 NIB compile configurations * @ingroup net_gnrc_ipv6_nib @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_CONF_H -#define NET_GNRC_IPV6_NIB_CONF_H #include "modules.h" @@ -318,5 +318,5 @@ extern "C" { } #endif -#endif /* NET_GNRC_IPV6_NIB_CONF_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_CONF_H */ diff --git a/sys/include/net/gnrc/ipv6/nib/ft.h b/sys/include/net/gnrc/ipv6/nib/ft.h index 0d8182ce5809..0b6fb2b21654 100644 --- a/sys/include/net/gnrc/ipv6/nib/ft.h +++ b/sys/include/net/gnrc/ipv6/nib/ft.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_FT_H +#define NET_GNRC_IPV6_NIB_FT_H /** * @defgroup net_gnrc_ipv6_nib_ft Forwarding table * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_FT_H -#define NET_GNRC_IPV6_NIB_FT_H #include @@ -153,5 +153,5 @@ void gnrc_ipv6_nib_ft_print(const gnrc_ipv6_nib_ft_t *fte); } #endif -#endif /* NET_GNRC_IPV6_NIB_FT_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_FT_H */ diff --git a/sys/include/net/gnrc/ipv6/nib/nc.h b/sys/include/net/gnrc/ipv6/nib/nc.h index fb28d297042e..90f7620888df 100644 --- a/sys/include/net/gnrc/ipv6/nib/nc.h +++ b/sys/include/net/gnrc/ipv6/nib/nc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_NC_H +#define NET_GNRC_IPV6_NIB_NC_H /** * @defgroup net_gnrc_ipv6_nib_nc Neighbor Cache * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_NC_H -#define NET_GNRC_IPV6_NIB_NC_H #include #include @@ -313,5 +313,5 @@ void gnrc_ipv6_nib_nc_print(gnrc_ipv6_nib_nc_t *nce); } #endif -#endif /* NET_GNRC_IPV6_NIB_NC_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_NC_H */ diff --git a/sys/include/net/gnrc/ipv6/nib/pl.h b/sys/include/net/gnrc/ipv6/nib/pl.h index 5ca899c64d4e..2500eecbac5b 100644 --- a/sys/include/net/gnrc/ipv6/nib/pl.h +++ b/sys/include/net/gnrc/ipv6/nib/pl.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_NIB_PL_H +#define NET_GNRC_IPV6_NIB_PL_H /** * @defgroup net_gnrc_ipv6_nib_pl Prefix list * @ingroup net_gnrc_ipv6_nib @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_NIB_PL_H -#define NET_GNRC_IPV6_NIB_PL_H #include #include "modules.h" @@ -178,5 +178,5 @@ void gnrc_ipv6_nib_pl_print(gnrc_ipv6_nib_pl_t *ple); } #endif -#endif /* NET_GNRC_IPV6_NIB_PL_H */ /** @} */ +#endif /* NET_GNRC_IPV6_NIB_PL_H */ diff --git a/sys/include/net/gnrc/ipv6/whitelist.h b/sys/include/net/gnrc/ipv6/whitelist.h index 462474c0e7ff..6ade893b5030 100644 --- a/sys/include/net/gnrc/ipv6/whitelist.h +++ b/sys/include/net/gnrc/ipv6/whitelist.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_IPV6_WHITELIST_H +#define NET_GNRC_IPV6_WHITELIST_H /** * @defgroup net_gnrc_ipv6_whitelist IPv6 address whitelist * @ingroup net_gnrc_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_IPV6_WHITELIST_H -#define NET_GNRC_IPV6_WHITELIST_H #include @@ -80,5 +80,5 @@ void gnrc_ipv6_whitelist_print(void); } #endif -#endif /* NET_GNRC_IPV6_WHITELIST_H */ /** @} */ +#endif /* NET_GNRC_IPV6_WHITELIST_H */ diff --git a/sys/include/net/gnrc/lorawan.h b/sys/include/net/gnrc/lorawan.h index acb2118f6bf8..beda4716f3d9 100644 --- a/sys/include/net/gnrc/lorawan.h +++ b/sys/include/net/gnrc/lorawan.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_GNRC_LORAWAN_H +#define NET_GNRC_LORAWAN_H /** * @defgroup net_gnrc_lorawan GNRC LoRaWAN * @ingroup net_gnrc @@ -20,8 +22,6 @@ * @author José Ignacio Alamos * @author Francisco Molina */ -#ifndef NET_GNRC_LORAWAN_H -#define NET_GNRC_LORAWAN_H #include "gnrc_lorawan_internal.h" #include "assert.h" @@ -340,5 +340,5 @@ static inline void gnrc_lorawan_set_uncnf_redundancy(gnrc_lorawan_t *mac, } #endif -#endif /* NET_GNRC_LORAWAN_H */ /** @} */ +#endif /* NET_GNRC_LORAWAN_H */ diff --git a/sys/include/net/gnrc/lorawan/region.h b/sys/include/net/gnrc/lorawan/region.h index 6714e4b988d3..bba3c4f37fbd 100644 --- a/sys/include/net/gnrc/lorawan/region.h +++ b/sys/include/net/gnrc/lorawan/region.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_LORAWAN_REGION_H +#define NET_GNRC_LORAWAN_REGION_H /** * @ingroup net_gnrc_lorawan * @{ @@ -15,8 +17,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_GNRC_LORAWAN_REGION_H -#define NET_GNRC_LORAWAN_REGION_H #include "modules.h" #include "net/gnrc/lorawan.h" @@ -75,5 +75,5 @@ bool gnrc_lorawan_validate_dr(uint8_t dr); } #endif -#endif /* NET_GNRC_LORAWAN_REGION_H */ /** @} */ +#endif /* NET_GNRC_LORAWAN_REGION_H */ diff --git a/sys/include/net/gnrc/lwmac/hdr.h b/sys/include/net/gnrc/lwmac/hdr.h index b599604bdcd8..da829f611102 100644 --- a/sys/include/net/gnrc/lwmac/hdr.h +++ b/sys/include/net/gnrc/lwmac/hdr.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_LWMAC_HDR_H +#define NET_GNRC_LWMAC_HDR_H + /** * @ingroup net_gnrc_lwmac * @{ @@ -18,9 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_HDR_H -#define NET_GNRC_LWMAC_HDR_H - #include #include @@ -111,5 +111,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_GNRC_LWMAC_HDR_H */ /** @} */ +#endif /* NET_GNRC_LWMAC_HDR_H */ diff --git a/sys/include/net/gnrc/lwmac/lwmac.h b/sys/include/net/gnrc/lwmac/lwmac.h index 01cf86de74e5..49e4fe08db62 100644 --- a/sys/include/net/gnrc/lwmac/lwmac.h +++ b/sys/include/net/gnrc/lwmac/lwmac.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_LWMAC_LWMAC_H +#define NET_GNRC_LWMAC_LWMAC_H + /** * @defgroup net_gnrc_lwmac LWMAC * @ingroup net_gnrc @@ -72,9 +75,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_LWMAC_H -#define NET_GNRC_LWMAC_LWMAC_H - #include "net/gnrc/netif.h" #ifdef __cplusplus @@ -351,5 +351,5 @@ int gnrc_netif_lwmac_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_LWMAC_LWMAC_H */ /** @} */ +#endif /* NET_GNRC_LWMAC_LWMAC_H */ diff --git a/sys/include/net/gnrc/lwmac/timeout.h b/sys/include/net/gnrc/lwmac/timeout.h index dc47f90a8fa9..5076e6d2f3bf 100644 --- a/sys/include/net/gnrc/lwmac/timeout.h +++ b/sys/include/net/gnrc/lwmac/timeout.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_LWMAC_TIMEOUT_H +#define NET_GNRC_LWMAC_TIMEOUT_H + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,9 +22,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_TIMEOUT_H -#define NET_GNRC_LWMAC_TIMEOUT_H - #include #include @@ -98,5 +98,5 @@ void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout); } #endif -#endif /* NET_GNRC_LWMAC_TIMEOUT_H */ /** @} */ +#endif /* NET_GNRC_LWMAC_TIMEOUT_H */ diff --git a/sys/include/net/gnrc/lwmac/types.h b/sys/include/net/gnrc/lwmac/types.h index 3c6015dd6835..744e0108caa5 100644 --- a/sys/include/net/gnrc/lwmac/types.h +++ b/sys/include/net/gnrc/lwmac/types.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_LWMAC_TYPES_H +#define NET_GNRC_LWMAC_TYPES_H + /** * @ingroup net_gnrc_lwmac * @{ @@ -19,9 +22,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_LWMAC_TYPES_H -#define NET_GNRC_LWMAC_TYPES_H - #include "msg.h" #include "xtimer.h" #include "net/gnrc/lwmac/hdr.h" @@ -216,5 +216,5 @@ typedef struct lwmac { } #endif -#endif /* NET_GNRC_LWMAC_TYPES_H */ /** @} */ +#endif /* NET_GNRC_LWMAC_TYPES_H */ diff --git a/sys/include/net/gnrc/mac/internal.h b/sys/include/net/gnrc/mac/internal.h index 30176105b93d..e764bfb9ea46 100644 --- a/sys/include/net/gnrc/mac/internal.h +++ b/sys/include/net/gnrc/mac/internal.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_MAC_INTERNAL_H +#define NET_GNRC_MAC_INTERNAL_H + /** * @ingroup net_gnrc_mac * @{ @@ -18,9 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_INTERNAL_H -#define NET_GNRC_MAC_INTERNAL_H - #include #include "net/ieee802154.h" @@ -141,5 +141,5 @@ void gnrc_mac_dispatch(gnrc_mac_rx_t *rx); } #endif -#endif /* NET_GNRC_MAC_INTERNAL_H */ /** @} */ +#endif /* NET_GNRC_MAC_INTERNAL_H */ diff --git a/sys/include/net/gnrc/mac/mac.h b/sys/include/net/gnrc/mac/mac.h index f0fed0934e92..d6dd978a9ff7 100644 --- a/sys/include/net/gnrc/mac/mac.h +++ b/sys/include/net/gnrc/mac/mac.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_MAC_MAC_H +#define NET_GNRC_MAC_MAC_H + /** * @defgroup net_gnrc_mac Common MAC module * @ingroup net_gnrc @@ -25,9 +28,6 @@ #include "modules.h" -#ifndef NET_GNRC_MAC_MAC_H -#define NET_GNRC_MAC_MAC_H - #ifdef __cplusplus extern "C" { #endif @@ -126,5 +126,5 @@ extern "C" { } #endif -#endif /* NET_GNRC_MAC_MAC_H */ /** @} */ +#endif /* NET_GNRC_MAC_MAC_H */ diff --git a/sys/include/net/gnrc/mac/timeout.h b/sys/include/net/gnrc/mac/timeout.h index 3b635d77e111..da7bf21ff398 100644 --- a/sys/include/net/gnrc/mac/timeout.h +++ b/sys/include/net/gnrc/mac/timeout.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_MAC_TIMEOUT_H +#define NET_GNRC_MAC_TIMEOUT_H + /** * @ingroup net_gnrc_mac * @{ @@ -18,9 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_TIMEOUT_H -#define NET_GNRC_MAC_TIMEOUT_H - #include #include #include @@ -145,5 +145,5 @@ void gnrc_mac_reset_timeouts(gnrc_mac_timeout_t *mac_timeout); } #endif -#endif /* NET_GNRC_MAC_TIMEOUT_H */ /** @} */ +#endif /* NET_GNRC_MAC_TIMEOUT_H */ diff --git a/sys/include/net/gnrc/mac/types.h b/sys/include/net/gnrc/mac/types.h index 983e0f13b43f..8d47473631ea 100644 --- a/sys/include/net/gnrc/mac/types.h +++ b/sys/include/net/gnrc/mac/types.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_MAC_TYPES_H +#define NET_GNRC_MAC_TYPES_H + /** * @ingroup net_gnrc_mac * @{ @@ -18,9 +21,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_MAC_TYPES_H -#define NET_GNRC_MAC_TYPES_H - #include #include @@ -242,5 +242,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_MAC_TYPES_H */ /** @} */ +#endif /* NET_GNRC_MAC_TYPES_H */ diff --git a/sys/include/net/gnrc/ndp.h b/sys/include/net/gnrc/ndp.h index f58a635854f0..8d5f493f2eb3 100644 --- a/sys/include/net/gnrc/ndp.h +++ b/sys/include/net/gnrc/ndp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NDP_H +#define NET_GNRC_NDP_H /** * @defgroup net_gnrc_ndp IPv6 neighbor discovery (v2) * @ingroup net_gnrc_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NDP_H -#define NET_GNRC_NDP_H #include @@ -415,5 +415,5 @@ void gnrc_ndp_rtr_adv_send(gnrc_netif_t *netif, const ipv6_addr_t *src, } #endif -#endif /* NET_GNRC_NDP_H */ /** @} */ +#endif /* NET_GNRC_NDP_H */ diff --git a/sys/include/net/gnrc/neterr.h b/sys/include/net/gnrc/neterr.h index 22cada193694..db98472bb52d 100644 --- a/sys/include/net/gnrc/neterr.h +++ b/sys/include/net/gnrc/neterr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETERR_H +#define NET_GNRC_NETERR_H /** * @defgroup net_gnrc_neterr Error reporting * @ingroup net_gnrc @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETERR_H -#define NET_GNRC_NETERR_H #include #include @@ -88,5 +88,5 @@ static inline int gnrc_neterr_reg(gnrc_pktsnip_t *pkt) } #endif -#endif /* NET_GNRC_NETERR_H */ /** @} */ +#endif /* NET_GNRC_NETERR_H */ diff --git a/sys/include/net/gnrc/netif.h b/sys/include/net/gnrc/netif.h index 5aeaaae249e1..8fcb1e141ef9 100644 --- a/sys/include/net/gnrc/netif.h +++ b/sys/include/net/gnrc/netif.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_H +#define NET_GNRC_NETIF_H /** * @defgroup net_gnrc_netif Network interface API * @ingroup net_gnrc @@ -26,8 +28,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_H -#define NET_GNRC_NETIF_H #include #include @@ -774,5 +774,5 @@ bool gnrc_netif_ipv6_wait_for_global_address(gnrc_netif_t *netif, } #endif -#endif /* NET_GNRC_NETIF_H */ /** @} */ +#endif /* NET_GNRC_NETIF_H */ diff --git a/sys/include/net/gnrc/netif/6lo.h b/sys/include/net/gnrc/netif/6lo.h index 08e4bcc1aa1f..c600e321d3ce 100644 --- a/sys/include/net/gnrc/netif/6lo.h +++ b/sys/include/net/gnrc/netif/6lo.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_6LO_H +#define NET_GNRC_NETIF_6LO_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_6LO_H -#define NET_GNRC_NETIF_6LO_H #include #include @@ -72,5 +72,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_6LO_H */ /** @} */ +#endif /* NET_GNRC_NETIF_6LO_H */ diff --git a/sys/include/net/gnrc/netif/conf.h b/sys/include/net/gnrc/netif/conf.h index f7af784e5887..008f1010dedf 100644 --- a/sys/include/net/gnrc/netif/conf.h +++ b/sys/include/net/gnrc/netif/conf.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_CONF_H +#define NET_GNRC_NETIF_CONF_H /** * @defgroup net_gnrc_netif_conf GNRC network interface configurations * @ingroup net_gnrc_netif @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_CONF_H -#define NET_GNRC_NETIF_CONF_H #include "modules.h" diff --git a/sys/include/net/gnrc/netif/dedup.h b/sys/include/net/gnrc/netif/dedup.h index 829ba22d6dd4..a03b5a9fc5d5 100644 --- a/sys/include/net/gnrc/netif/dedup.h +++ b/sys/include/net/gnrc/netif/dedup.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_DEDUP_H +#define NET_GNRC_NETIF_DEDUP_H /** * @defgroup net_gnrc_netif_dedup Link-layer Broadcast deduplication * @ingroup net_gnrc_netif @@ -24,8 +26,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_DEDUP_H -#define NET_GNRC_NETIF_DEDUP_H #include @@ -48,5 +48,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_DEDUP_H */ /** @} */ +#endif /* NET_GNRC_NETIF_DEDUP_H */ diff --git a/sys/include/net/gnrc/netif/ethernet.h b/sys/include/net/gnrc/netif/ethernet.h index d4350e2cb91a..c84f831bd272 100644 --- a/sys/include/net/gnrc/netif/ethernet.h +++ b/sys/include/net/gnrc/netif/ethernet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_ETHERNET_H +#define NET_GNRC_NETIF_ETHERNET_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_ETHERNET_H -#define NET_GNRC_NETIF_ETHERNET_H #include "net/gnrc/netif.h" @@ -46,5 +46,5 @@ int gnrc_netif_ethernet_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_ETHERNET_H */ /** @} */ +#endif /* NET_GNRC_NETIF_ETHERNET_H */ diff --git a/sys/include/net/gnrc/netif/flags.h b/sys/include/net/gnrc/netif/flags.h index 242f6fbef007..30f2fd3729a8 100644 --- a/sys/include/net/gnrc/netif/flags.h +++ b/sys/include/net/gnrc/netif/flags.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_FLAGS_H +#define NET_GNRC_NETIF_FLAGS_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_FLAGS_H -#define NET_GNRC_NETIF_FLAGS_H #ifdef __cplusplus extern "C" { @@ -152,5 +152,5 @@ enum { } #endif -#endif /* NET_GNRC_NETIF_FLAGS_H */ /** @} */ +#endif /* NET_GNRC_NETIF_FLAGS_H */ diff --git a/sys/include/net/gnrc/netif/hdr.h b/sys/include/net/gnrc/netif/hdr.h index bb13715ab61a..6acd5999e668 100644 --- a/sys/include/net/gnrc/netif/hdr.h +++ b/sys/include/net/gnrc/netif/hdr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_HDR_H +#define NET_GNRC_NETIF_HDR_H + /** * @defgroup net_gnrc_netif_hdr Generic network interface header * @ingroup net_gnrc_netif @@ -18,9 +21,6 @@ * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_HDR_H -#define NET_GNRC_NETIF_HDR_H - #include #include #include @@ -444,5 +444,5 @@ int gnrc_netif_hdr_get_srcaddr(gnrc_pktsnip_t* pkt, uint8_t** pointer_to_addr); } #endif -#endif /* NET_GNRC_NETIF_HDR_H */ /** @} */ +#endif /* NET_GNRC_NETIF_HDR_H */ diff --git a/sys/include/net/gnrc/netif/ieee802154.h b/sys/include/net/gnrc/netif/ieee802154.h index d69122b251e1..5e49f0df0cca 100644 --- a/sys/include/net/gnrc/netif/ieee802154.h +++ b/sys/include/net/gnrc/netif/ieee802154.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_IEEE802154_H +#define NET_GNRC_NETIF_IEEE802154_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_IEEE802154_H -#define NET_GNRC_NETIF_IEEE802154_H #include "net/gnrc/netif.h" @@ -46,5 +46,5 @@ int gnrc_netif_ieee802154_create(gnrc_netif_t *netif, char *stack, int stacksize } #endif -#endif /* NET_GNRC_NETIF_IEEE802154_H */ /** @} */ +#endif /* NET_GNRC_NETIF_IEEE802154_H */ diff --git a/sys/include/net/gnrc/netif/internal.h b/sys/include/net/gnrc/netif/internal.h index 5e0de86c2b60..c7051d30da04 100644 --- a/sys/include/net/gnrc/netif/internal.h +++ b/sys/include/net/gnrc/netif/internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_INTERNAL_H +#define NET_GNRC_NETIF_INTERNAL_H /** * @addtogroup net_gnrc_netif * @internal @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_INTERNAL_H -#define NET_GNRC_NETIF_INTERNAL_H #include "modules.h" diff --git a/sys/include/net/gnrc/netif/ipv6.h b/sys/include/net/gnrc/netif/ipv6.h index d58c708017d8..bb55beefca91 100644 --- a/sys/include/net/gnrc/netif/ipv6.h +++ b/sys/include/net/gnrc/netif/ipv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_IPV6_H +#define NET_GNRC_NETIF_IPV6_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_IPV6_H -#define NET_GNRC_NETIF_IPV6_H #include "modules.h" @@ -261,5 +261,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_IPV6_H */ /** @} */ +#endif /* NET_GNRC_NETIF_IPV6_H */ diff --git a/sys/include/net/gnrc/netif/lorawan.h b/sys/include/net/gnrc/netif/lorawan.h index 6a7546e10c20..6325bbca31a6 100644 --- a/sys/include/net/gnrc/netif/lorawan.h +++ b/sys/include/net/gnrc/netif/lorawan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_LORAWAN_H +#define NET_GNRC_NETIF_LORAWAN_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Jose Ignacio Alamos */ -#ifndef NET_GNRC_NETIF_LORAWAN_H -#define NET_GNRC_NETIF_LORAWAN_H #include "net/gnrc/lorawan.h" @@ -166,5 +166,5 @@ static inline int gnrc_netif_lorawan_set_nwksenckey(gnrc_netif_lorawan_t *lw_net } #endif -#endif /* NET_GNRC_NETIF_LORAWAN_H */ /** @} */ +#endif /* NET_GNRC_NETIF_LORAWAN_H */ diff --git a/sys/include/net/gnrc/netif/lorawan_base.h b/sys/include/net/gnrc/netif/lorawan_base.h index cc56ce5e306e..4415e37732a3 100644 --- a/sys/include/net/gnrc/netif/lorawan_base.h +++ b/sys/include/net/gnrc/netif/lorawan_base.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_LORAWAN_BASE_H +#define NET_GNRC_NETIF_LORAWAN_BASE_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Jose Ignacio Alamos */ -#ifndef NET_GNRC_NETIF_LORAWAN_BASE_H -#define NET_GNRC_NETIF_LORAWAN_BASE_H #include "net/gnrc/netif.h" @@ -46,5 +46,5 @@ int gnrc_netif_lorawan_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_LORAWAN_BASE_H */ /** @} */ +#endif /* NET_GNRC_NETIF_LORAWAN_BASE_H */ diff --git a/sys/include/net/gnrc/netif/mac.h b/sys/include/net/gnrc/netif/mac.h index 97429329d436..304682098458 100644 --- a/sys/include/net/gnrc/netif/mac.h +++ b/sys/include/net/gnrc/netif/mac.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_MAC_H +#define NET_GNRC_NETIF_MAC_H /** * @ingroup net_gnrc_netif * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_MAC_H -#define NET_GNRC_NETIF_MAC_H #include "net/gnrc/mac/types.h" #include "net/csma_sender.h" @@ -110,5 +110,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_MAC_H */ /** @} */ +#endif /* NET_GNRC_NETIF_MAC_H */ diff --git a/sys/include/net/gnrc/netif/pktq.h b/sys/include/net/gnrc/netif/pktq.h index 7138e3b5b451..7dd042cef5fa 100644 --- a/sys/include/net/gnrc/netif/pktq.h +++ b/sys/include/net/gnrc/netif/pktq.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_PKTQ_H +#define NET_GNRC_NETIF_PKTQ_H /** * @defgroup net_gnrc_netif_pktq Send queue for @ref net_gnrc_netif * @ingroup net_gnrc_netif @@ -17,8 +19,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_NETIF_PKTQ_H -#define NET_GNRC_NETIF_PKTQ_H #include #include @@ -141,5 +141,5 @@ static inline bool gnrc_netif_pktq_empty(gnrc_netif_t *netif) } #endif -#endif /* NET_GNRC_NETIF_PKTQ_H */ /** @} */ +#endif /* NET_GNRC_NETIF_PKTQ_H */ diff --git a/sys/include/net/gnrc/netif/pktq/type.h b/sys/include/net/gnrc/netif/pktq/type.h index 95823b78d0bb..89d0341297b8 100644 --- a/sys/include/net/gnrc/netif/pktq/type.h +++ b/sys/include/net/gnrc/netif/pktq/type.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_PKTQ_TYPE_H +#define NET_GNRC_NETIF_PKTQ_TYPE_H /** * @addtogroup net_gnrc_netif_pktq * @brief @@ -20,8 +22,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_NETIF_PKTQ_TYPE_H -#define NET_GNRC_NETIF_PKTQ_TYPE_H #include "net/gnrc/pktqueue.h" #include "xtimer.h" @@ -46,5 +46,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_NETIF_PKTQ_TYPE_H */ /** @} */ +#endif /* NET_GNRC_NETIF_PKTQ_TYPE_H */ diff --git a/sys/include/net/gnrc/netif/raw.h b/sys/include/net/gnrc/netif/raw.h index 870838be9a5c..ea06ad201753 100644 --- a/sys/include/net/gnrc/netif/raw.h +++ b/sys/include/net/gnrc/netif/raw.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETIF_RAW_H +#define NET_GNRC_NETIF_RAW_H /** * @ingroup net_gnrc_netif * @{ @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETIF_RAW_H -#define NET_GNRC_NETIF_RAW_H #include "net/gnrc/netif.h" @@ -47,5 +47,5 @@ int gnrc_netif_raw_create(gnrc_netif_t *netif, char *stack, int stacksize, } #endif -#endif /* NET_GNRC_NETIF_RAW_H */ /** @} */ +#endif /* NET_GNRC_NETIF_RAW_H */ diff --git a/sys/include/net/gnrc/netreg.h b/sys/include/net/gnrc/netreg.h index c9b9c01e274b..f3308032094d 100644 --- a/sys/include/net/gnrc/netreg.h +++ b/sys/include/net/gnrc/netreg.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETREG_H +#define NET_GNRC_NETREG_H /** * @defgroup net_gnrc_netreg Network protocol registry * @ingroup net_gnrc @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETREG_H -#define NET_GNRC_NETREG_H #include @@ -435,5 +435,5 @@ int gnrc_netreg_calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr); } #endif -#endif /* NET_GNRC_NETREG_H */ /** @} */ +#endif /* NET_GNRC_NETREG_H */ diff --git a/sys/include/net/gnrc/nettype.h b/sys/include/net/gnrc/nettype.h index b2880f12c695..69a4ab28c541 100644 --- a/sys/include/net/gnrc/nettype.h +++ b/sys/include/net/gnrc/nettype.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_NETTYPE_H +#define NET_GNRC_NETTYPE_H /** * @defgroup net_gnrc_nettype gnrc_nettype: Protocol type * @ingroup net_gnrc @@ -30,8 +32,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_NETTYPE_H -#define NET_GNRC_NETTYPE_H #include @@ -306,5 +306,5 @@ static inline uint8_t gnrc_nettype_to_protnum(gnrc_nettype_t type) } #endif -#endif /* NET_GNRC_NETTYPE_H */ /** @} */ +#endif /* NET_GNRC_NETTYPE_H */ diff --git a/sys/include/net/gnrc/pkt.h b/sys/include/net/gnrc/pkt.h index c6eddef01e18..68b27f24757a 100644 --- a/sys/include/net/gnrc/pkt.h +++ b/sys/include/net/gnrc/pkt.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_GNRC_PKT_H +#define NET_GNRC_PKT_H /** * @defgroup net_gnrc_pkt Packet * @ingroup net_gnrc_pktbuf @@ -19,8 +21,6 @@ * @author Martine Lenders * @author Hauke Petersen */ -#ifndef NET_GNRC_PKT_H -#define NET_GNRC_PKT_H #include #include @@ -293,5 +293,5 @@ gnrc_pktsnip_t *gnrc_pktsnip_search_type(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_PKT_H */ /** @} */ +#endif /* NET_GNRC_PKT_H */ diff --git a/sys/include/net/gnrc/pktbuf.h b/sys/include/net/gnrc/pktbuf.h index cbb0e3d26ac1..2949a9a4587b 100644 --- a/sys/include/net/gnrc/pktbuf.h +++ b/sys/include/net/gnrc/pktbuf.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_GNRC_PKTBUF_H +#define NET_GNRC_PKTBUF_H /** * @defgroup net_gnrc_pktbuf Packet buffer * @ingroup net_gnrc @@ -27,8 +29,6 @@ * @author Martine Lenders * @author Hauke Petersen */ -#ifndef NET_GNRC_PKTBUF_H -#define NET_GNRC_PKTBUF_H #include #include @@ -330,5 +330,5 @@ bool gnrc_pktbuf_is_sane(void); } #endif -#endif /* NET_GNRC_PKTBUF_H */ /** @} */ +#endif /* NET_GNRC_PKTBUF_H */ diff --git a/sys/include/net/gnrc/pktdump.h b/sys/include/net/gnrc/pktdump.h index 5a0498256dcb..d74acd35e2b4 100644 --- a/sys/include/net/gnrc/pktdump.h +++ b/sys/include/net/gnrc/pktdump.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_PKTDUMP_H +#define NET_GNRC_PKTDUMP_H + /** * @defgroup net_gnrc_pktdump Dump Network Packets * @ingroup net_gnrc @@ -19,9 +22,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_PKTDUMP_H -#define NET_GNRC_PKTDUMP_H - #include "sched.h" #ifdef __cplusplus @@ -88,5 +88,5 @@ kernel_pid_t gnrc_pktdump_init(void); } #endif -#endif /* NET_GNRC_PKTDUMP_H */ /** @} */ +#endif /* NET_GNRC_PKTDUMP_H */ diff --git a/sys/include/net/gnrc/priority_pktqueue.h b/sys/include/net/gnrc/priority_pktqueue.h index e3cb0f2607c4..cfc36a0ce5aa 100644 --- a/sys/include/net/gnrc/priority_pktqueue.h +++ b/sys/include/net/gnrc/priority_pktqueue.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_GNRC_PRIORITY_PKTQUEUE_H +#define NET_GNRC_PRIORITY_PKTQUEUE_H + /** * @defgroup net_gnrc_priority_pktqueue Priority packet queue for GNRC * @ingroup net_gnrc @@ -20,9 +23,6 @@ * @author Shuguo Zhuo */ -#ifndef NET_GNRC_PRIORITY_PKTQUEUE_H -#define NET_GNRC_PRIORITY_PKTQUEUE_H - #include #include "priority_queue.h" @@ -135,5 +135,5 @@ void gnrc_priority_pktqueue_push(gnrc_priority_pktqueue_t *queue, } #endif -#endif /* NET_GNRC_PRIORITY_PKTQUEUE_H */ /** @} */ +#endif /* NET_GNRC_PRIORITY_PKTQUEUE_H */ diff --git a/sys/include/net/gnrc/rpl.h b/sys/include/net/gnrc/rpl.h index d669b58abfcc..d163c564087b 100644 --- a/sys/include/net/gnrc/rpl.h +++ b/sys/include/net/gnrc/rpl.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_H +#define NET_GNRC_RPL_H + /** * @defgroup net_gnrc_rpl RPL * @ingroup net_gnrc @@ -138,9 +141,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_H -#define NET_GNRC_RPL_H - #include #include #include "modules.h" @@ -761,5 +761,5 @@ void gnrc_rpl_configure_root(gnrc_netif_t *netif, const ipv6_addr_t *dodag_id); } #endif -#endif /* NET_GNRC_RPL_H */ /** @} */ +#endif /* NET_GNRC_RPL_H */ diff --git a/sys/include/net/gnrc/rpl/of_manager.h b/sys/include/net/gnrc/rpl/of_manager.h index 4901e791ec5b..0582018eade7 100644 --- a/sys/include/net/gnrc/rpl/of_manager.h +++ b/sys/include/net/gnrc/rpl/of_manager.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_OF_MANAGER_H +#define NET_GNRC_RPL_OF_MANAGER_H + /** * @ingroup net_gnrc_rpl * @{ @@ -16,9 +19,6 @@ * @author Fabian Brandt */ -#ifndef NET_GNRC_RPL_OF_MANAGER_H -#define NET_GNRC_RPL_OF_MANAGER_H - #include "structs.h" #ifdef __cplusplus @@ -41,5 +41,5 @@ gnrc_rpl_of_t *gnrc_rpl_get_of_for_ocp(uint16_t ocp); } #endif -#endif /* NET_GNRC_RPL_OF_MANAGER_H */ /** @} */ +#endif /* NET_GNRC_RPL_OF_MANAGER_H */ diff --git a/sys/include/net/gnrc/rpl/p2p.h b/sys/include/net/gnrc/rpl/p2p.h index 252586eaa7e0..bb361577f9de 100644 --- a/sys/include/net/gnrc/rpl/p2p.h +++ b/sys/include/net/gnrc/rpl/p2p.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_P2P_H +#define NET_GNRC_RPL_P2P_H /** * @defgroup net_gnrc_rpl_p2p Reactive Discovery of P2P Routes in LLNs * @ingroup net_gnrc_rpl @@ -20,8 +22,6 @@ * * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_P2P_H -#define NET_GNRC_RPL_P2P_H #include "net/ipv6/addr.h" #include "net/gnrc.h" @@ -176,5 +176,5 @@ void gnrc_rpl_p2p_update(void); } #endif -#endif /* NET_GNRC_RPL_P2P_H */ /** @} */ +#endif /* NET_GNRC_RPL_P2P_H */ diff --git a/sys/include/net/gnrc/rpl/rpble.h b/sys/include/net/gnrc/rpl/rpble.h index 22403024082b..df85b4af5d06 100644 --- a/sys/include/net/gnrc/rpl/rpble.h +++ b/sys/include/net/gnrc/rpl/rpble.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_RPBLE_H +#define NET_GNRC_RPL_RPBLE_H + /** * @ingroup net_gnrc_rpl * @{ @@ -16,9 +19,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_RPL_RPBLE_H -#define NET_GNRC_RPL_RPBLE_H - #include #if IS_USED(MODULE_NIMBLE_RPBLE) #include "nimble_rpble.h" @@ -51,5 +51,5 @@ static inline void gnrc_rpl_rpble_update(const gnrc_rpl_dodag_t *dodag) } #endif -#endif /* NET_GNRC_RPL_RPBLE_H */ /** @} */ +#endif /* NET_GNRC_RPL_RPBLE_H */ diff --git a/sys/include/net/gnrc/rpl/srh.h b/sys/include/net/gnrc/rpl/srh.h index 42ff83b5e691..ee9096b69093 100644 --- a/sys/include/net/gnrc/rpl/srh.h +++ b/sys/include/net/gnrc/rpl/srh.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_SRH_H +#define NET_GNRC_RPL_SRH_H /** * @defgroup net_gnrc_rpl_srh RPL source routing header extension * @ingroup net_gnrc_rpl @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_RPL_SRH_H -#define NET_GNRC_RPL_SRH_H #include "net/ipv6/hdr.h" #include "net/ipv6/addr.h" @@ -73,5 +73,5 @@ int gnrc_rpl_srh_process(ipv6_hdr_t *ipv6, gnrc_rpl_srh_t *rh, void **err_ptr); } #endif -#endif /* NET_GNRC_RPL_SRH_H */ /** @} */ +#endif /* NET_GNRC_RPL_SRH_H */ diff --git a/sys/include/net/gnrc/rpl/structs.h b/sys/include/net/gnrc/rpl/structs.h index 98011b3fa884..c7499ab7c4af 100644 --- a/sys/include/net/gnrc/rpl/structs.h +++ b/sys/include/net/gnrc/rpl/structs.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef NET_GNRC_RPL_STRUCTS_H +#define NET_GNRC_RPL_STRUCTS_H + /** * @ingroup net_gnrc_rpl * @{ @@ -21,9 +24,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_GNRC_RPL_STRUCTS_H -#define NET_GNRC_RPL_STRUCTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/net/gnrc/sixlowpan.h b/sys/include/net/gnrc/sixlowpan.h index caca204c16e4..f31fea7f6ff5 100644 --- a/sys/include/net/gnrc/sixlowpan.h +++ b/sys/include/net/gnrc/sixlowpan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_H +#define NET_GNRC_SIXLOWPAN_H /** * @defgroup net_gnrc_sixlowpan 6LoWPAN * @ingroup net_gnrc @@ -132,8 +134,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_H -#define NET_GNRC_SIXLOWPAN_H #include @@ -166,5 +166,5 @@ kernel_pid_t gnrc_sixlowpan_init(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_H */ diff --git a/sys/include/net/gnrc/sixlowpan/config.h b/sys/include/net/gnrc/sixlowpan/config.h index 0588d0b262d2..5e7b973106f7 100644 --- a/sys/include/net/gnrc/sixlowpan/config.h +++ b/sys/include/net/gnrc/sixlowpan/config.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_CONFIG_H +#define NET_GNRC_SIXLOWPAN_CONFIG_H /** * @defgroup net_gnrc_sixlowpan_config GNRC 6LoWPAN compile configurations * @ingroup net_gnrc_sixlowpan @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_CONFIG_H -#define NET_GNRC_SIXLOWPAN_CONFIG_H #include "modules.h" #include "timex.h" @@ -411,5 +411,5 @@ extern "C" { } #endif -#endif /* NET_GNRC_SIXLOWPAN_CONFIG_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_CONFIG_H */ diff --git a/sys/include/net/gnrc/sixlowpan/ctx.h b/sys/include/net/gnrc/sixlowpan/ctx.h index 514872410236..d751c5f564a8 100644 --- a/sys/include/net/gnrc/sixlowpan/ctx.h +++ b/sys/include/net/gnrc/sixlowpan/ctx.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_CTX_H +#define NET_GNRC_SIXLOWPAN_CTX_H /** * @defgroup net_gnrc_sixlowpan_ctx Contexts for 6LoWPAN address compression * @ingroup net_gnrc_sixlowpan @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_CTX_H -#define NET_GNRC_SIXLOWPAN_CTX_H #include #include @@ -200,5 +200,5 @@ void gnrc_sixlowpan_ctx_reset(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_CTX_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_CTX_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag.h b/sys/include/net/gnrc/sixlowpan/frag.h index 728211938e49..7166587ccf2b 100644 --- a/sys/include/net/gnrc/sixlowpan/frag.h +++ b/sys/include/net/gnrc/sixlowpan/frag.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_H +#define NET_GNRC_SIXLOWPAN_FRAG_H /** * @defgroup net_gnrc_sixlowpan_frag 6LoWPAN Fragmentation * @ingroup net_gnrc_sixlowpan @@ -22,8 +24,6 @@ * @author Martine Lenders * @author Peter Kietzmann */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_H -#define NET_GNRC_SIXLOWPAN_FRAG_H #include @@ -71,5 +71,5 @@ void gnrc_sixlowpan_frag_recv(gnrc_pktsnip_t *pkt, void *ctx, unsigned page); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/fb.h b/sys/include/net/gnrc/sixlowpan/frag/fb.h index f716d77020f5..08e3661c0dc9 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/fb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/fb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_FB_H +#define NET_GNRC_SIXLOWPAN_FRAG_FB_H /** * @defgroup net_gnrc_sixlowpan_frag_fb 6LoWPAN fragmentation buffer * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_FB_H -#define NET_GNRC_SIXLOWPAN_FRAG_FB_H #include #include @@ -139,5 +139,5 @@ static inline bool gnrc_sixlowpan_frag_fb_send(gnrc_sixlowpan_frag_fb_t *fbuf) } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_FB_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_FB_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/hint.h b/sys/include/net/gnrc/sixlowpan/frag/hint.h index d5bd46a78690..6233dc43c7ce 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/hint.h +++ b/sys/include/net/gnrc/sixlowpan/frag/hint.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_HINT_H +#define NET_GNRC_SIXLOWPAN_FRAG_HINT_H /** * @defgroup net_gnrc_sixlowpan_frag_hint Fragment size hint * @ingroup net_gnrc_sixlowpan_frag @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_HINT_H -#define NET_GNRC_SIXLOWPAN_FRAG_HINT_H #include @@ -55,5 +55,5 @@ typedef struct { } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_HINT_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_HINT_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/minfwd.h b/sys/include/net/gnrc/sixlowpan/frag/minfwd.h index df9a93ecf04e..fe938444ee5f 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/minfwd.h +++ b/sys/include/net/gnrc/sixlowpan/frag/minfwd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H +#define NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H /** * @defgroup net_gnrc_sixlowpan_frag_minfwd Minimal fragment forwarding * @ingroup net_gnrc_sixlowpan_frag @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H -#define NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H #include @@ -96,5 +96,5 @@ int gnrc_sixlowpan_frag_minfwd_frag_iphc(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_MINFWD_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/rb.h b/sys/include/net/gnrc/sixlowpan/frag/rb.h index 423fc634f16f..cea58086e333 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/rb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/rb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_RB_H +#define NET_GNRC_SIXLOWPAN_FRAG_RB_H /** * @defgroup net_gnrc_sixlowpan_frag_rb 6LoWPAN reassembly buffer * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_RB_H -#define NET_GNRC_SIXLOWPAN_FRAG_RB_H #include #include @@ -316,5 +316,5 @@ static inline bool gnrc_sixlowpan_frag_rb_ints_empty(void) } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_RB_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_RB_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr.h b/sys/include/net/gnrc/sixlowpan/frag/sfr.h index 2f54c8971587..5930d8e70aff 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_H +#define NET_GNRC_SIXLOWPAN_FRAG_SFR_H /** * @defgroup net_gnrc_sixlowpan_frag_sfr 6LoWPAN selective fragment recovery * @ingroup net_gnrc_sixlowpan @@ -31,8 +33,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_H #include "assert.h" #include "bitfield.h" @@ -203,5 +203,5 @@ void gnrc_sixlowpan_frag_sfr_stats_get(gnrc_sixlowpan_frag_sfr_stats_t *stats); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h b/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h index 2b768fda78a3..356bfb1512eb 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr/congure.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H +#define NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H /** * @defgroup net_gnrc_sixlowpan_frag_sfr_congure Congestion control for 6LoWPAN SFR * @ingroup net_gnrc_sixlowpan_frag_sfr @@ -26,8 +28,6 @@ * * @author Martine S. Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H #include #include @@ -427,5 +427,5 @@ static inline void gnrc_sixlowpan_frag_sfr_congure_snd_report_ecn( } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h b/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h index bbb18ded6295..a58d91f18ece 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h +++ b/sys/include/net/gnrc/sixlowpan/frag/sfr_types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H +#define NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H /** * @addtogroup net_gnrc_sixlowpan_frag_sfr * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H -#define NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H #include @@ -64,5 +64,5 @@ typedef struct gnrc_sixlowpan_frag_sfr_fb { } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_SFR_TYPES_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/stats.h b/sys/include/net/gnrc/sixlowpan/frag/stats.h index 164624dfffbb..2040bc90bd18 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/stats.h +++ b/sys/include/net/gnrc/sixlowpan/frag/stats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_STATS_H +#define NET_GNRC_SIXLOWPAN_FRAG_STATS_H /** * @defgroup net_gnrc_sixlowpan_frag_stats Fragmentation and reassembly statistics * @ingroup net_gnrc_sixlowpan_frag @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_STATS_H -#define NET_GNRC_SIXLOWPAN_FRAG_STATS_H #ifdef __cplusplus extern "C" { @@ -53,5 +53,5 @@ gnrc_sixlowpan_frag_stats_t *gnrc_sixlowpan_frag_stats_get(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_STATS_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_STATS_H */ diff --git a/sys/include/net/gnrc/sixlowpan/frag/vrb.h b/sys/include/net/gnrc/sixlowpan/frag/vrb.h index daabe8225ff8..52bce31b083c 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/vrb.h +++ b/sys/include/net/gnrc/sixlowpan/frag/vrb.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_FRAG_VRB_H +#define NET_GNRC_SIXLOWPAN_FRAG_VRB_H /** * @defgroup net_gnrc_sixlowpan_frag_vrb Virtual reassembly buffer * @ingroup net_gnrc_sixlowpan_frag @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_FRAG_VRB_H -#define NET_GNRC_SIXLOWPAN_FRAG_VRB_H #include #include @@ -180,5 +180,5 @@ void gnrc_sixlowpan_frag_vrb_reset(void); } #endif -#endif /* NET_GNRC_SIXLOWPAN_FRAG_VRB_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_FRAG_VRB_H */ diff --git a/sys/include/net/gnrc/sixlowpan/internal.h b/sys/include/net/gnrc/sixlowpan/internal.h index 8c7bc5838f2d..144ccad20df3 100644 --- a/sys/include/net/gnrc/sixlowpan/internal.h +++ b/sys/include/net/gnrc/sixlowpan/internal.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_INTERNAL_H +#define NET_GNRC_SIXLOWPAN_INTERNAL_H /** * @ingroup net_gnrc_sixlowpan * @{ @@ -15,8 +17,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_INTERNAL_H -#define NET_GNRC_SIXLOWPAN_INTERNAL_H #include @@ -73,5 +73,5 @@ void gnrc_sixlowpan_multiplex_by_size(gnrc_pktsnip_t *pkt, } #endif -#endif /* NET_GNRC_SIXLOWPAN_INTERNAL_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_INTERNAL_H */ diff --git a/sys/include/net/gnrc/sixlowpan/iphc.h b/sys/include/net/gnrc/sixlowpan/iphc.h index deb5bd7a6ab5..cb7651d86f52 100644 --- a/sys/include/net/gnrc/sixlowpan/iphc.h +++ b/sys/include/net/gnrc/sixlowpan/iphc.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_IPHC_H +#define NET_GNRC_SIXLOWPAN_IPHC_H /** * @defgroup net_gnrc_sixlowpan_iphc IPv6 header compression (IPHC) * @ingroup net_gnrc_sixlowpan @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_IPHC_H -#define NET_GNRC_SIXLOWPAN_IPHC_H #include @@ -67,5 +67,5 @@ void gnrc_sixlowpan_iphc_send(gnrc_pktsnip_t *pkt, void *ctx, unsigned page); } #endif -#endif /* NET_GNRC_SIXLOWPAN_IPHC_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_IPHC_H */ diff --git a/sys/include/net/gnrc/sixlowpan/nd.h b/sys/include/net/gnrc/sixlowpan/nd.h index 15abd2634c76..23ca37c5703e 100644 --- a/sys/include/net/gnrc/sixlowpan/nd.h +++ b/sys/include/net/gnrc/sixlowpan/nd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_SIXLOWPAN_ND_H +#define NET_GNRC_SIXLOWPAN_ND_H /** * @defgroup net_gnrc_sixlowpan_nd 6LoWPAN neighbor discovery * @ingroup net_gnrc_sixlowpan @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_GNRC_SIXLOWPAN_ND_H -#define NET_GNRC_SIXLOWPAN_ND_H #include @@ -83,5 +83,5 @@ gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime } #endif -#endif /* NET_GNRC_SIXLOWPAN_ND_H */ /** @} */ +#endif /* NET_GNRC_SIXLOWPAN_ND_H */ diff --git a/sys/include/net/gnrc/tcp.h b/sys/include/net/gnrc/tcp.h index 9b37c58a09d9..451eefd7ceef 100644 --- a/sys/include/net/gnrc/tcp.h +++ b/sys/include/net/gnrc/tcp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_TCP_H +#define NET_GNRC_TCP_H + /** * @defgroup net_gnrc_tcp TCP * @ingroup net_gnrc @@ -19,9 +22,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_H -#define NET_GNRC_TCP_H - #include #include "net/gnrc/pkt.h" #include "net/gnrc/tcp/tcb.h" @@ -371,5 +371,5 @@ gnrc_pktsnip_t *gnrc_tcp_hdr_build(gnrc_pktsnip_t *payload, uint16_t src, uint16 } #endif -#endif /* NET_GNRC_TCP_H */ /** @} */ +#endif /* NET_GNRC_TCP_H */ diff --git a/sys/include/net/gnrc/tcp/config.h b/sys/include/net/gnrc/tcp/config.h index a63ea3bb7a1a..f559cd8297c1 100644 --- a/sys/include/net/gnrc/tcp/config.h +++ b/sys/include/net/gnrc/tcp/config.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_TCP_CONFIG_H +#define NET_GNRC_TCP_CONFIG_H + /** * @ingroup net_gnrc_tcp * @@ -17,9 +20,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_CONFIG_H -#define NET_GNRC_TCP_CONFIG_H - #include "timex.h" #ifdef __cplusplus @@ -211,5 +211,5 @@ extern "C" { } #endif -#endif /* NET_GNRC_TCP_CONFIG_H */ /** @} */ +#endif /* NET_GNRC_TCP_CONFIG_H */ diff --git a/sys/include/net/gnrc/tcp/tcb.h b/sys/include/net/gnrc/tcp/tcb.h index a83d333892ae..4b897f1f36dc 100644 --- a/sys/include/net/gnrc/tcp/tcb.h +++ b/sys/include/net/gnrc/tcp/tcb.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_TCP_TCB_H +#define NET_GNRC_TCP_TCB_H + /** * @ingroup net_gnrc_tcp * @@ -17,9 +20,6 @@ * @author Simon Brummer */ -#ifndef NET_GNRC_TCP_TCB_H -#define NET_GNRC_TCP_TCB_H - #include #include "ringbuffer.h" #include "mutex.h" @@ -96,5 +96,5 @@ typedef struct sock_tcp_queue { #ifdef __cplusplus } #endif -#endif /* NET_GNRC_TCP_TCB_H */ /** @} */ +#endif /* NET_GNRC_TCP_TCB_H */ diff --git a/sys/include/net/gnrc/tx_sync.h b/sys/include/net/gnrc/tx_sync.h index 5b8c2159f5cc..c31a276774a6 100644 --- a/sys/include/net/gnrc/tx_sync.h +++ b/sys/include/net/gnrc/tx_sync.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_GNRC_TX_SYNC_H +#define NET_GNRC_TX_SYNC_H /** * @defgroup net_gnrc_tx_sync Helpers for synchronizing with transmission. * @ingroup net_gnrc @@ -18,8 +20,6 @@ * * @author Marian Buschsieweke */ -#ifndef NET_GNRC_TX_SYNC_H -#define NET_GNRC_TX_SYNC_H #include #include @@ -135,5 +135,5 @@ static inline void gnrc_tx_sync(gnrc_tx_sync_t *sync) } #endif -#endif /* NET_GNRC_TX_SYNC_H */ /** @} */ +#endif /* NET_GNRC_TX_SYNC_H */ diff --git a/sys/include/net/gnrc/udp.h b/sys/include/net/gnrc/udp.h index 8e2da33a7fc1..7fd6d196d59b 100644 --- a/sys/include/net/gnrc/udp.h +++ b/sys/include/net/gnrc/udp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_GNRC_UDP_H +#define NET_GNRC_UDP_H + /** * @defgroup net_gnrc_udp UDP * @ingroup net_gnrc @@ -19,9 +22,6 @@ * @author Hauke Petersen */ -#ifndef NET_GNRC_UDP_H -#define NET_GNRC_UDP_H - #include #include "byteorder.h" @@ -115,5 +115,5 @@ int gnrc_udp_init(void); } #endif -#endif /* NET_GNRC_UDP_H */ /** @} */ +#endif /* NET_GNRC_UDP_H */ diff --git a/sys/include/net/iana/portrange.h b/sys/include/net/iana/portrange.h index 20f48be49006..5aa9519ac5b6 100644 --- a/sys/include/net/iana/portrange.h +++ b/sys/include/net/iana/portrange.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IANA_PORTRANGE_H +#define NET_IANA_PORTRANGE_H /** * @defgroup net_iana_portrange IANA Port Ranges * @ingroup net @@ -17,8 +19,6 @@ * * @author smlng , */ -#ifndef NET_IANA_PORTRANGE_H -#define NET_IANA_PORTRANGE_H #ifdef __cplusplus extern "C" { @@ -43,5 +43,5 @@ extern "C" { } #endif -#endif /* NET_IANA_PORTRANGE_H */ /** @} */ +#endif /* NET_IANA_PORTRANGE_H */ diff --git a/sys/include/net/icmp.h b/sys/include/net/icmp.h index a7645ac0478a..33387bc20e78 100644 --- a/sys/include/net/icmp.h +++ b/sys/include/net/icmp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_ICMP_H +#define NET_ICMP_H /** * @defgroup net_icmp ICMPV4 * @ingroup net_ipv4 @@ -20,8 +22,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_ICMP_H -#define NET_ICMP_H #include "byteorder.h" @@ -48,5 +48,5 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* NET_ICMP_H */ /** @} */ +#endif /* NET_ICMP_H */ diff --git a/sys/include/net/icmpv6.h b/sys/include/net/icmpv6.h index b9366e33f5d0..92556be6852f 100644 --- a/sys/include/net/icmpv6.h +++ b/sys/include/net/icmpv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_ICMPV6_H +#define NET_ICMPV6_H /** * @defgroup net_icmpv6 ICMPV6 * @ingroup net_ipv6 @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_ICMPV6_H -#define NET_ICMPV6_H #include @@ -231,5 +231,5 @@ void icmpv6_hdr_print(icmpv6_hdr_t *hdr); } #endif -#endif /* NET_ICMPV6_H */ /** @} */ +#endif /* NET_ICMPV6_H */ diff --git a/sys/include/net/ieee802154.h b/sys/include/net/ieee802154.h index d92a1352d9a6..58198f3f4bb7 100644 --- a/sys/include/net/ieee802154.h +++ b/sys/include/net/ieee802154.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_IEEE802154_H +#define NET_IEEE802154_H + /** * @defgroup net_ieee802154_header IEEE 802.15.4 frame headers and definitions * @ingroup net_ieee802154 @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_IEEE802154_H -#define NET_IEEE802154_H - #include #include @@ -794,5 +794,5 @@ static inline uint8_t ieee802154_dbm_to_rssi(int16_t dbm) } #endif -#endif /* NET_IEEE802154_H */ /** @} */ +#endif /* NET_IEEE802154_H */ diff --git a/sys/include/net/ieee802154/radio.h b/sys/include/net/ieee802154/radio.h index eb20f33004b8..2591c17e9d2d 100644 --- a/sys/include/net/ieee802154/radio.h +++ b/sys/include/net/ieee802154/radio.h @@ -6,6 +6,9 @@ * details. */ +#ifndef NET_IEEE802154_RADIO_H +#define NET_IEEE802154_RADIO_H + /** * @defgroup drivers_ieee802154_hal IEEE802.15.4 Radio Hardware Abstraction Layer * @ingroup drivers @@ -19,9 +22,6 @@ * @author José I. Alamos */ -#ifndef NET_IEEE802154_RADIO_H -#define NET_IEEE802154_RADIO_H - #ifdef __cplusplus extern "C" { #endif @@ -1647,5 +1647,5 @@ static inline ieee802154_phy_mode_t ieee802154_cap_to_phy_mode(uint32_t cap) } #endif -#endif /* NET_IEEE802154_RADIO_H */ /** @} */ +#endif /* NET_IEEE802154_RADIO_H */ diff --git a/sys/include/net/ieee802154/submac.h b/sys/include/net/ieee802154/submac.h index a41de6cc1540..89cec51dbc52 100644 --- a/sys/include/net/ieee802154/submac.h +++ b/sys/include/net/ieee802154/submac.h @@ -6,6 +6,8 @@ * details. */ +#ifndef NET_IEEE802154_SUBMAC_H +#define NET_IEEE802154_SUBMAC_H /** * @defgroup net_ieee802154_submac IEEE802.15.4 SubMAC layer * @ingroup net_ieee802154 @@ -104,8 +106,6 @@ * * @author José I. Alamos */ -#ifndef NET_IEEE802154_SUBMAC_H -#define NET_IEEE802154_SUBMAC_H #ifdef __cplusplus extern "C" { @@ -612,5 +612,5 @@ static inline void ieee802154_submac_tx_done_cb(ieee802154_submac_t *submac) } #endif -#endif /* NET_IEEE802154_SUBMAC_H */ /** @} */ +#endif /* NET_IEEE802154_SUBMAC_H */ diff --git a/sys/include/net/ieee802154_security.h b/sys/include/net/ieee802154_security.h index 6d3d842ee258..6e29c53b2521 100644 --- a/sys/include/net/ieee802154_security.h +++ b/sys/include/net/ieee802154_security.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_IEEE802154_SECURITY_H +#define NET_IEEE802154_SECURITY_H + /** * @defgroup net_ieee802154_security IEEE 802.15.4 security * @ingroup net_ieee802154 @@ -27,9 +30,6 @@ * @author Fabian Hüßler */ -#ifndef NET_IEEE802154_SECURITY_H -#define NET_IEEE802154_SECURITY_H - #include #include "ieee802154.h" #include "crypto/ciphers.h" @@ -439,5 +439,5 @@ extern const ieee802154_radio_cipher_ops_t ieee802154_radio_cipher_ops; } #endif -#endif /* NET_IEEE802154_SECURITY_H */ /** @} */ +#endif /* NET_IEEE802154_SECURITY_H */ diff --git a/sys/include/net/inet_csum.h b/sys/include/net/inet_csum.h index 4b89c1699385..806ec8e14b35 100644 --- a/sys/include/net/inet_csum.h +++ b/sys/include/net/inet_csum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_INET_CSUM_H +#define NET_INET_CSUM_H /** * @defgroup net_inet_csum Internet Checksum * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_INET_CSUM_H -#define NET_INET_CSUM_H #include #include @@ -77,5 +77,5 @@ static inline uint16_t inet_csum(uint16_t sum, const uint8_t *buf, uint16_t len) } #endif -#endif /* NET_INET_CSUM_H */ /** @} */ +#endif /* NET_INET_CSUM_H */ diff --git a/sys/include/net/ipv4.h b/sys/include/net/ipv4.h index ebbd588af0ef..fb027960dfed 100644 --- a/sys/include/net/ipv4.h +++ b/sys/include/net/ipv4.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV4_H +#define NET_IPV4_H /** * @defgroup net_ipv4 IPv4 * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV4_H -#define NET_IPV4_H #include "net/ipv4/addr.h" @@ -30,5 +30,5 @@ extern "C" { } #endif -#endif /* NET_IPV4_H */ /** @} */ +#endif /* NET_IPV4_H */ diff --git a/sys/include/net/ipv4/addr.h b/sys/include/net/ipv4/addr.h index df837ea94663..95578f276da0 100644 --- a/sys/include/net/ipv4/addr.h +++ b/sys/include/net/ipv4/addr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV4_ADDR_H +#define NET_IPV4_ADDR_H /** * @defgroup net_ipv4_addr IPv4 addresses * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV4_ADDR_H -#define NET_IPV4_ADDR_H #include #include @@ -141,5 +141,5 @@ void ipv4_addr_print(const ipv4_addr_t *addr); } #endif -#endif /* NET_IPV4_ADDR_H */ /** @} */ +#endif /* NET_IPV4_ADDR_H */ diff --git a/sys/include/net/ipv4/hdr.h b/sys/include/net/ipv4/hdr.h index 13c90386ecdd..9f86c24bcc3f 100644 --- a/sys/include/net/ipv4/hdr.h +++ b/sys/include/net/ipv4/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV4_HDR_H +#define NET_IPV4_HDR_H /** * @defgroup net_ipv4_hdr IPv4 header * @ingroup net_ipv4 @@ -17,8 +19,6 @@ * * @author José Ignacio Alamos */ -#ifndef NET_IPV4_HDR_H -#define NET_IPV4_HDR_H #include "byteorder.h" #include "net/ipv4/addr.h" @@ -190,5 +190,5 @@ static inline uint16_t ipv4_hdr_get_fo(ipv4_hdr_t *hdr) } #endif -#endif /* NET_IPV4_HDR_H */ /** @} */ +#endif /* NET_IPV4_HDR_H */ diff --git a/sys/include/net/ipv6.h b/sys/include/net/ipv6.h index 58c37ccaecaf..5412519fe3a3 100644 --- a/sys/include/net/ipv6.h +++ b/sys/include/net/ipv6.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV6_H +#define NET_IPV6_H /** * @defgroup net_ipv6 IPv6 * @ingroup net @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_H -#define NET_IPV6_H #include "net/ipv6/addr.h" #include "net/ipv6/ext.h" @@ -41,5 +41,5 @@ extern "C" { } #endif -#endif /* NET_IPV6_H */ /** @} */ +#endif /* NET_IPV6_H */ diff --git a/sys/include/net/ipv6/addr.h b/sys/include/net/ipv6/addr.h index b1d3ce4af9d1..95cfd7cecd92 100644 --- a/sys/include/net/ipv6/addr.h +++ b/sys/include/net/ipv6/addr.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef NET_IPV6_ADDR_H +#define NET_IPV6_ADDR_H + /** * @defgroup net_ipv6_addr IPv6 addresses * @ingroup net_ipv6 @@ -23,9 +26,6 @@ * @author Martine Lenders */ -#ifndef NET_IPV6_ADDR_H -#define NET_IPV6_ADDR_H - #include #include diff --git a/sys/include/net/ipv6/ext.h b/sys/include/net/ipv6/ext.h index 2771e6132eed..5368e29a4ad7 100644 --- a/sys/include/net/ipv6/ext.h +++ b/sys/include/net/ipv6/ext.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV6_EXT_H +#define NET_IPV6_EXT_H /** * @defgroup net_ipv6_ext IPv6 extension headers * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_H -#define NET_IPV6_EXT_H #include @@ -59,5 +59,5 @@ static inline ipv6_ext_t *ipv6_ext_get_next(ipv6_ext_t *ext) } #endif -#endif /* NET_IPV6_EXT_H */ /** @} */ +#endif /* NET_IPV6_EXT_H */ diff --git a/sys/include/net/ipv6/ext/frag.h b/sys/include/net/ipv6/ext/frag.h index 9cc033f761d9..e29077545fca 100644 --- a/sys/include/net/ipv6/ext/frag.h +++ b/sys/include/net/ipv6/ext/frag.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV6_EXT_FRAG_H +#define NET_IPV6_EXT_FRAG_H /** * @defgroup net_ipv6_ext_frag IPv6 fragmentation extension * @ingroup net_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_FRAG_H -#define NET_IPV6_EXT_FRAG_H #include #include @@ -115,5 +115,5 @@ static inline void ipv6_ext_frag_set_more(ipv6_ext_frag_t *frag) } #endif -#endif /* NET_IPV6_EXT_FRAG_H */ /** @} */ +#endif /* NET_IPV6_EXT_FRAG_H */ diff --git a/sys/include/net/ipv6/ext/opt.h b/sys/include/net/ipv6/ext/opt.h index 685ea0b79034..c4ca3e68175a 100644 --- a/sys/include/net/ipv6/ext/opt.h +++ b/sys/include/net/ipv6/ext/opt.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV6_EXT_OPT_H +#define NET_IPV6_EXT_OPT_H /** * @defgroup net_ipv6_ext_opt IPv6 destination and hop-by-hop options * @ingroup net_ipv6_ext @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_OPT_H -#define NET_IPV6_EXT_OPT_H #include @@ -92,5 +92,5 @@ extern "C" { } #endif -#endif /* NET_IPV6_EXT_OPT_H */ /** @} */ +#endif /* NET_IPV6_EXT_OPT_H */ diff --git a/sys/include/net/ipv6/ext/rh.h b/sys/include/net/ipv6/ext/rh.h index b430b1b7734c..4e7e30574496 100644 --- a/sys/include/net/ipv6/ext/rh.h +++ b/sys/include/net/ipv6/ext/rh.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_IPV6_EXT_RH_H +#define NET_IPV6_EXT_RH_H /** * @defgroup net_ipv6_ext_rh IPv6 routing header extension * @ingroup net_ipv6_ext @@ -19,8 +21,6 @@ * @author Cenk Gündoğan * @author Martine Lenders */ -#ifndef NET_IPV6_EXT_RH_H -#define NET_IPV6_EXT_RH_H #include @@ -74,5 +74,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_IPV6_EXT_RH_H */ /** @} */ +#endif /* NET_IPV6_EXT_RH_H */ diff --git a/sys/include/net/ipv6/hdr.h b/sys/include/net/ipv6/hdr.h index f240a54b355e..753ab299d2b8 100644 --- a/sys/include/net/ipv6/hdr.h +++ b/sys/include/net/ipv6/hdr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_IPV6_HDR_H +#define NET_IPV6_HDR_H /** * @defgroup net_ipv6_hdr IPv6 header * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_IPV6_HDR_H -#define NET_IPV6_HDR_H #include @@ -303,5 +303,5 @@ void ipv6_hdr_print(ipv6_hdr_t *hdr); } #endif -#endif /* NET_IPV6_HDR_H */ /** @} */ +#endif /* NET_IPV6_HDR_H */ diff --git a/sys/include/net/l2filter.h b/sys/include/net/l2filter.h index 25a68f1de18f..87370a78855b 100644 --- a/sys/include/net/l2filter.h +++ b/sys/include/net/l2filter.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_L2FILTER_H +#define NET_L2FILTER_H + /** * @experimental * @defgroup net_l2filter Link layer address filter @@ -29,9 +32,6 @@ * @author Hauke Petersen */ -#ifndef NET_L2FILTER_H -#define NET_L2FILTER_H - #include #include #include @@ -132,5 +132,5 @@ bool l2filter_pass(const l2filter_t *list, const void *addr, size_t addr_len); } #endif -#endif /* NET_L2FILTER_H */ /** @} */ +#endif /* NET_L2FILTER_H */ diff --git a/sys/include/net/l2scan_list.h b/sys/include/net/l2scan_list.h index 7d88e3e22040..e13100d0545a 100644 --- a/sys/include/net/l2scan_list.h +++ b/sys/include/net/l2scan_list.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_L2SCAN_LIST_H +#define NET_L2SCAN_LIST_H + /** * @defgroup net_l2scanlist Scan List - List of wireless access points * @ingroup net @@ -19,9 +22,6 @@ * @author Fabian Hüßler */ -#ifndef NET_L2SCAN_LIST_H -#define NET_L2SCAN_LIST_H - #include #include "list.h" @@ -83,5 +83,5 @@ unsigned l2scan_list_to_array(const l2scan_list_t *list, } #endif -#endif /* NET_L2SCAN_LIST_H */ /** @} */ +#endif /* NET_L2SCAN_LIST_H */ diff --git a/sys/include/net/l2util.h b/sys/include/net/l2util.h index 1d08bbb7aa47..88cbcbb2f1ea 100644 --- a/sys/include/net/l2util.h +++ b/sys/include/net/l2util.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_L2UTIL_H +#define NET_L2UTIL_H /** * @defgroup net_l2util Stack-independent helpers for IPv6 over X * @ingroup net @@ -22,8 +24,6 @@ * * @author Martine Lenders */ -#ifndef NET_L2UTIL_H -#define NET_L2UTIL_H #include @@ -214,5 +214,5 @@ static inline bool l2util_addr_equal(const uint8_t *addr_a, uint8_t addr_a_len, } #endif -#endif /* NET_L2UTIL_H */ /** @} */ +#endif /* NET_L2UTIL_H */ diff --git a/sys/include/net/lora.h b/sys/include/net/lora.h index 24ccce6a602c..0a810643f44a 100644 --- a/sys/include/net/lora.h +++ b/sys/include/net/lora.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_LORA_H +#define NET_LORA_H + /** * @defgroup net_lora LoRa modulation * @ingroup net @@ -18,9 +21,6 @@ * @author Alexandre Abadie */ -#ifndef NET_LORA_H -#define NET_LORA_H - #include #include @@ -282,5 +282,5 @@ enum { } #endif -#endif /* NET_LORA_H */ /** @} */ +#endif /* NET_LORA_H */ diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index 396dc5925a91..dd33fb7122d5 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_LORAMAC_H +#define NET_LORAMAC_H + /** * @defgroup net_loramac LoRaMAC * @ingroup net @@ -19,9 +22,6 @@ * @author Alexandre Abadie */ -#ifndef NET_LORAMAC_H -#define NET_LORAMAC_H - #include #include #include diff --git a/sys/include/net/lorawan/hdr.h b/sys/include/net/lorawan/hdr.h index 9444042ff837..5d200427377d 100644 --- a/sys/include/net/lorawan/hdr.h +++ b/sys/include/net/lorawan/hdr.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_LORAWAN_HDR_H +#define NET_LORAWAN_HDR_H + /** * @defgroup net_lorawan_hdr LoRaWAN header * @ingroup net_lorawan @@ -19,9 +22,6 @@ * @author Jose Ignacio Alamos */ -#ifndef NET_LORAWAN_HDR_H -#define NET_LORAWAN_HDR_H - #include #include #include @@ -297,5 +297,5 @@ static inline bool lorawan_ja_hdr_get_optneg(lorawan_join_accept_t *ja_hdr) } #endif -#endif /* NET_LORAWAN_HDR_H */ /** @} */ +#endif /* NET_LORAWAN_HDR_H */ diff --git a/sys/include/net/mqttsn.h b/sys/include/net/mqttsn.h index ccc046c5edcd..80851499a729 100644 --- a/sys/include/net/mqttsn.h +++ b/sys/include/net/mqttsn.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_MQTTSN_H +#define NET_MQTTSN_H + /** * @defgroup net_mqttsn MQTT-SN Defines * @ingroup net @@ -20,9 +23,6 @@ * @author Hauke Petersen */ -#ifndef NET_MQTTSN_H -#define NET_MQTTSN_H - #ifdef __cplusplus extern "C" { #endif @@ -110,5 +110,5 @@ enum { } #endif -#endif /* NET_MQTTSN_H */ /** @} */ +#endif /* NET_MQTTSN_H */ diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 3559c97dc398..e1aed4688d22 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -9,6 +9,9 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_H +#define NET_NANOCOAP_H + /** * @defgroup net_nanocoap nanoCoAP small CoAP library * @ingroup net @@ -74,9 +77,6 @@ * @author Hauke Petersen */ -#ifndef NET_NANOCOAP_H -#define NET_NANOCOAP_H - #include #include #include @@ -2443,5 +2443,5 @@ static inline uint32_t coap_get_observe(coap_pkt_t *pkt) #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_H */ /** @} */ +#endif /* NET_NANOCOAP_H */ diff --git a/sys/include/net/nanocoap/cache.h b/sys/include/net/nanocoap/cache.h index 8583b8c52702..cc5d33599cdc 100644 --- a/sys/include/net/nanocoap/cache.h +++ b/sys/include/net/nanocoap/cache.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_CACHE_H +#define NET_NANOCOAP_CACHE_H + /** * @defgroup net_nanocoap_cache nanoCoAP-Cache implementation * @ingroup net_nanocoap @@ -19,9 +22,6 @@ * @author Cenk Gündoğan */ -#ifndef NET_NANOCOAP_CACHE_H -#define NET_NANOCOAP_CACHE_H - #include #include #include @@ -269,5 +269,5 @@ static inline bool nanocoap_cache_entry_is_stale(const nanocoap_cache_entry_t *c #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_CACHE_H */ /** @} */ +#endif /* NET_NANOCOAP_CACHE_H */ diff --git a/sys/include/net/nanocoap/fileserver.h b/sys/include/net/nanocoap/fileserver.h index bbf8685fa05f..82bdd1f9fcdd 100644 --- a/sys/include/net/nanocoap/fileserver.h +++ b/sys/include/net/nanocoap/fileserver.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_FILESERVER_H +#define NET_NANOCOAP_FILESERVER_H + /** * @defgroup net_nanocoap_fileserver CoAP file server * @ingroup net_nanocoap @@ -75,9 +78,6 @@ * @author chrysn */ -#ifndef NET_NANOCOAP_FILESERVER_H -#define NET_NANOCOAP_FILESERVER_H - #ifdef __cplusplus extern "C" { #endif @@ -156,6 +156,6 @@ ssize_t nanocoap_fileserver_handler(coap_pkt_t *pdu, uint8_t *buf, size_t len, } #endif -#endif /* NET_NANOCOAP_FILESERVER_H */ - /** @} */ + +#endif /* NET_NANOCOAP_FILESERVER_H */ diff --git a/sys/include/net/nanocoap/fs.h b/sys/include/net/nanocoap/fs.h index f100fec47cf1..07e1a18fbc89 100644 --- a/sys/include/net/nanocoap/fs.h +++ b/sys/include/net/nanocoap/fs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_FS_H +#define NET_NANOCOAP_FS_H /** * @ingroup net_nanosock * @brief nanoCoAP virtual file system @@ -16,8 +18,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_FS_H -#define NET_NANOCOAP_FS_H #include "mutex.h" #include "net/nanocoap_sock.h" @@ -63,5 +63,5 @@ extern const vfs_file_system_t nanocoap_fs_file_system; #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_FS_H */ /** @} */ +#endif /* NET_NANOCOAP_FS_H */ diff --git a/sys/include/net/nanocoap/link_format.h b/sys/include/net/nanocoap/link_format.h index e0ea047d3262..2bb89b8bc63e 100644 --- a/sys/include/net/nanocoap/link_format.h +++ b/sys/include/net/nanocoap/link_format.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_LINK_FORMAT_H +#define NET_NANOCOAP_LINK_FORMAT_H /** * @ingroup net_nanosock * @brief NanoCoAP Link Format helper functions @@ -18,8 +20,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_LINK_FORMAT_H -#define NET_NANOCOAP_LINK_FORMAT_H #include "net/nanocoap_sock.h" @@ -68,5 +68,5 @@ int nanocoap_link_format_get_url(const char *url, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_LINK_FORMAT_H */ /** @} */ +#endif /* NET_NANOCOAP_LINK_FORMAT_H */ diff --git a/sys/include/net/nanocoap_sock.h b/sys/include/net/nanocoap_sock.h index d74c629e046e..fca8d8e231a2 100644 --- a/sys/include/net/nanocoap_sock.h +++ b/sys/include/net/nanocoap_sock.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_SOCK_H +#define NET_NANOCOAP_SOCK_H + /** * @defgroup net_nanosock nanoCoAP Sock * @ingroup net @@ -135,9 +138,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_NANOCOAP_SOCK_H -#define NET_NANOCOAP_SOCK_H - #include #include @@ -972,5 +972,5 @@ int nanocoap_sock_block_request(coap_block_request_t *ctx, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_SOCK_H */ /** @} */ +#endif /* NET_NANOCOAP_SOCK_H */ diff --git a/sys/include/net/nanocoap_vfs.h b/sys/include/net/nanocoap_vfs.h index c049c7720e27..27019103eed7 100644 --- a/sys/include/net/nanocoap_vfs.h +++ b/sys/include/net/nanocoap_vfs.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_NANOCOAP_VFS_H +#define NET_NANOCOAP_VFS_H /** * @ingroup net_nanosock * @brief VFS NanoCoAP helper functions @@ -17,8 +19,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_NANOCOAP_VFS_H -#define NET_NANOCOAP_VFS_H #include "net/nanocoap_sock.h" @@ -85,5 +85,5 @@ int nanocoap_vfs_put(nanocoap_sock_t *sock, const char *path, const char *src, #ifdef __cplusplus } #endif -#endif /* NET_NANOCOAP_VFS_H */ /** @} */ +#endif /* NET_NANOCOAP_VFS_H */ diff --git a/sys/include/net/ndp.h b/sys/include/net/ndp.h index 5cd82ef40f98..c58ff75ede9a 100644 --- a/sys/include/net/ndp.h +++ b/sys/include/net/ndp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_NDP_H +#define NET_NDP_H /** * @defgroup net_ndp IPv6 neighbor discovery * @ingroup net_ipv6 @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_NDP_H -#define NET_NDP_H #include @@ -396,5 +396,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_NDP_H */ /** @} */ +#endif /* NET_NDP_H */ diff --git a/sys/include/net/netdev_test.h b/sys/include/net/netdev_test.h index 22723b3cc2f5..84e668bddb30 100644 --- a/sys/include/net/netdev_test.h +++ b/sys/include/net/netdev_test.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_NETDEV_TEST_H +#define NET_NETDEV_TEST_H /** * @defgroup sys_netdev_test netdev dummy test driver * @ingroup drivers_netdev @@ -75,8 +77,6 @@ * * @author Martine Lenders */ -#ifndef NET_NETDEV_TEST_H -#define NET_NETDEV_TEST_H #include "mutex.h" @@ -291,5 +291,5 @@ void netdev_test_reset(netdev_test_t *dev); } #endif -#endif /* NET_NETDEV_TEST_H */ /** @} */ +#endif /* NET_NETDEV_TEST_H */ diff --git a/sys/include/net/netif.h b/sys/include/net/netif.h index a208b372d0d4..98437811e2df 100644 --- a/sys/include/net/netif.h +++ b/sys/include/net/netif.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef NET_NETIF_H +#define NET_NETIF_H /** * @defgroup net_netif Network interfaces * @ingroup net @@ -30,8 +32,6 @@ * @author Kaspar Schleiser * @author José Ignacio Alamos */ -#ifndef NET_NETIF_H -#define NET_NETIF_H #include #include @@ -265,5 +265,5 @@ void netifs_print_ipv6(const char *separator); } #endif -#endif /* NET_NETIF_H */ /** @} */ +#endif /* NET_NETIF_H */ diff --git a/sys/include/net/netopt.h b/sys/include/net/netopt.h index 213418a7c33f..dec153f695f0 100644 --- a/sys/include/net/netopt.h +++ b/sys/include/net/netopt.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_NETOPT_H +#define NET_NETOPT_H + /** * @defgroup net_netopt Netopt - Configuration options for network APIs * @ingroup net @@ -22,9 +25,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_NETOPT_H -#define NET_NETOPT_H - #include #include @@ -1085,5 +1085,5 @@ const char *netopt2str(netopt_t opt); } #endif -#endif /* NET_NETOPT_H */ /** @} */ +#endif /* NET_NETOPT_H */ diff --git a/sys/include/net/netstats.h b/sys/include/net/netstats.h index ef2e21f13ff4..13ce137509c9 100644 --- a/sys/include/net/netstats.h +++ b/sys/include/net/netstats.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_NETSTATS_H +#define NET_NETSTATS_H + /** * @defgroup net_netstats Packet statistics per module * @ingroup net @@ -23,9 +26,6 @@ #include "net/l2util.h" #include "mutex.h" -#ifndef NET_NETSTATS_H -#define NET_NETSTATS_H - #ifdef __cplusplus extern "C" { #endif @@ -132,5 +132,5 @@ typedef struct { } #endif -#endif /* NET_NETSTATS_H */ /** @} */ +#endif /* NET_NETSTATS_H */ diff --git a/sys/include/net/netstats/neighbor.h b/sys/include/net/netstats/neighbor.h index 923af66ebaa2..37a79dfd6114 100644 --- a/sys/include/net/netstats/neighbor.h +++ b/sys/include/net/netstats/neighbor.h @@ -6,6 +6,8 @@ * more details. */ +#ifndef NET_NETSTATS_NEIGHBOR_H +#define NET_NETSTATS_NEIGHBOR_H /** * @ingroup net_netstats * @brief Records statistics about link layer neighbors @@ -16,8 +18,6 @@ * * @author Koen Zandberg */ -#ifndef NET_NETSTATS_NEIGHBOR_H -#define NET_NETSTATS_NEIGHBOR_H #include #include "net/netif.h" diff --git a/sys/include/net/ntp_packet.h b/sys/include/net/ntp_packet.h index d46e016ec479..185ce7e525f7 100644 --- a/sys/include/net/ntp_packet.h +++ b/sys/include/net/ntp_packet.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_NTP_PACKET_H +#define NET_NTP_PACKET_H + /** * @defgroup net_ntp_packet NTP Packet * @ingroup net @@ -19,9 +22,6 @@ * @author Martine Lenders */ -#ifndef NET_NTP_PACKET_H -#define NET_NTP_PACKET_H - #include #include "byteorder.h" @@ -169,5 +169,5 @@ static inline ntp_mode_t ntp_packet_get_mode(ntp_packet_t *packet) } #endif -#endif /* NET_NTP_PACKET_H */ /** @} */ +#endif /* NET_NTP_PACKET_H */ diff --git a/sys/include/net/ppp/hdr.h b/sys/include/net/ppp/hdr.h index 9e0f74cb1f21..a100180638bf 100644 --- a/sys/include/net/ppp/hdr.h +++ b/sys/include/net/ppp/hdr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_PPP_HDR_H +#define NET_PPP_HDR_H + /** * @defgroup net_ppphdr Point-to-Point Protocol Header * @ingroup net_ppp @@ -18,9 +21,6 @@ * @author José Ignacio Alamos */ -#ifndef NET_PPP_HDR_H -#define NET_PPP_HDR_H - #include #include "byteorder.h" @@ -62,5 +62,5 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* NET_PPP_HDR_H */ /** @} */ +#endif /* NET_PPP_HDR_H */ diff --git a/sys/include/net/protnum.h b/sys/include/net/protnum.h index 54b48d7be686..32664ae15cfc 100644 --- a/sys/include/net/protnum.h +++ b/sys/include/net/protnum.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_PROTNUM_H +#define NET_PROTNUM_H /** * @defgroup net_protnum Protocol Numbers * @ingroup net @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef NET_PROTNUM_H -#define NET_PROTNUM_H #ifdef __cplusplus extern "C" { @@ -181,5 +181,5 @@ extern "C" { } #endif -#endif /* NET_PROTNUM_H */ /** @} */ +#endif /* NET_PROTNUM_H */ diff --git a/sys/include/net/rpl/rpl_netstats.h b/sys/include/net/rpl/rpl_netstats.h index 4c9aa3057a01..9d348c031f34 100644 --- a/sys/include/net/rpl/rpl_netstats.h +++ b/sys/include/net/rpl/rpl_netstats.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_RPL_RPL_NETSTATS_H +#define NET_RPL_RPL_NETSTATS_H /** * @defgroup net_netstats_rpl Packet statistics for RPL * @ingroup net_netstats @@ -20,9 +22,6 @@ #include -#ifndef NET_RPL_RPL_NETSTATS_H -#define NET_RPL_RPL_NETSTATS_H - #ifdef __cplusplus extern "C" { #endif @@ -56,5 +55,5 @@ typedef struct { } #endif -#endif /* NET_RPL_RPL_NETSTATS_H */ /** @} */ +#endif /* NET_RPL_RPL_NETSTATS_H */ diff --git a/sys/include/net/sixlowpan.h b/sys/include/net/sixlowpan.h index 773b60048cfb..f89e5f7e5f35 100644 --- a/sys/include/net/sixlowpan.h +++ b/sys/include/net/sixlowpan.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SIXLOWPAN_H +#define NET_SIXLOWPAN_H /** * @defgroup net_sixlowpan 6LoWPAN * @ingroup net @@ -17,8 +19,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_H -#define NET_SIXLOWPAN_H #include #include @@ -343,5 +343,5 @@ void sixlowpan_print(uint8_t *data, size_t size); } #endif -#endif /* NET_SIXLOWPAN_H */ /** @} */ +#endif /* NET_SIXLOWPAN_H */ diff --git a/sys/include/net/sixlowpan/nd.h b/sys/include/net/sixlowpan/nd.h index 6438651c5b4b..9f0b1838a0b9 100644 --- a/sys/include/net/sixlowpan/nd.h +++ b/sys/include/net/sixlowpan/nd.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SIXLOWPAN_ND_H +#define NET_SIXLOWPAN_ND_H /** * @defgroup net_sixlowpan_nd 6LoWPAN Neighbor Discovery * @ingroup net_sixlowpan @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_ND_H -#define NET_SIXLOWPAN_ND_H #include @@ -278,5 +278,5 @@ static inline uint16_t gnrc_sixlowpan_nd_opt_get_ltime(const sixlowpan_nd_opt_ab } #endif -#endif /* NET_SIXLOWPAN_ND_H */ /** @} */ +#endif /* NET_SIXLOWPAN_ND_H */ diff --git a/sys/include/net/sixlowpan/sfr.h b/sys/include/net/sixlowpan/sfr.h index 492da358d9b4..27e16c88edb9 100644 --- a/sys/include/net/sixlowpan/sfr.h +++ b/sys/include/net/sixlowpan/sfr.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SIXLOWPAN_SFR_H +#define NET_SIXLOWPAN_SFR_H /** * @defgroup net_sixlowpan_sfr 6LoWPAN selective fragment recovery * @ingroup net_sixlowpan @@ -19,8 +21,6 @@ * * @author Martine Lenders */ -#ifndef NET_SIXLOWPAN_SFR_H -#define NET_SIXLOWPAN_SFR_H #include #include @@ -374,5 +374,5 @@ static inline bool sixlowpan_sfr_ack_is(const sixlowpan_sfr_t *hdr) } #endif -#endif /* NET_SIXLOWPAN_SFR_H */ /** @} */ +#endif /* NET_SIXLOWPAN_SFR_H */ diff --git a/sys/include/net/skald.h b/sys/include/net/skald.h index 91c3cbfa0f58..6e476189d115 100644 --- a/sys/include/net/skald.h +++ b/sys/include/net/skald.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SKALD_H +#define NET_SKALD_H + /** * @defgroup ble_skald Skald, who advertises to the world * @ingroup ble @@ -41,9 +44,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_H -#define NET_SKALD_H - #include #include "ztimer.h" @@ -114,5 +114,5 @@ void skald_generate_random_addr(uint8_t *buf); } #endif -#endif /* NET_SKALD_H */ /** @} */ +#endif /* NET_SKALD_H */ diff --git a/sys/include/net/skald/eddystone.h b/sys/include/net/skald/eddystone.h index 4778240909ab..fabab108ad60 100644 --- a/sys/include/net/skald/eddystone.h +++ b/sys/include/net/skald/eddystone.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SKALD_EDDYSTONE_H +#define NET_SKALD_EDDYSTONE_H + /** * @defgroup ble_skald_eddystone Skald meets Eddy * @ingroup ble_skald @@ -32,9 +35,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_EDDYSTONE_H -#define NET_SKALD_EDDYSTONE_H - #include "net/eddystone.h" #include "net/skald.h" @@ -83,5 +83,5 @@ void skald_eddystone_url_adv(skald_ctx_t *ctx, } #endif -#endif /* NET_SKALD_EDDYSTONE_H */ /** @} */ +#endif /* NET_SKALD_EDDYSTONE_H */ diff --git a/sys/include/net/skald/ibeacon.h b/sys/include/net/skald/ibeacon.h index f3a82df4b4e5..c75db03dbc03 100644 --- a/sys/include/net/skald/ibeacon.h +++ b/sys/include/net/skald/ibeacon.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SKALD_IBEACON_H +#define NET_SKALD_IBEACON_H + /** * @defgroup ble_skald_ibeacon Skald about iBeacon * @ingroup ble_skald @@ -25,9 +28,6 @@ * @author Hauke Petersen */ -#ifndef NET_SKALD_IBEACON_H -#define NET_SKALD_IBEACON_H - #include "net/skald.h" #ifdef __cplusplus @@ -52,5 +52,5 @@ void skald_ibeacon_advertise(skald_ctx_t *ctx, const skald_uuid_t *uuid, } #endif -#endif /* NET_SKALD_IBEACON_H */ /** @} */ +#endif /* NET_SKALD_IBEACON_H */ diff --git a/sys/include/net/sntp.h b/sys/include/net/sntp.h index 43c16e25b32e..7ad44c3af397 100644 --- a/sys/include/net/sntp.h +++ b/sys/include/net/sntp.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_SNTP_H +#define NET_SNTP_H + /** * @defgroup net_sntp Simple Network Time Protocol * @ingroup net @@ -20,9 +23,6 @@ * @author Martine Lenders */ -#ifndef NET_SNTP_H -#define NET_SNTP_H - #include #include @@ -66,5 +66,5 @@ static inline uint64_t sntp_get_unix_usec(void) } #endif -#endif /* NET_SNTP_H */ /** @} */ +#endif /* NET_SNTP_H */ diff --git a/sys/include/net/sock.h b/sys/include/net/sock.h index 2cbde66261d8..7eca9745e940 100644 --- a/sys/include/net/sock.h +++ b/sys/include/net/sock.h @@ -9,6 +9,9 @@ * directory for more details. */ +#ifndef NET_SOCK_H +#define NET_SOCK_H + /** * @defgroup net_sock Sock API * @ingroup net @@ -99,9 +102,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_SOCK_H -#define NET_SOCK_H - #include #include #include "iolist.h" @@ -352,5 +352,5 @@ typedef uint8_t sock_aux_flags_t; } #endif -#endif /* NET_SOCK_H */ /** @} */ +#endif /* NET_SOCK_H */ diff --git a/sys/include/net/sock/async.h b/sys/include/net/sock/async.h index 50cd5138516d..e6b85f7c7ed1 100644 --- a/sys/include/net/sock/async.h +++ b/sys/include/net/sock/async.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SOCK_ASYNC_H +#define NET_SOCK_ASYNC_H /** * @defgroup net_sock_async Sock extension for asynchronous access * @ingroup net_sock @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_SOCK_ASYNC_H -#define NET_SOCK_ASYNC_H #include "net/sock/async/types.h" @@ -235,5 +235,5 @@ sock_async_ctx_t *sock_udp_get_async_ctx(sock_udp_t *sock); } #endif -#endif /* NET_SOCK_ASYNC_H */ /** @} */ +#endif /* NET_SOCK_ASYNC_H */ diff --git a/sys/include/net/sock/async/event.h b/sys/include/net/sock/async/event.h index f0a960091754..8363584448c1 100644 --- a/sys/include/net/sock/async/event.h +++ b/sys/include/net/sock/async/event.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SOCK_ASYNC_EVENT_H +#define NET_SOCK_ASYNC_EVENT_H /** * @defgroup net_sock_async_event Asynchronous sock with event API * @ingroup net_sock @@ -165,8 +167,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_ASYNC_EVENT_H -#define NET_SOCK_ASYNC_EVENT_H #include "event.h" /* guard required since `sock_dtls_types.h` might not be provided */ @@ -317,5 +317,5 @@ void sock_event_close(sock_async_ctx_t *async_ctx); } #endif -#endif /* NET_SOCK_ASYNC_EVENT_H */ /** @} */ +#endif /* NET_SOCK_ASYNC_EVENT_H */ diff --git a/sys/include/net/sock/async/types.h b/sys/include/net/sock/async/types.h index 8af2c039b1b3..c7b97d7f4c7e 100644 --- a/sys/include/net/sock/async/types.h +++ b/sys/include/net/sock/async/types.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SOCK_ASYNC_TYPES_H +#define NET_SOCK_ASYNC_TYPES_H /** * @addtogroup net_sock_async Sock extension for asynchronous access * @@ -16,8 +18,6 @@ * * @author Martine Lenders */ -#ifndef NET_SOCK_ASYNC_TYPES_H -#define NET_SOCK_ASYNC_TYPES_H #ifdef __cplusplus extern "C" { @@ -176,5 +176,5 @@ typedef void (*sock_udp_cb_t)(sock_udp_t *sock, sock_async_flags_t flags, } #endif -#endif /* NET_SOCK_ASYNC_TYPES_H */ /** @} */ +#endif /* NET_SOCK_ASYNC_TYPES_H */ diff --git a/sys/include/net/sock/config.h b/sys/include/net/sock/config.h index 33b4dffd6ed2..81f9372d9dce 100644 --- a/sys/include/net/sock/config.h +++ b/sys/include/net/sock/config.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_SOCK_CONFIG_H +#define NET_SOCK_CONFIG_H + /** * @defgroup net_sock_util_conf SOCK utility functions compile configurations * @ingroup net_sock_conf @@ -18,9 +21,6 @@ * @author Hauke Petersen */ -#ifndef NET_SOCK_CONFIG_H -#define NET_SOCK_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -66,5 +66,5 @@ extern "C" { } #endif -#endif /* NET_SOCK_CONFIG_H */ /** @} */ +#endif /* NET_SOCK_CONFIG_H */ diff --git a/sys/include/net/sock/dns.h b/sys/include/net/sock/dns.h index 3ceee7849571..037dddb785f6 100644 --- a/sys/include/net/sock/dns.h +++ b/sys/include/net/sock/dns.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SOCK_DNS_H +#define NET_SOCK_DNS_H + /** * @defgroup net_sock_dns DNS sock API * @ingroup net_sock @@ -21,9 +24,6 @@ * @author Hendrik van Essen */ -#ifndef NET_SOCK_DNS_H -#define NET_SOCK_DNS_H - #include #include #include @@ -114,5 +114,5 @@ extern sock_udp_ep_t sock_dns_server; } #endif -#endif /* NET_SOCK_DNS_H */ /** @} */ +#endif /* NET_SOCK_DNS_H */ diff --git a/sys/include/net/sock/dodtls.h b/sys/include/net/sock/dodtls.h index 49508f73cb5e..43ad704fa469 100644 --- a/sys/include/net/sock/dodtls.h +++ b/sys/include/net/sock/dodtls.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SOCK_DODTLS_H +#define NET_SOCK_DODTLS_H + /** * @defgroup net_sock_dodtls DNS over DTLS sock API * @ingroup net_sock @@ -29,9 +32,6 @@ * @author Martine S. Lenders */ -#ifndef NET_SOCK_DODTLS_H -#define NET_SOCK_DODTLS_H - #include "net/sock/dtls.h" #include "net/sock/udp.h" @@ -143,5 +143,5 @@ int sock_dodtls_set_server(const sock_udp_ep_t *server, } #endif -#endif /* NET_SOCK_DODTLS_H */ /** @} */ +#endif /* NET_SOCK_DODTLS_H */ diff --git a/sys/include/net/sock/dtls.h b/sys/include/net/sock/dtls.h index c03a14b35b6b..2676831b1858 100644 --- a/sys/include/net/sock/dtls.h +++ b/sys/include/net/sock/dtls.h @@ -10,6 +10,9 @@ * directory for more details. */ +#ifndef NET_SOCK_DTLS_H +#define NET_SOCK_DTLS_H + /** * @defgroup net_sock_dtls DTLS sock API * @ingroup net_sock net_dtls @@ -527,9 +530,6 @@ * @author Leandro Lanzieri */ -#ifndef NET_SOCK_DTLS_H -#define NET_SOCK_DTLS_H - #include #include #include @@ -1124,5 +1124,5 @@ void sock_dtls_close(sock_dtls_t *sock); } #endif -#endif /* NET_SOCK_DTLS_H */ /** @} */ +#endif /* NET_SOCK_DTLS_H */ diff --git a/sys/include/net/sock/dtls/creds.h b/sys/include/net/sock/dtls/creds.h index 42cfca6ead29..a803d97844cd 100644 --- a/sys/include/net/sock/dtls/creds.h +++ b/sys/include/net/sock/dtls/creds.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_SOCK_DTLS_CREDS_H +#define NET_SOCK_DTLS_CREDS_H + /** * @defgroup net_sock_dtls_creds DTLS sock credentials API * @ingroup net_sock_dtls @@ -18,9 +21,6 @@ * @author Leandro Lanzieri */ -#ifndef NET_SOCK_DTLS_CREDS_H -#define NET_SOCK_DTLS_CREDS_H - #include "net/sock/udp.h" #ifdef __cplusplus @@ -148,5 +148,5 @@ void sock_dtls_set_rpk_cb(sock_dtls_t *sock, sock_dtls_rpk_cb_t cb); } #endif -#endif /* NET_SOCK_DTLS_CREDS_H */ /** @} */ +#endif /* NET_SOCK_DTLS_CREDS_H */ diff --git a/sys/include/net/sock/ip.h b/sys/include/net/sock/ip.h index d215a91f1412..056cd21dd803 100644 --- a/sys/include/net/sock/ip.h +++ b/sys/include/net/sock/ip.h @@ -9,6 +9,8 @@ * directory for more details. */ +#ifndef NET_SOCK_IP_H +#define NET_SOCK_IP_H /** * @defgroup net_sock_ip Raw IPv4/IPv6 sock API * @ingroup net_sock @@ -265,8 +267,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_IP_H -#define NET_SOCK_IP_H #include #include @@ -707,5 +707,5 @@ static inline ssize_t sock_ip_send(sock_ip_t *sock, } #endif -#endif /* NET_SOCK_IP_H */ /** @} */ +#endif /* NET_SOCK_IP_H */ diff --git a/sys/include/net/sock/tcp.h b/sys/include/net/sock/tcp.h index ed6ebfbc95ad..c272deebf7cf 100644 --- a/sys/include/net/sock/tcp.h +++ b/sys/include/net/sock/tcp.h @@ -9,6 +9,8 @@ * directory for more details. */ +#ifndef NET_SOCK_TCP_H +#define NET_SOCK_TCP_H /** * @defgroup net_sock_tcp TCP sock API * @ingroup net_sock @@ -296,8 +298,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_TCP_H -#define NET_SOCK_TCP_H #include #include @@ -547,5 +547,5 @@ ssize_t sock_tcp_write(sock_tcp_t *sock, const void *data, size_t len); #include "sock_types.h" -#endif /* NET_SOCK_TCP_H */ /** @} */ +#endif /* NET_SOCK_TCP_H */ diff --git a/sys/include/net/sock/udp.h b/sys/include/net/sock/udp.h index 4daca4d449b1..23dce01a73c7 100644 --- a/sys/include/net/sock/udp.h +++ b/sys/include/net/sock/udp.h @@ -9,6 +9,8 @@ * directory for more details. */ +#ifndef NET_SOCK_UDP_H +#define NET_SOCK_UDP_H /** * @defgroup net_sock_udp UDP sock API * @ingroup net_sock @@ -265,8 +267,6 @@ * @author Martine Lenders * @author Kaspar Schleiser */ -#ifndef NET_SOCK_UDP_H -#define NET_SOCK_UDP_H #include #include @@ -848,5 +848,5 @@ static inline bool sock_udp_ep_is_v6(const sock_udp_ep_t *ep) } #endif -#endif /* NET_SOCK_UDP_H */ /** @} */ +#endif /* NET_SOCK_UDP_H */ diff --git a/sys/include/net/sock/util.h b/sys/include/net/sock/util.h index 7d32db6892ab..b5b6bcd11c2c 100644 --- a/sys/include/net/sock/util.h +++ b/sys/include/net/sock/util.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef NET_SOCK_UTIL_H +#define NET_SOCK_UTIL_H + /** * @defgroup net_sock_util sock utility functions * @ingroup net_sock @@ -22,9 +25,6 @@ * @author Hauke Petersen */ -#ifndef NET_SOCK_UTIL_H -#define NET_SOCK_UTIL_H - #include #include @@ -301,5 +301,5 @@ int sock_dtls_establish_session(sock_udp_t *sock_udp, sock_dtls_t *sock_dtls, } #endif -#endif /* NET_SOCK_UTIL_H */ /** @} */ +#endif /* NET_SOCK_UTIL_H */ diff --git a/sys/include/net/someip.h b/sys/include/net/someip.h index 510fb36fe5af..83fd39528604 100644 --- a/sys/include/net/someip.h +++ b/sys/include/net/someip.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_SOMEIP_H +#define NET_SOMEIP_H /** * @defgroup net_someip SOME/IP * @ingroup net @@ -18,8 +20,6 @@ * * @author Jannes Volkens */ -#ifndef NET_SOMEIP_H -#define NET_SOMEIP_H #ifdef __cplusplus extern "C" { @@ -69,5 +69,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_SOMEIP_H */ /** @} */ +#endif /* NET_SOMEIP_H */ diff --git a/sys/include/net/tcp.h b/sys/include/net/tcp.h index 4aad1559ada8..1509bac63107 100644 --- a/sys/include/net/tcp.h +++ b/sys/include/net/tcp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_TCP_H +#define NET_TCP_H + /** * @defgroup net_tcp TCP * @ingroup net @@ -19,9 +22,6 @@ * @author Simon Brummer */ -#ifndef NET_TCP_H -#define NET_TCP_H - #include "byteorder.h" #ifdef __cplusplus @@ -87,5 +87,5 @@ void tcp_hdr_print(tcp_hdr_t *hdr); } #endif -#endif /* NET_TCP_H */ /** @} */ +#endif /* NET_TCP_H */ diff --git a/sys/include/net/telnet.h b/sys/include/net/telnet.h index 6823206fed3e..0f652f7c92b6 100644 --- a/sys/include/net/telnet.h +++ b/sys/include/net/telnet.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_TELNET_H +#define NET_TELNET_H /** * @defgroup net_telnet_stdio STDIO over telnet * @ingroup sys_stdio @@ -41,8 +43,6 @@ * * @author Benjamin Valentin */ -#ifndef NET_TELNET_H -#define NET_TELNET_H #include "net/sock/tcp.h" @@ -119,5 +119,5 @@ void telnet_cb_disconneced(void); } #endif -#endif /* NET_TELNET_H */ /** @} */ +#endif /* NET_TELNET_H */ diff --git a/sys/include/net/udp.h b/sys/include/net/udp.h index 164e5165fbe4..265e6f36931f 100644 --- a/sys/include/net/udp.h +++ b/sys/include/net/udp.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_UDP_H +#define NET_UDP_H /** * @defgroup net_udp UDP * @ingroup net @@ -20,8 +22,6 @@ * * @author Martine Lenders */ -#ifndef NET_UDP_H -#define NET_UDP_H #include "byteorder.h" @@ -50,5 +50,5 @@ void udp_hdr_print(udp_hdr_t *hdr); } #endif -#endif /* NET_UDP_H */ /** @} */ +#endif /* NET_UDP_H */ diff --git a/sys/include/net/uhcp.h b/sys/include/net/uhcp.h index 8e93d3b6925d..c21ded42a812 100644 --- a/sys/include/net/uhcp.h +++ b/sys/include/net/uhcp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_UHCP_H +#define NET_UHCP_H + /** * @defgroup net_uhcp UHCP * @ingroup net @@ -27,9 +30,6 @@ * @author Kaspar Schleiser */ -#ifndef NET_UHCP_H -#define NET_UHCP_H - #include #include #include @@ -185,5 +185,5 @@ int udp_sendto(uint8_t *buf, size_t len, uint8_t *dst, uint16_t dst_port, uhcp_i } #endif -#endif /* NET_UHCP_H */ /** @} */ +#endif /* NET_UHCP_H */ diff --git a/sys/include/net/utils.h b/sys/include/net/utils.h index 6a776fad8f95..4761b7d84ab1 100644 --- a/sys/include/net/utils.h +++ b/sys/include/net/utils.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef NET_UTILS_H +#define NET_UTILS_H + /** * @defgroup net_utils Network helper functions * @ingroup net @@ -19,9 +22,6 @@ * @author Hendrik van Essen */ -#ifndef NET_UTILS_H -#define NET_UTILS_H - #include #include @@ -62,5 +62,5 @@ int netutils_get_ipv6(ipv6_addr_t *addr, netif_t **netif, const char *hostname); } #endif -#endif /* NET_UTILS_H */ /** @} */ +#endif /* NET_UTILS_H */ diff --git a/sys/include/net/wifi.h b/sys/include/net/wifi.h index 74ce48dfddd0..1b2aed282081 100644 --- a/sys/include/net/wifi.h +++ b/sys/include/net/wifi.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef NET_WIFI_H +#define NET_WIFI_H + /** * @defgroup net_wifi Wi-Fi * @ingroup net @@ -18,9 +21,6 @@ * @author Fabian Hüßler */ -#ifndef NET_WIFI_H -#define NET_WIFI_H - #include #ifdef __cplusplus @@ -163,5 +163,5 @@ typedef struct wifi_security_wpa_enterprise { } #endif -#endif /* NET_WIFI_H */ /** @} */ +#endif /* NET_WIFI_H */ diff --git a/sys/include/net/wifi_scan_list.h b/sys/include/net/wifi_scan_list.h index d5eb774561a2..2dc77c5ad2e8 100644 --- a/sys/include/net/wifi_scan_list.h +++ b/sys/include/net/wifi_scan_list.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef NET_WIFI_SCAN_LIST_H +#define NET_WIFI_SCAN_LIST_H + /** * @defgroup net_wifi_scan_list List of scanned WiFis access points * @ingroup net @@ -17,9 +20,6 @@ * @author Fabian Hüßler */ -#ifndef NET_WIFI_SCAN_LIST_H -#define NET_WIFI_SCAN_LIST_H - #include #include "l2scan_list.h" @@ -82,5 +82,5 @@ static inline unsigned wifi_scan_list_to_array(const wifi_scan_list_t *list, } #endif -#endif /* NET_WIFI_SCAN_LIST_H */ /** @} */ +#endif /* NET_WIFI_SCAN_LIST_H */ diff --git a/sys/include/net/zep.h b/sys/include/net/zep.h index 795f2edce535..83dab8d4af94 100644 --- a/sys/include/net/zep.h +++ b/sys/include/net/zep.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef NET_ZEP_H +#define NET_ZEP_H /** * @defgroup net_zep ZigBee Encapsulation Protocol * @ingroup net @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef NET_ZEP_H -#define NET_ZEP_H #include @@ -100,5 +100,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* NET_ZEP_H */ /** @} */ +#endif /* NET_ZEP_H */ diff --git a/sys/include/od.h b/sys/include/od.h index 6e58d1ce9d31..fd25654741b3 100644 --- a/sys/include/od.h +++ b/sys/include/od.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef OD_H +#define OD_H /** * @defgroup sys_od Object dump * @ingroup sys @@ -18,8 +20,6 @@ * * @author Martine Lenders */ -#ifndef OD_H -#define OD_H #ifdef __cplusplus extern "C" { @@ -71,5 +71,5 @@ static inline void od_hex_dump(const void *data, size_t data_len, uint8_t width) } #endif -#endif /* OD_H */ /** @} */ +#endif /* OD_H */ diff --git a/sys/include/phydat.h b/sys/include/phydat.h index f89d996a43ef..bfaa4b589ed2 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PHYDAT_H +#define PHYDAT_H + /** * @defgroup sys_phydat Phydat * @ingroup sys @@ -32,9 +35,6 @@ * @author Hauke Petersen */ -#ifndef PHYDAT_H -#define PHYDAT_H - #include #include #include @@ -324,5 +324,5 @@ int64_t phydat_unix(int16_t year, int16_t month, int16_t day, } #endif -#endif /* PHYDAT_H */ /** @} */ +#endif /* PHYDAT_H */ diff --git a/sys/include/pm_layered.h b/sys/include/pm_layered.h index f0c2236654cd..764c5ce0b791 100644 --- a/sys/include/pm_layered.h +++ b/sys/include/pm_layered.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PM_LAYERED_H +#define PM_LAYERED_H + /** * @defgroup sys_pm_layered Layered PM Infrastructure * @ingroup sys @@ -32,9 +35,6 @@ * @author Kaspar Schleiser */ -#ifndef PM_LAYERED_H -#define PM_LAYERED_H - #include #include "periph_cpu.h" #include "architecture.h" @@ -105,5 +105,5 @@ pm_blocker_t pm_get_blocker(void); } #endif -#endif /* PM_LAYERED_H */ /** @} */ +#endif /* PM_LAYERED_H */ diff --git a/sys/include/progress_bar.h b/sys/include/progress_bar.h index 5c7f9b0ea3da..8e2df41b2b7c 100644 --- a/sys/include/progress_bar.h +++ b/sys/include/progress_bar.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PROGRESS_BAR_H +#define PROGRESS_BAR_H + /** * @ingroup sys_progress_bar * @{ @@ -16,9 +19,6 @@ * @author Alexandre Abadie */ -#ifndef PROGRESS_BAR_H -#define PROGRESS_BAR_H - #include #include diff --git a/sys/include/ps.h b/sys/include/ps.h index 78f2871c487a..51b91147b63e 100644 --- a/sys/include/ps.h +++ b/sys/include/ps.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PS_H +#define PS_H + /** * @defgroup sys_ps PS * @ingroup sys @@ -19,9 +22,6 @@ * @author Oliver Hahm */ -#ifndef PS_H -#define PS_H - #ifdef __cplusplus extern "C" { #endif @@ -35,5 +35,5 @@ void ps(void); } #endif -#endif /* PS_H */ /** @} */ +#endif /* PS_H */ diff --git a/sys/include/psa_crypto/psa/aead/algorithm.h b/sys/include/psa_crypto/psa/aead/algorithm.h index 7750f7449e0d..7cbd9ff13268 100644 --- a/sys/include/psa_crypto/psa/aead/algorithm.h +++ b/sys/include/psa_crypto/psa/aead/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_AEAD_ALGORITHM_H +#define PSA_CRYPTO_PSA_AEAD_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_AEAD_ALGORITHM_H -#define PSA_CRYPTO_PSA_AEAD_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -225,5 +225,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_AEAD_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_AEAD_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/algorithm.h b/sys/include/psa_crypto/psa/algorithm.h index d401ae1ab4b8..02eafab7ef29 100644 --- a/sys/include/psa_crypto/psa/algorithm.h +++ b/sys/include/psa_crypto/psa/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_ALGORITHM_H +#define PSA_CRYPTO_PSA_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ALGORITHM_H -#define PSA_CRYPTO_PSA_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -54,5 +54,5 @@ typedef uint32_t psa_algorithm_t; } #endif -#endif /* PSA_CRYPTO_PSA_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h b/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h index e55a3073e0da..0a491b30a986 100644 --- a/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h +++ b/sys/include/psa_crypto/psa/asymmetric_encryption/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H +#define PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H -#define PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -98,5 +98,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_ENCRYPTION_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h index 78f4c37928e4..2d8703d58b03 100644 --- a/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h +++ b/sys/include/psa_crypto/psa/asymmetric_signature/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H +#define PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H -#define PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -630,5 +630,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_ASYMMETRIC_SIGNATURE_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/cipher/algorithm.h b/sys/include/psa_crypto/psa/cipher/algorithm.h index e09d2f2c6beb..d6b681132396 100644 --- a/sys/include/psa_crypto/psa/cipher/algorithm.h +++ b/sys/include/psa_crypto/psa/cipher/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H +#define PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H -#define PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -337,5 +337,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CIPHER_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/crypto.h b/sys/include/psa_crypto/psa/crypto.h index 3a025f4da6e7..9363b9e46151 100644 --- a/sys/include/psa_crypto/psa/crypto.h +++ b/sys/include/psa_crypto/psa/crypto.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_H +#define PSA_CRYPTO_PSA_CRYPTO_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_H -#define PSA_CRYPTO_PSA_CRYPTO_H - #ifdef __cplusplus extern "C" { #endif @@ -4078,5 +4078,5 @@ psa_status_t psa_verify_message(psa_key_id_t key, } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_H */ diff --git a/sys/include/psa_crypto/psa/crypto_contexts.h b/sys/include/psa_crypto/psa/crypto_contexts.h index eea3e0041b22..2c1837a9842f 100644 --- a/sys/include/psa_crypto/psa/crypto_contexts.h +++ b/sys/include/psa_crypto/psa/crypto_contexts.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H +#define PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H + /** * @ingroup sys_psa_crypto * @{ @@ -17,9 +20,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H -#define PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H - #ifdef __cplusplus extern "C" { #endif @@ -105,5 +105,5 @@ typedef struct { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_CONTEXTS_H */ diff --git a/sys/include/psa_crypto/psa/crypto_includes.h b/sys/include/psa_crypto/psa/crypto_includes.h index 3b18f36bcfe6..0291b317fc8c 100644 --- a/sys/include/psa_crypto/psa/crypto_includes.h +++ b/sys/include/psa_crypto/psa/crypto_includes.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H +#define PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H + /** * @ingroup sys_psa_crypto * @{ @@ -16,9 +19,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H -#define PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H - #ifdef __cplusplus extern "C" { #endif @@ -57,5 +57,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H */ diff --git a/sys/include/psa_crypto/psa/crypto_se_config.h b/sys/include/psa_crypto/psa/crypto_se_config.h index a8df8bbceb98..5411f25b73b5 100644 --- a/sys/include/psa_crypto/psa/crypto_se_config.h +++ b/sys/include/psa_crypto/psa/crypto_se_config.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H +#define PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H + /** * @ingroup sys_psa_crypto * @{ @@ -17,9 +20,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H -#define PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H - #ifdef __cplusplus extern "C" { #endif @@ -44,5 +44,5 @@ typedef union { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_SE_CONFIG_H */ diff --git a/sys/include/psa_crypto/psa/crypto_sizes.h b/sys/include/psa_crypto/psa/crypto_sizes.h index fcd0f8ba2372..833486882ded 100644 --- a/sys/include/psa_crypto/psa/crypto_sizes.h +++ b/sys/include/psa_crypto/psa/crypto_sizes.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_SIZES_H +#define PSA_CRYPTO_PSA_CRYPTO_SIZES_H + /** * @ingroup sys_psa_crypto * @{ @@ -22,9 +25,6 @@ * These macros will be implemented successively in the future. */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_SIZES_H -#define PSA_CRYPTO_PSA_CRYPTO_SIZES_H - #ifdef __cplusplus extern "C" { #endif @@ -1111,5 +1111,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_SIZES_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_SIZES_H */ diff --git a/sys/include/psa_crypto/psa/crypto_struct.h b/sys/include/psa_crypto/psa/crypto_struct.h index 3551aa9196af..b787f5618ee4 100644 --- a/sys/include/psa_crypto/psa/crypto_struct.h +++ b/sys/include/psa_crypto/psa/crypto_struct.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_STRUCT_H +#define PSA_CRYPTO_PSA_CRYPTO_STRUCT_H + /** * @ingroup sys_psa_crypto * @{ @@ -17,9 +20,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_STRUCT_H -#define PSA_CRYPTO_PSA_CRYPTO_STRUCT_H - #ifdef __cplusplus extern "C" { #endif @@ -186,5 +186,5 @@ static inline struct psa_mac_operation_s psa_mac_operation_init(void) } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_STRUCT_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_STRUCT_H */ diff --git a/sys/include/psa_crypto/psa/crypto_types.h b/sys/include/psa_crypto/psa/crypto_types.h index 0d4e50296f14..00bb815d392f 100644 --- a/sys/include/psa_crypto/psa/crypto_types.h +++ b/sys/include/psa_crypto/psa/crypto_types.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_TYPES_H +#define PSA_CRYPTO_PSA_CRYPTO_TYPES_H + /** * @ingroup sys_psa_crypto * @{ @@ -17,9 +20,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_TYPES_H -#define PSA_CRYPTO_PSA_CRYPTO_TYPES_H - #ifdef __cplusplus extern "C" { #endif @@ -209,5 +209,5 @@ typedef struct psa_cipher_operation_s psa_cipher_operation_t; } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_TYPES_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_TYPES_H */ diff --git a/sys/include/psa_crypto/psa/crypto_values.h b/sys/include/psa_crypto/psa/crypto_values.h index 538a506d66ab..5ddb096efe5e 100644 --- a/sys/include/psa_crypto/psa/crypto_values.h +++ b/sys/include/psa_crypto/psa/crypto_values.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_CRYPTO_VALUES_H +#define PSA_CRYPTO_PSA_CRYPTO_VALUES_H + /** * @ingroup sys_psa_crypto * @{ @@ -22,9 +25,6 @@ * These macros will be implemented successively in the future. */ -#ifndef PSA_CRYPTO_PSA_CRYPTO_VALUES_H -#define PSA_CRYPTO_PSA_CRYPTO_VALUES_H - #ifdef __cplusplus extern "C" { #endif @@ -189,5 +189,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_CRYPTO_VALUES_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_CRYPTO_VALUES_H */ diff --git a/sys/include/psa_crypto/psa/error.h b/sys/include/psa_crypto/psa/error.h index 26a3aa4f0237..366e621d2820 100644 --- a/sys/include/psa_crypto/psa/error.h +++ b/sys/include/psa_crypto/psa/error.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_ERROR_H +#define PSA_CRYPTO_PSA_ERROR_H + /** * @ingroup sys_psa_crypto * @{ @@ -21,9 +24,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_ERROR_H -#define PSA_CRYPTO_PSA_ERROR_H - #ifdef __cplusplus extern "C" { #endif @@ -212,5 +212,5 @@ typedef int32_t psa_status_t; } #endif -#endif /* PSA_CRYPTO_PSA_ERROR_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_ERROR_H */ diff --git a/sys/include/psa_crypto/psa/hash/algorithm.h b/sys/include/psa_crypto/psa/hash/algorithm.h index 4d73a15b5295..3976ba860d6f 100644 --- a/sys/include/psa_crypto/psa/hash/algorithm.h +++ b/sys/include/psa_crypto/psa/hash/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_HASH_ALGORITHM_H +#define PSA_CRYPTO_PSA_HASH_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_HASH_ALGORITHM_H -#define PSA_CRYPTO_PSA_HASH_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -239,5 +239,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_HASH_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_HASH_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/key/attributes.h b/sys/include/psa_crypto/psa/key/attributes.h index 70f5c33b3a89..7826fbb547c4 100644 --- a/sys/include/psa_crypto/psa/key/attributes.h +++ b/sys/include/psa_crypto/psa/key/attributes.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H +#define PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H -#define PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H - #ifdef __cplusplus extern "C" { #endif @@ -182,5 +182,5 @@ static inline psa_key_attributes_t psa_key_attributes_init(void) } #endif -#endif /* PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_ATTRIBUTES_H */ diff --git a/sys/include/psa_crypto/psa/key/bits.h b/sys/include/psa_crypto/psa/key/bits.h index 80e90dd29901..1b86893b1eaa 100644 --- a/sys/include/psa_crypto/psa/key/bits.h +++ b/sys/include/psa_crypto/psa/key/bits.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_BITS_H +#define PSA_CRYPTO_PSA_KEY_BITS_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_BITS_H -#define PSA_CRYPTO_PSA_KEY_BITS_H - #ifdef __cplusplus extern "C" { #endif @@ -37,5 +37,5 @@ typedef uint16_t psa_key_bits_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_BITS_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_BITS_H */ diff --git a/sys/include/psa_crypto/psa/key/id.h b/sys/include/psa_crypto/psa/key/id.h index a3df0ea159f9..09ab4520b6fd 100644 --- a/sys/include/psa_crypto/psa/key/id.h +++ b/sys/include/psa_crypto/psa/key/id.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_ID_H +#define PSA_CRYPTO_PSA_KEY_ID_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_ID_H -#define PSA_CRYPTO_PSA_KEY_ID_H - #ifdef __cplusplus extern "C" { #endif @@ -68,5 +68,5 @@ typedef uint32_t psa_key_id_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_ID_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_ID_H */ diff --git a/sys/include/psa_crypto/psa/key/lifetime.h b/sys/include/psa_crypto/psa/key/lifetime.h index b5ea672f996f..c6ee3cadfe5d 100644 --- a/sys/include/psa_crypto/psa/key/lifetime.h +++ b/sys/include/psa_crypto/psa/key/lifetime.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_LIFETIME_H +#define PSA_CRYPTO_PSA_KEY_LIFETIME_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_LIFETIME_H -#define PSA_CRYPTO_PSA_KEY_LIFETIME_H - #ifdef __cplusplus extern "C" { #endif @@ -278,5 +278,5 @@ typedef uint32_t psa_key_location_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_LIFETIME_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_LIFETIME_H */ diff --git a/sys/include/psa_crypto/psa/key/type.h b/sys/include/psa_crypto/psa/key/type.h index 46e44bf5039e..c6215b4514f1 100644 --- a/sys/include/psa_crypto/psa/key/type.h +++ b/sys/include/psa_crypto/psa/key/type.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_TYPE_H +#define PSA_CRYPTO_PSA_KEY_TYPE_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_TYPE_H -#define PSA_CRYPTO_PSA_KEY_TYPE_H - #ifdef __cplusplus extern "C" { #endif @@ -877,5 +877,5 @@ typedef uint8_t psa_dh_family_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_TYPE_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_TYPE_H */ diff --git a/sys/include/psa_crypto/psa/key/usage.h b/sys/include/psa_crypto/psa/key/usage.h index 1f5d33c7602a..105953fe3c9f 100644 --- a/sys/include/psa_crypto/psa/key/usage.h +++ b/sys/include/psa_crypto/psa/key/usage.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_USAGE_H +#define PSA_CRYPTO_PSA_KEY_USAGE_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_USAGE_H -#define PSA_CRYPTO_PSA_KEY_USAGE_H - #ifdef __cplusplus extern "C" { #endif @@ -220,5 +220,5 @@ typedef uint32_t psa_key_usage_t; } #endif -#endif /* PSA_CRYPTO_PSA_KEY_USAGE_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_USAGE_H */ diff --git a/sys/include/psa_crypto/psa/key_agreement/algorithm.h b/sys/include/psa_crypto/psa/key_agreement/algorithm.h index faed7a133d63..331ff9a8d3b8 100644 --- a/sys/include/psa_crypto/psa/key_agreement/algorithm.h +++ b/sys/include/psa_crypto/psa/key_agreement/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H +#define PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H -#define PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -251,5 +251,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_AGREEMENT_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/key_derivation/algorithm.h b/sys/include/psa_crypto/psa/key_derivation/algorithm.h index 730b235b3d48..b769cbb61529 100644 --- a/sys/include/psa_crypto/psa/key_derivation/algorithm.h +++ b/sys/include/psa_crypto/psa/key_derivation/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H +#define PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H -#define PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -338,5 +338,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_KEY_DERIVATION_ALGORITHM_H */ diff --git a/sys/include/psa_crypto/psa/mac/algorithm.h b/sys/include/psa_crypto/psa/mac/algorithm.h index 164415aeb9f7..c120d307893b 100644 --- a/sys/include/psa_crypto/psa/mac/algorithm.h +++ b/sys/include/psa_crypto/psa/mac/algorithm.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef PSA_CRYPTO_PSA_MAC_ALGORITHM_H +#define PSA_CRYPTO_PSA_MAC_ALGORITHM_H + /** * @ingroup sys_psa_crypto * @{ @@ -19,9 +22,6 @@ * */ -#ifndef PSA_CRYPTO_PSA_MAC_ALGORITHM_H -#define PSA_CRYPTO_PSA_MAC_ALGORITHM_H - #ifdef __cplusplus extern "C" { #endif @@ -222,5 +222,5 @@ extern "C" { } #endif -#endif /* PSA_CRYPTO_PSA_MAC_ALGORITHM_H */ /** @} */ +#endif /* PSA_CRYPTO_PSA_MAC_ALGORITHM_H */ diff --git a/sys/include/ptrtag.h b/sys/include/ptrtag.h index 187477b2f91d..93b4ad368af7 100644 --- a/sys/include/ptrtag.h +++ b/sys/include/ptrtag.h @@ -6,6 +6,9 @@ * details. */ +#ifndef PTRTAG_H +#define PTRTAG_H + /** * @defgroup sys_ptrtag Helpers for pointer tagging * @ingroup sys @@ -58,9 +61,6 @@ * @author Marian Buschsieweke */ -#ifndef PTRTAG_H -#define PTRTAG_H - #include #include #include @@ -122,5 +122,5 @@ static inline uint8_t ptrtag_tag(void *tagged_ptr) } #endif -#endif /* PTRTAG_H */ /** @} */ +#endif /* PTRTAG_H */ diff --git a/sys/include/puf_sram.h b/sys/include/puf_sram.h index 1c5cbdb549d8..c6bf41c34a9b 100644 --- a/sys/include/puf_sram.h +++ b/sys/include/puf_sram.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef PUF_SRAM_H +#define PUF_SRAM_H /** * @defgroup sys_puf_sram SRAM PUF * @ingroup sys @@ -51,8 +53,6 @@ * * @author Peter Kietzmann */ -#ifndef PUF_SRAM_H -#define PUF_SRAM_H #ifdef __cplusplus extern "C" { diff --git a/sys/include/random.h b/sys/include/random.h index d762149383bc..ee7f3a69f522 100644 --- a/sys/include/random.h +++ b/sys/include/random.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef RANDOM_H +#define RANDOM_H + /** * @defgroup sys_random Random * @ingroup sys @@ -32,9 +35,6 @@ * @brief Common interface to the software PRNG */ -#ifndef RANDOM_H -#define RANDOM_H - #include #include @@ -138,5 +138,5 @@ double random_res53(void); } #endif -#endif /* RANDOM_H */ /** @} */ +#endif /* RANDOM_H */ diff --git a/sys/include/riotboot/bootloader_selection.h b/sys/include/riotboot/bootloader_selection.h index 246d695e15dd..08914e4cd35d 100644 --- a/sys/include/riotboot/bootloader_selection.h +++ b/sys/include/riotboot/bootloader_selection.h @@ -5,6 +5,13 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef RIOTBOOT_BOOTLOADER_SELECTION_H +#define RIOTBOOT_BOOTLOADER_SELECTION_H + +/* Include guards and cplusplus are more of a formality; this header is local + * to the riotboot_dfu application that isn't written in C++ and not included + * from anywhere else either, but still here for consistency (and because + * otherwise the checks complain) */ /** @ingroup bootloaders * * @{ @@ -15,13 +22,6 @@ * @author Christian Amsüss */ -/* Include guards and cplusplus are more of a formality; this header is local - * to the riotboot_dfu application that isn't written in C++ and not included - * from anywhere else either, but still here for consistency (and because - * otherwise the checks complain) */ -#ifndef RIOTBOOT_BOOTLOADER_SELECTION_H -#define RIOTBOOT_BOOTLOADER_SELECTION_H - #ifdef __cplusplus extern "C" { #endif @@ -82,6 +82,6 @@ extern "C" { } #endif -#endif /* RIOTBOOT_BOOTLOADER_SELECTION_H */ - /** @} */ + +#endif /* RIOTBOOT_BOOTLOADER_SELECTION_H */ diff --git a/sys/include/riotboot/hdr.h b/sys/include/riotboot/hdr.h index a04acfc3e476..84d238fa583e 100644 --- a/sys/include/riotboot/hdr.h +++ b/sys/include/riotboot/hdr.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef RIOTBOOT_HDR_H +#define RIOTBOOT_HDR_H + /** * @defgroup sys_riotboot_hdr RIOT header helpers and tools * @ingroup sys @@ -29,9 +32,6 @@ * @} */ -#ifndef RIOTBOOT_HDR_H -#define RIOTBOOT_HDR_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/riotboot/magic.h b/sys/include/riotboot/magic.h index 5ca8fcaf2f11..c17aeddeccb5 100644 --- a/sys/include/riotboot/magic.h +++ b/sys/include/riotboot/magic.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef RIOTBOOT_MAGIC_H +#define RIOTBOOT_MAGIC_H + /** * @defgroup sys_riotboot_magic Magic values for riotboot * @ingroup sys @@ -19,9 +22,6 @@ * @} */ -#ifndef RIOTBOOT_MAGIC_H -#define RIOTBOOT_MAGIC_H - #include "riotboot/hdr.h" #ifdef __cplusplus diff --git a/sys/include/riotboot/serial.h b/sys/include/riotboot/serial.h index fc2ccd77f6f7..2594372538f0 100644 --- a/sys/include/riotboot/serial.h +++ b/sys/include/riotboot/serial.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef RIOTBOOT_SERIAL_H +#define RIOTBOOT_SERIAL_H + /** * @defgroup sys_riotboot_serial Serial Bootloader Protocol * @ingroup sys @@ -19,9 +22,6 @@ * @} */ -#ifndef RIOTBOOT_SERIAL_H -#define RIOTBOOT_SERIAL_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/riotboot/usb_dfu.h b/sys/include/riotboot/usb_dfu.h index f1157099fe40..320ae326d0d0 100644 --- a/sys/include/riotboot/usb_dfu.h +++ b/sys/include/riotboot/usb_dfu.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef RIOTBOOT_USB_DFU_H +#define RIOTBOOT_USB_DFU_H + /** * @defgroup sys_riotboot_usb_dfu Initialization of USB Device Firmware * Upgrade for riotboot @@ -20,9 +23,6 @@ * @} */ -#ifndef RIOTBOOT_USB_DFU_H -#define RIOTBOOT_USB_DFU_H - #include "riotboot/hdr.h" #ifdef __cplusplus diff --git a/sys/include/rtc_utils.h b/sys/include/rtc_utils.h index 88a983502ab7..1ac6ddb5a41c 100644 --- a/sys/include/rtc_utils.h +++ b/sys/include/rtc_utils.h @@ -6,6 +6,9 @@ * details. */ +#ifndef RTC_UTILS_H +#define RTC_UTILS_H + /** * @defgroup sys_rtc_utils RTC helpers * @ingroup sys @@ -16,9 +19,6 @@ * @author Benjamin Valentin */ -#ifndef RTC_UTILS_H -#define RTC_UTILS_H - #include #include #include @@ -96,5 +96,5 @@ bool rtc_tm_valid(const struct tm *t); } #endif -#endif /* RTC_UTILS_H */ /** @} */ +#endif /* RTC_UTILS_H */ diff --git a/sys/include/saul_reg.h b/sys/include/saul_reg.h index 65dca2e29f4d..515d9468782c 100644 --- a/sys/include/saul_reg.h +++ b/sys/include/saul_reg.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SAUL_REG_H +#define SAUL_REG_H + /** * @defgroup sys_saul_reg SAUL registry * @ingroup sys @@ -21,9 +24,6 @@ * @author Hauke Petersen */ -#ifndef SAUL_REG_H -#define SAUL_REG_H - #include #include "saul.h" @@ -140,5 +140,5 @@ int saul_reg_write(saul_reg_t *dev, const phydat_t *data); } #endif -#endif /* SAUL_REG_H */ /** @} */ +#endif /* SAUL_REG_H */ diff --git a/sys/include/sched_round_robin.h b/sys/include/sched_round_robin.h index 4e0e2381e72a..3eb20d0f4ee2 100644 --- a/sys/include/sched_round_robin.h +++ b/sys/include/sched_round_robin.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef SCHED_ROUND_ROBIN_H +#define SCHED_ROUND_ROBIN_H /** * @defgroup sched_round_robin Round Robin Scheduler * @ingroup sys @@ -29,8 +31,6 @@ * @author Karl Fessel * */ -#ifndef SCHED_ROUND_ROBIN_H -#define SCHED_ROUND_ROBIN_H #ifdef __cplusplus extern "C" { @@ -83,5 +83,5 @@ void sched_round_robin_init(void); } #endif -#endif /* SCHED_ROUND_ROBIN_H */ /** @} */ +#endif /* SCHED_ROUND_ROBIN_H */ diff --git a/sys/include/schedstatistics.h b/sys/include/schedstatistics.h index 7d10735273c5..129ba3a3f765 100644 --- a/sys/include/schedstatistics.h +++ b/sys/include/schedstatistics.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef SCHEDSTATISTICS_H +#define SCHEDSTATISTICS_H + /** * @defgroup schedstatistics Schedstatistics * @ingroup sys @@ -26,9 +29,6 @@ * */ -#ifndef SCHEDSTATISTICS_H -#define SCHEDSTATISTICS_H - #include #ifdef __cplusplus @@ -60,5 +60,5 @@ void init_schedstatistics(void); } #endif -#endif /* SCHEDSTATISTICS_H */ /** @} */ +#endif /* SCHEDSTATISTICS_H */ diff --git a/sys/include/sema.h b/sys/include/sema.h index 58488ede7f5a..c438ce8d2b10 100644 --- a/sys/include/sema.h +++ b/sys/include/sema.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef SEMA_H +#define SEMA_H + /** * @defgroup sys_sema Semaphores * @ingroup sys @@ -22,9 +25,6 @@ * @author Víctor Ariño */ -#ifndef SEMA_H -#define SEMA_H - #include #include "mutex.h" @@ -253,5 +253,5 @@ int sema_post(sema_t *sema); } #endif -#endif /* SEMA_H */ /** @} */ +#endif /* SEMA_H */ diff --git a/sys/include/sema_inv.h b/sys/include/sema_inv.h index e9cb4adb7341..1fc1a7478e66 100644 --- a/sys/include/sema_inv.h +++ b/sys/include/sema_inv.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SEMA_INV_H +#define SEMA_INV_H + /** * @defgroup sys_sema_inv inverse Semaphores * @ingroup sys @@ -39,9 +42,6 @@ * @author Benjamin Valentin */ -#ifndef SEMA_INV_H -#define SEMA_INV_H - #include "atomic_utils.h" #include "mutex.h" @@ -147,5 +147,5 @@ static inline int sema_inv_wait_timeout(sema_inv_t *s, uint32_t us) } #endif -#endif /* SEMA_INV_H */ /** @} */ +#endif /* SEMA_INV_H */ diff --git a/sys/include/senml.h b/sys/include/senml.h index 84b93dfc9465..4120e5bfc039 100644 --- a/sys/include/senml.h +++ b/sys/include/senml.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SENML_H +#define SENML_H + /** * @defgroup sys_senml SenML * @ingroup sys @@ -33,9 +36,6 @@ * @author Silke Hofstra */ -#ifndef SENML_H -#define SENML_H - #include #include #include @@ -522,5 +522,5 @@ const char *senml_unit_to_str(senml_unit_t unit); } #endif -#endif /* SENML_H */ /** @} */ +#endif /* SENML_H */ diff --git a/sys/include/senml/cbor.h b/sys/include/senml/cbor.h index 00676e7a8806..9a4cb55b1cc0 100644 --- a/sys/include/senml/cbor.h +++ b/sys/include/senml/cbor.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SENML_CBOR_H +#define SENML_CBOR_H + /** * @defgroup sys_senml_cbor SenML CBOR * @ingroup sys_senml @@ -22,9 +25,6 @@ * @author Silke Hofstra */ -#ifndef SENML_CBOR_H -#define SENML_CBOR_H - #include #include #include @@ -117,5 +117,5 @@ int senml_encode_data_cbor(nanocbor_encoder_t *enc, const senml_data_value_t *va } #endif -#endif /* SENML_CBOR_H */ /** @} */ +#endif /* SENML_CBOR_H */ diff --git a/sys/include/senml/phydat.h b/sys/include/senml/phydat.h index 8ebfb1a20065..bcfe27824a89 100644 --- a/sys/include/senml/phydat.h +++ b/sys/include/senml/phydat.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SENML_PHYDAT_H +#define SENML_PHYDAT_H + /** * @defgroup sys_senml_phydat SenML Phydat * @ingroup sys_senml @@ -22,9 +25,6 @@ * @author Silke Hofstra */ -#ifndef SENML_PHYDAT_H -#define SENML_PHYDAT_H - #include #include #include @@ -94,5 +94,5 @@ void phydat_to_senml_decimal(senml_value_t *senml, const phydat_t *phydat, const } #endif -#endif /* SENML_PHYDAT_H */ /** @} */ +#endif /* SENML_PHYDAT_H */ diff --git a/sys/include/senml/saul.h b/sys/include/senml/saul.h index 5ffa27c46fe3..43d3329acb48 100644 --- a/sys/include/senml/saul.h +++ b/sys/include/senml/saul.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SENML_SAUL_H +#define SENML_SAUL_H + /** * @defgroup sys_senml_saul SenML SAUL * @ingroup sys_senml @@ -22,9 +25,6 @@ * @author Silke Hofstra */ -#ifndef SENML_SAUL_H -#define SENML_SAUL_H - #include #include "nanocbor/nanocbor.h" #include "saul_reg.h" @@ -72,5 +72,5 @@ size_t senml_saul_encode_cbor(uint8_t *buf, size_t len, saul_reg_t *reg); } #endif -#endif /* SENML_SAUL_H */ /** @} */ +#endif /* SENML_SAUL_H */ diff --git a/sys/include/seq.h b/sys/include/seq.h index e9f007b32e16..7e2606270c0a 100644 --- a/sys/include/seq.h +++ b/sys/include/seq.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SEQ_H +#define SEQ_H + /** * @ingroup sys_seq * @{ @@ -19,9 +22,6 @@ * @author Cenk Gündoğan */ -#ifndef SEQ_H -#define SEQ_H - #include #include diff --git a/sys/include/shell.h b/sys/include/shell.h index 0a8e527caf62..e18da2b87494 100644 --- a/sys/include/shell.h +++ b/sys/include/shell.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SHELL_H +#define SHELL_H + /** * @defgroup sys_shell Shell * @ingroup sys @@ -44,9 +47,6 @@ * @brief Shell interface definition */ -#ifndef SHELL_H -#define SHELL_H - #include #include "periph/pm.h" @@ -316,5 +316,5 @@ int shell_parse_file(const shell_command_t *commands, } #endif -#endif /* SHELL_H */ /** @} */ +#endif /* SHELL_H */ diff --git a/sys/include/shell_lock.h b/sys/include/shell_lock.h index 8912be777635..5d562dcb93a7 100644 --- a/sys/include/shell_lock.h +++ b/sys/include/shell_lock.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SHELL_LOCK_H +#define SHELL_LOCK_H + /** * @defgroup sys_shell_lock Shell lock * @ingroup sys @@ -21,9 +24,6 @@ * @brief Shell interface definition */ -#ifndef SHELL_LOCK_H -#define SHELL_LOCK_H - #ifdef __cplusplus extern "C" { #endif @@ -85,5 +85,5 @@ void shell_lock_auto_lock_refresh(void); } #endif -#endif /* SHELL_LOCK_H */ /** @} */ +#endif /* SHELL_LOCK_H */ diff --git a/sys/include/stdio_base.h b/sys/include/stdio_base.h index 2a9bf6d702bf..a70230297bb9 100644 --- a/sys/include/stdio_base.h +++ b/sys/include/stdio_base.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef STDIO_BASE_H +#define STDIO_BASE_H + /** * @defgroup sys_stdio STDIO abstraction * @ingroup sys @@ -21,9 +24,6 @@ * @author Benjamin Valentin */ -#ifndef STDIO_BASE_H -#define STDIO_BASE_H - #include #include "modules.h" diff --git a/sys/include/stdio_nimble.h b/sys/include/stdio_nimble.h index 0cbf7a499839..8b382ff62c3e 100644 --- a/sys/include/stdio_nimble.h +++ b/sys/include/stdio_nimble.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef STDIO_NIMBLE_H +#define STDIO_NIMBLE_H + /** * @defgroup sys_stdio_nimble STDIO over NimBLE * @ingroup sys_stdio @@ -161,9 +164,6 @@ * @author Hendrik van Essen */ -#ifndef STDIO_NIMBLE_H -#define STDIO_NIMBLE_H - #include "stdio_base.h" #ifdef __cplusplus diff --git a/sys/include/stdio_rtt.h b/sys/include/stdio_rtt.h index ae86e4d52de8..d63605b58aa2 100644 --- a/sys/include/stdio_rtt.h +++ b/sys/include/stdio_rtt.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef STDIO_RTT_H +#define STDIO_RTT_H + /** * @ingroup sys_stdio_rtt * @@ -17,9 +20,6 @@ * @author Hauke Petersen */ -#ifndef STDIO_RTT_H -#define STDIO_RTT_H - #include "stdio_base.h" #ifdef __cplusplus diff --git a/sys/include/stdio_semihosting.h b/sys/include/stdio_semihosting.h index f7d8abd96ce5..7ccfbaa3306f 100644 --- a/sys/include/stdio_semihosting.h +++ b/sys/include/stdio_semihosting.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef STDIO_SEMIHOSTING_H +#define STDIO_SEMIHOSTING_H + /** * @defgroup sys_stdio_semihosting STDIO over Semihosting * @ingroup sys_stdio @@ -56,9 +59,6 @@ * @author Koen Zandberg */ -#ifndef STDIO_SEMIHOSTING_H -#define STDIO_SEMIHOSTING_H - #include "stdio_base.h" #ifdef __cplusplus diff --git a/sys/include/stdio_uart.h b/sys/include/stdio_uart.h index 6fc55de01bd8..bedc93fb2639 100644 --- a/sys/include/stdio_uart.h +++ b/sys/include/stdio_uart.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef STDIO_UART_H +#define STDIO_UART_H + /** * @defgroup sys_stdio_uart STDIO over UART * @ingroup sys_stdio @@ -86,9 +89,6 @@ * @author Hauke Petersen */ -#ifndef STDIO_UART_H -#define STDIO_UART_H - /* Boards may override the default STDIO UART device */ #include "board.h" #include "stdio_base.h" diff --git a/sys/include/string_utils.h b/sys/include/string_utils.h index 32e8ee29078c..fd471a78fc43 100644 --- a/sys/include/string_utils.h +++ b/sys/include/string_utils.h @@ -6,6 +6,9 @@ * details. */ +#ifndef STRING_UTILS_H +#define STRING_UTILS_H + /** * @defgroup sys_string_utils Utility functions that are missing in `string.h` * @ingroup sys @@ -33,9 +36,6 @@ #include "flash_utils.h" #include "modules.h" -#ifndef STRING_UTILS_H -#define STRING_UTILS_H - #ifdef __cplusplus extern "C" { #endif @@ -183,5 +183,5 @@ const void *memchk(const void *data, uint8_t c, size_t len); } #endif -#endif /* STRING_UTILS_H */ /** @} */ +#endif /* STRING_UTILS_H */ diff --git a/sys/include/suit.h b/sys/include/suit.h index 008b8c4db5ef..3f488f75efe9 100644 --- a/sys/include/suit.h +++ b/sys/include/suit.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_H +#define SUIT_H + /** * @defgroup sys_suit SUIT secure firmware OTA upgrade infrastructure * @ingroup sys @@ -27,9 +30,6 @@ * */ -#ifndef SUIT_H -#define SUIT_H - #include #include @@ -329,5 +329,5 @@ int suit_component_name_to_string(const suit_manifest_t *manifest, } #endif -#endif /* SUIT_H */ /** @} */ +#endif /* SUIT_H */ diff --git a/sys/include/suit/conditions.h b/sys/include/suit/conditions.h index 573ca7acf6a5..d3845cb18547 100644 --- a/sys/include/suit/conditions.h +++ b/sys/include/suit/conditions.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_CONDITIONS_H +#define SUIT_CONDITIONS_H + /** * @ingroup sys_suit * @brief SUIT conditions @@ -18,9 +21,6 @@ * */ -#ifndef SUIT_CONDITIONS_H -#define SUIT_CONDITIONS_H - #include #include @@ -105,5 +105,5 @@ uuid_t *suit_get_device_id(void); } #endif -#endif /* SUIT_CONDITIONS_H */ /** @} */ +#endif /* SUIT_CONDITIONS_H */ diff --git a/sys/include/suit/handlers.h b/sys/include/suit/handlers.h index 8ffdcd021aba..f26aeb0c12c1 100644 --- a/sys/include/suit/handlers.h +++ b/sys/include/suit/handlers.h @@ -8,6 +8,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_HANDLERS_H +#define SUIT_HANDLERS_H + /** * @ingroup sys_suit * @brief SUIT draft-ietf-suit-manifest-03 manifest handlers @@ -21,9 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef SUIT_HANDLERS_H -#define SUIT_HANDLERS_H - #include #include @@ -227,5 +227,5 @@ void suit_param_cbor_to_ref(const suit_manifest_t *manifest, } #endif -#endif /* SUIT_HANDLERS_H */ /** @} */ +#endif /* SUIT_HANDLERS_H */ diff --git a/sys/include/suit/policy.h b/sys/include/suit/policy.h index b1b3c96d0779..43d3ab5ba799 100644 --- a/sys/include/suit/policy.h +++ b/sys/include/suit/policy.h @@ -8,6 +8,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_POLICY_H +#define SUIT_POLICY_H + /** * @ingroup sys_suit * @brief SUIT policy definitions @@ -20,9 +23,6 @@ * */ -#ifndef SUIT_POLICY_H -#define SUIT_POLICY_H - #include #include @@ -55,5 +55,5 @@ extern "C" { } #endif -#endif /* SUIT_POLICY_H */ /** @} */ +#endif /* SUIT_POLICY_H */ diff --git a/sys/include/suit/storage.h b/sys/include/suit/storage.h index b7efbc813841..ad462955bd10 100644 --- a/sys/include/suit/storage.h +++ b/sys/include/suit/storage.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_STORAGE_H +#define SUIT_STORAGE_H + /** * @defgroup sys_suit_storage SUIT secure firmware OTA upgrade storage * infrastructure @@ -95,9 +98,6 @@ * @warning This API is by design not thread safe */ -#ifndef SUIT_STORAGE_H -#define SUIT_STORAGE_H - #include "suit.h" #ifdef __cplusplus @@ -611,5 +611,5 @@ static inline int suit_storage_set_seq_no(suit_storage_t *storage, } #endif -#endif /* SUIT_STORAGE_H */ /** @} */ +#endif /* SUIT_STORAGE_H */ diff --git a/sys/include/suit/storage/flashwrite.h b/sys/include/suit/storage/flashwrite.h index 354d0db03f0f..dc59d08808bb 100644 --- a/sys/include/suit/storage/flashwrite.h +++ b/sys/include/suit/storage/flashwrite.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_STORAGE_FLASHWRITE_H +#define SUIT_STORAGE_FLASHWRITE_H + /** * @defgroup sys_suit_storage_flashwrite riotboot flashwrite storage backend * @ingroup sys_suit_storage @@ -17,9 +20,6 @@ * @author Koen Zandberg */ -#ifndef SUIT_STORAGE_FLASHWRITE_H -#define SUIT_STORAGE_FLASHWRITE_H - #include "suit.h" #include "riotboot/flashwrite.h" @@ -39,5 +39,5 @@ typedef struct { } #endif -#endif /* SUIT_STORAGE_FLASHWRITE_H */ /** @} */ +#endif /* SUIT_STORAGE_FLASHWRITE_H */ diff --git a/sys/include/suit/storage/ram.h b/sys/include/suit/storage/ram.h index 4cdf0e09dcc7..1995a9edb47f 100644 --- a/sys/include/suit/storage/ram.h +++ b/sys/include/suit/storage/ram.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_STORAGE_RAM_H +#define SUIT_STORAGE_RAM_H + /** * @defgroup sys_suit_storage_ram ram storage backend * @ingroup sys_suit_storage @@ -28,9 +31,6 @@ * distinction between valid content and not yet invalidated content. */ -#ifndef SUIT_STORAGE_RAM_H -#define SUIT_STORAGE_RAM_H - #include #include "suit.h" @@ -101,5 +101,5 @@ typedef struct CONFIG_SUIT_STORAGE_RAM_ATTR { } #endif -#endif /* SUIT_STORAGE_RAM_H */ /** @} */ +#endif /* SUIT_STORAGE_RAM_H */ diff --git a/sys/include/suit/storage/vfs.h b/sys/include/suit/storage/vfs.h index 0f47053498c9..c53260223868 100644 --- a/sys/include/suit/storage/vfs.h +++ b/sys/include/suit/storage/vfs.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_STORAGE_VFS_H +#define SUIT_STORAGE_VFS_H + /** * @defgroup sys_suit_storage_vfs riotboot vfs storage backend * @ingroup sys_suit_storage @@ -30,9 +33,6 @@ * @author Koen Zandberg */ -#ifndef SUIT_STORAGE_VFS_H -#define SUIT_STORAGE_VFS_H - #include "suit.h" #include "../../sys/include/vfs.h" #include "vfs_default.h" @@ -68,5 +68,5 @@ typedef struct { } #endif -#endif /* SUIT_STORAGE_VFS_H */ /** @} */ +#endif /* SUIT_STORAGE_VFS_H */ diff --git a/sys/include/suit/transport/coap.h b/sys/include/suit/transport/coap.h index 3c841918cf66..a47828d7f25c 100644 --- a/sys/include/suit/transport/coap.h +++ b/sys/include/suit/transport/coap.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef SUIT_TRANSPORT_COAP_H +#define SUIT_TRANSPORT_COAP_H + /** * @ingroup sys_suit * @defgroup sys_suit_transport_coap SUIT firmware CoAP transport @@ -22,9 +25,6 @@ * */ -#ifndef SUIT_TRANSPORT_COAP_H -#define SUIT_TRANSPORT_COAP_H - #include "net/nanocoap.h" #include "suit/transport/worker.h" @@ -74,5 +74,5 @@ static inline void suit_coap_trigger(const uint8_t *url, size_t len) } #endif -#endif /* SUIT_TRANSPORT_COAP_H */ /** @} */ +#endif /* SUIT_TRANSPORT_COAP_H */ diff --git a/sys/include/suit/transport/mock.h b/sys/include/suit/transport/mock.h index 689a6583895d..9eb6a53c360c 100644 --- a/sys/include/suit/transport/mock.h +++ b/sys/include/suit/transport/mock.h @@ -6,6 +6,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_TRANSPORT_MOCK_H +#define SUIT_TRANSPORT_MOCK_H + /** * @defgroup sys_suit_transport_mock SUIT secure firmware OTA mock transport * @ingroup sys_suit @@ -23,9 +26,6 @@ * `num_payloads` must be provided. */ -#ifndef SUIT_TRANSPORT_MOCK_H -#define SUIT_TRANSPORT_MOCK_H - #include "suit.h" #ifdef __cplusplus @@ -57,5 +57,5 @@ int suit_transport_mock_fetch(const suit_manifest_t *manifest); } #endif -#endif /* SUIT_TRANSPORT_MOCK_H */ /** @} */ +#endif /* SUIT_TRANSPORT_MOCK_H */ diff --git a/sys/include/suit/transport/vfs.h b/sys/include/suit/transport/vfs.h index 5fd725af31e9..e74eb994dd74 100644 --- a/sys/include/suit/transport/vfs.h +++ b/sys/include/suit/transport/vfs.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef SUIT_TRANSPORT_VFS_H +#define SUIT_TRANSPORT_VFS_H + /** * @defgroup sys_suit_transport_vfs SUIT secure firmware OTA VFS transport * @ingroup sys_suit @@ -22,9 +25,6 @@ * */ -#ifndef SUIT_TRANSPORT_VFS_H -#define SUIT_TRANSPORT_VFS_H - #include "net/nanocoap.h" #include "suit.h" @@ -48,5 +48,5 @@ int suit_transport_vfs_fetch(const suit_manifest_t *manifest, coap_blockwise_cb_ } #endif -#endif /* SUIT_TRANSPORT_VFS_H */ /** @} */ +#endif /* SUIT_TRANSPORT_VFS_H */ diff --git a/sys/include/suit/transport/worker.h b/sys/include/suit/transport/worker.h index b19b3d35d08c..51193a5bdabb 100644 --- a/sys/include/suit/transport/worker.h +++ b/sys/include/suit/transport/worker.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef SUIT_TRANSPORT_WORKER_H +#define SUIT_TRANSPORT_WORKER_H + /** * @ingroup sys_suit * @defgroup sys_suit_transport_worker SUIT firmware worker thread @@ -135,5 +138,5 @@ int suit_handle_manifest_buf(const uint8_t *buffer, size_t size); } #endif -#endif /* SUIT_TRANSPORT_WORKER_H */ /** @} */ +#endif /* SUIT_TRANSPORT_WORKER_H */ diff --git a/sys/include/sys/bus.h b/sys/include/sys/bus.h index 204eb3b95de7..97e8a30aae51 100644 --- a/sys/include/sys/bus.h +++ b/sys/include/sys/bus.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef SYS_BUS_H +#define SYS_BUS_H + /** * @ingroup sys * @defgroup sys_bus System Buses for common events @@ -19,9 +22,6 @@ * @author Benjamin Valentin */ -#ifndef SYS_BUS_H -#define SYS_BUS_H - #include #include "msg_bus.h" @@ -73,5 +73,5 @@ static inline msg_bus_t *sys_bus_get(sys_bus_t bus) } #endif -#endif /* SYS_BUS_H */ /** @} */ +#endif /* SYS_BUS_H */ diff --git a/sys/include/test_utils/benchmark_udp.h b/sys/include/test_utils/benchmark_udp.h index 3b984913bf63..24d06d8b0a4f 100644 --- a/sys/include/test_utils/benchmark_udp.h +++ b/sys/include/test_utils/benchmark_udp.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_BENCHMARK_UDP_H +#define TEST_UTILS_BENCHMARK_UDP_H + /** * @defgroup test_utils_benchmark_udp UDP benchmark * @ingroup sys @@ -17,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef TEST_UTILS_BENCHMARK_UDP_H -#define TEST_UTILS_BENCHMARK_UDP_H - #include #include @@ -109,5 +109,5 @@ bool benchmark_udp_stop(void); } #endif -#endif /* TEST_UTILS_BENCHMARK_UDP_H */ /** @} */ +#endif /* TEST_UTILS_BENCHMARK_UDP_H */ diff --git a/sys/include/test_utils/expect.h b/sys/include/test_utils/expect.h index da3afdea9daa..b8d6fb461629 100644 --- a/sys/include/test_utils/expect.h +++ b/sys/include/test_utils/expect.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_EXPECT_H +#define TEST_UTILS_EXPECT_H + /** * @defgroup test_utils_expect expect() utility function * @ingroup sys @@ -22,9 +25,6 @@ * @author Kaspar Schleiser */ -#ifndef TEST_UTILS_EXPECT_H -#define TEST_UTILS_EXPECT_H - #include #include "compiler_hints.h" #include "panic.h" @@ -83,5 +83,5 @@ NORETURN static inline void _expect_failure(const char *file, unsigned line) } #endif -#endif /* TEST_UTILS_EXPECT_H */ /** @} */ +#endif /* TEST_UTILS_EXPECT_H */ diff --git a/sys/include/test_utils/interactive_sync.h b/sys/include/test_utils/interactive_sync.h index 25193ad2b0f7..633218a7a47c 100644 --- a/sys/include/test_utils/interactive_sync.h +++ b/sys/include/test_utils/interactive_sync.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_INTERACTIVE_SYNC_H +#define TEST_UTILS_INTERACTIVE_SYNC_H + /** * @defgroup test_utils_interactive_sync Test interactive synchronization * @ingroup sys @@ -18,9 +21,6 @@ * @author Gaëtan Harter */ -#ifndef TEST_UTILS_INTERACTIVE_SYNC_H -#define TEST_UTILS_INTERACTIVE_SYNC_H - #ifdef __cplusplus extern "C" { #endif @@ -40,5 +40,5 @@ static inline void test_utils_interactive_sync(void) {} #ifdef __cplusplus } #endif -#endif /* TEST_UTILS_INTERACTIVE_SYNC_H */ /** @} */ +#endif /* TEST_UTILS_INTERACTIVE_SYNC_H */ diff --git a/sys/include/test_utils/netdev_eth_minimal.h b/sys/include/test_utils/netdev_eth_minimal.h index 8f3df2e769c4..b3ad8afa79b1 100644 --- a/sys/include/test_utils/netdev_eth_minimal.h +++ b/sys/include/test_utils/netdev_eth_minimal.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_NETDEV_ETH_MINIMAL_H +#define TEST_UTILS_NETDEV_ETH_MINIMAL_H + /** * @defgroup test_utils_netdev_eth_minimal Minimal netdev Ethernet device processing * @ingroup sys @@ -23,9 +26,6 @@ * @author Leandro Lanzieri */ -#ifndef TEST_UTILS_NETDEV_ETH_MINIMAL_H -#define TEST_UTILS_NETDEV_ETH_MINIMAL_H - #include "net/netdev.h" #ifdef __cplusplus @@ -63,5 +63,5 @@ int netdev_eth_minimal_init(void); } #endif -#endif /* TEST_UTILS_NETDEV_ETH_MINIMAL_H */ /** @} */ +#endif /* TEST_UTILS_NETDEV_ETH_MINIMAL_H */ diff --git a/sys/include/test_utils/netdev_ieee802154_minimal.h b/sys/include/test_utils/netdev_ieee802154_minimal.h index fcc7fce63163..424bc5dad8a9 100644 --- a/sys/include/test_utils/netdev_ieee802154_minimal.h +++ b/sys/include/test_utils/netdev_ieee802154_minimal.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H +#define TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H + /** * @defgroup test_utils_netdev_ieee802154_minimal Minimal netdev IEEE 802.15.4 device processing * @ingroup sys @@ -26,9 +29,6 @@ * @author Kevin Weiss */ -#ifndef TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H -#define TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H - #include "net/netdev.h" #ifdef __cplusplus @@ -112,5 +112,5 @@ int netdev_ieee802154_minimal_set(struct netdev *dev, netopt_t opt, void *data, } #endif -#endif /* TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H */ /** @} */ +#endif /* TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H */ diff --git a/sys/include/test_utils/result_output.h b/sys/include/test_utils/result_output.h index b21b865fc602..a9940acc1064 100644 --- a/sys/include/test_utils/result_output.h +++ b/sys/include/test_utils/result_output.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TEST_UTILS_RESULT_OUTPUT_H +#define TEST_UTILS_RESULT_OUTPUT_H + /** * @defgroup test_utils_result_output Test result output * @ingroup sys @@ -47,9 +50,6 @@ * @author Kevin Weiss */ -#ifndef TEST_UTILS_RESULT_OUTPUT_H -#define TEST_UTILS_RESULT_OUTPUT_H - #ifdef __cplusplus extern "C" { #endif @@ -353,5 +353,5 @@ void turo_simple_exit_status(turo_t *ctx, int exit_status); #ifdef __cplusplus } #endif -#endif /* TEST_UTILS_RESULT_OUTPUT_H */ /** @} */ +#endif /* TEST_UTILS_RESULT_OUTPUT_H */ diff --git a/sys/include/time_units.h b/sys/include/time_units.h index 916c1a67aeb1..53a1affdc0f8 100644 --- a/sys/include/time_units.h +++ b/sys/include/time_units.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef TIME_UNITS_H +#define TIME_UNITS_H + /** * @defgroup sys_time_units Time unit representations * @brief Timestamp representation, computation, and conversion @@ -17,9 +20,6 @@ * @brief Utility header providing time unit defines */ -#ifndef TIME_UNITS_H -#define TIME_UNITS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/timex.h b/sys/include/timex.h index 3396e21689f1..1df6e77f13fb 100644 --- a/sys/include/timex.h +++ b/sys/include/timex.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef TIMEX_H +#define TIMEX_H + /** * @defgroup sys_timex Timex * @brief Timestamp representation, computation, and conversion @@ -17,9 +20,6 @@ * @brief Utility library for comparing and computing timestamps */ -#ifndef TIMEX_H -#define TIMEX_H - #include #include #include "time_units.h" diff --git a/sys/include/tiny_strerror.h b/sys/include/tiny_strerror.h index 76225cb8a031..78f94624aaa1 100644 --- a/sys/include/tiny_strerror.h +++ b/sys/include/tiny_strerror.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef TINY_STRERROR_H +#define TINY_STRERROR_H + /** * @defgroup sys_tiny_strerror Tiny strerror() implementation * @ingroup sys @@ -41,9 +44,6 @@ * @author Marian Buschsieweke */ -#ifndef TINY_STRERROR_H -#define TINY_STRERROR_H - #include #include @@ -79,5 +79,5 @@ const char *tiny_strerror(int errnum); } #endif -#endif /* TINY_STRERROR_H */ /** @} */ +#endif /* TINY_STRERROR_H */ diff --git a/sys/include/tm.h b/sys/include/tm.h index f39f2b1b5a95..a814a3b1bdd4 100644 --- a/sys/include/tm.h +++ b/sys/include/tm.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TM_H +#define TM_H + /** * @addtogroup sys_timex * @{ @@ -14,9 +17,6 @@ * @brief Utility library for `struct tm`. */ -#ifndef TM_H -#define TM_H - #include #include #include @@ -121,5 +121,5 @@ int tm_is_valid_time(int hour, int min, int sec); } #endif -#endif /* TM_H */ /** @} */ +#endif /* TM_H */ diff --git a/sys/include/trace.h b/sys/include/trace.h index ea396341e188..1357334239b8 100644 --- a/sys/include/trace.h +++ b/sys/include/trace.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef TRACE_H +#define TRACE_H + /** * @ingroup sys * @brief Trace program flows @@ -50,9 +53,6 @@ * */ -#ifndef TRACE_H -#define TRACE_H - #include #ifdef __cplusplus @@ -96,5 +96,5 @@ void trace_reset(void); } #endif -#endif /* TRACE_H */ /** @} */ +#endif /* TRACE_H */ diff --git a/sys/include/trickle.h b/sys/include/trickle.h index d001a9c9e7d5..278cd79bf382 100644 --- a/sys/include/trickle.h +++ b/sys/include/trickle.h @@ -9,6 +9,9 @@ * directory for more details. */ +#ifndef TRICKLE_H +#define TRICKLE_H + /** * @defgroup sys_trickle Trickle Timer * @ingroup sys @@ -25,9 +28,6 @@ * @author Cenk Gündoğan */ -#ifndef TRICKLE_H -#define TRICKLE_H - #ifdef __cplusplus extern "C" { #endif @@ -123,5 +123,5 @@ void trickle_callback(trickle_t *trickle); } #endif -#endif /* TRICKLE_H */ /** @} */ +#endif /* TRICKLE_H */ diff --git a/sys/include/tsrb.h b/sys/include/tsrb.h index 4d9c610dcb7b..ecb389fcf704 100644 --- a/sys/include/tsrb.h +++ b/sys/include/tsrb.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef TSRB_H +#define TSRB_H + /** * @defgroup sys_tsrb Thread safe ringbuffer * @ingroup sys @@ -20,9 +23,6 @@ * @author Kaspar Schleiser */ -#ifndef TSRB_H -#define TSRB_H - #include #include #include @@ -196,5 +196,5 @@ int tsrb_add(tsrb_t *rb, const uint8_t *src, size_t n); } #endif -#endif /* TSRB_H */ /** @} */ +#endif /* TSRB_H */ diff --git a/sys/include/unaligned.h b/sys/include/unaligned.h index 1ea3bce83fdf..9746e7edbe47 100644 --- a/sys/include/unaligned.h +++ b/sys/include/unaligned.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef UNALIGNED_H +#define UNALIGNED_H + /** * @defgroup sys_unaligned unaligned memory access methods * @ingroup sys @@ -34,9 +37,6 @@ * @author Kaspar Schleiser */ -#ifndef UNALIGNED_H -#define UNALIGNED_H - #include #ifdef __cplusplus diff --git a/sys/include/universal_address.h b/sys/include/universal_address.h index 9e0b13198b63..ea1b05bfa5e7 100644 --- a/sys/include/universal_address.h +++ b/sys/include/universal_address.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef UNIVERSAL_ADDRESS_H +#define UNIVERSAL_ADDRESS_H + /** * @defgroup sys_universal_address Universal Address Container * @ingroup sys @@ -18,9 +21,6 @@ * @author Martin Landsmann */ -#ifndef UNIVERSAL_ADDRESS_H -#define UNIVERSAL_ADDRESS_H - #ifdef __cplusplus extern "C" { #endif @@ -170,5 +170,5 @@ void universal_address_print_table(void); } #endif -#endif /* UNIVERSAL_ADDRESS_H */ /** @} */ +#endif /* UNIVERSAL_ADDRESS_H */ diff --git a/sys/include/uri_parser.h b/sys/include/uri_parser.h index d4acda4dbc8c..9bb5b4d663bc 100644 --- a/sys/include/uri_parser.h +++ b/sys/include/uri_parser.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef URI_PARSER_H +#define URI_PARSER_H + /** * @defgroup sys_uri_parser A minimal, non-destructive URI parser * @ingroup sys @@ -24,9 +27,6 @@ * */ -#ifndef URI_PARSER_H -#define URI_PARSER_H - #include #include #include @@ -178,5 +178,5 @@ int uri_parser_split_query(const uri_parser_result_t *uri_parsed, } #endif -#endif /* URI_PARSER_H */ /** @} */ +#endif /* URI_PARSER_H */ diff --git a/sys/include/usb.h b/sys/include/usb.h index 2706d2ec359e..e5e3b3ec05c3 100644 --- a/sys/include/usb.h +++ b/sys/include/usb.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ +#ifndef USB_H +#define USB_H + /** * @defgroup usb USB * @ingroup sys @@ -17,9 +20,6 @@ * @author Koen Zandberg */ -#ifndef USB_H -#define USB_H - #ifdef __cplusplus extern "C" { #endif @@ -271,5 +271,5 @@ typedef enum { } #endif -#endif /* USB_H */ /** @} */ +#endif /* USB_H */ diff --git a/sys/include/usb/cdc.h b/sys/include/usb/cdc.h index d6994b129d4a..02b54fd16604 100644 --- a/sys/include/usb/cdc.h +++ b/sys/include/usb/cdc.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_CDC_H +#define USB_CDC_H + /** * @defgroup usb_cdc CDC - USB communications device class * @ingroup usb @@ -20,9 +23,6 @@ * @author Koen Zandberg */ -#ifndef USB_CDC_H -#define USB_CDC_H - #include #include "usb.h" @@ -301,5 +301,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* USB_CDC_H */ /** @} */ +#endif /* USB_CDC_H */ diff --git a/sys/include/usb/descriptor.h b/sys/include/usb/descriptor.h index b0ed512c04f9..590367bed99f 100644 --- a/sys/include/usb/descriptor.h +++ b/sys/include/usb/descriptor.h @@ -5,6 +5,8 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ +#ifndef USB_DESCRIPTOR_H +#define USB_DESCRIPTOR_H /** * @defgroup usb_descriptor USB descriptors * @ingroup usb @@ -16,8 +18,6 @@ * * @author Koen Zandberg */ -#ifndef USB_DESCRIPTOR_H -#define USB_DESCRIPTOR_H #include #include @@ -229,5 +229,5 @@ static inline bool usb_setup_is_read(usb_setup_t *pkt) } #endif -#endif /* USB_DESCRIPTOR_H */ /** @} */ +#endif /* USB_DESCRIPTOR_H */ diff --git a/sys/include/usb/dfu.h b/sys/include/usb/dfu.h index 0b4646413acb..3e08a2185422 100644 --- a/sys/include/usb/dfu.h +++ b/sys/include/usb/dfu.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_DFU_H +#define USB_DFU_H + /** * @defgroup usb_dfu DFU - USB Device Firmware Upgrade * @ingroup usb @@ -19,9 +22,6 @@ * @author Dylan Laduranty */ -#ifndef USB_DFU_H -#define USB_DFU_H - #include #include "usb.h" @@ -132,5 +132,5 @@ typedef struct __attribute__((packed)) { } #endif -#endif /* USB_DFU_H */ /** @} */ +#endif /* USB_DFU_H */ diff --git a/sys/include/usb/hid.h b/sys/include/usb/hid.h index 516dd7ebf955..6648ddf596e5 100644 --- a/sys/include/usb/hid.h +++ b/sys/include/usb/hid.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_HID_H +#define USB_HID_H + /** * @defgroup usb_hid HID - USB communications device class * @ingroup usb @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef USB_HID_H -#define USB_HID_H - #include #include "usb/hid/hid_usage.h" @@ -513,5 +513,5 @@ typedef struct __attribute__((packed)){ } #endif -#endif /* USB_HID_H */ /** @} */ +#endif /* USB_HID_H */ diff --git a/sys/include/usb/hid/hid_usage.h b/sys/include/usb/hid/hid_usage.h index b98e124ef811..ed7118086729 100644 --- a/sys/include/usb/hid/hid_usage.h +++ b/sys/include/usb/hid/hid_usage.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ +#ifndef USB_HID_HID_USAGE_H +#define USB_HID_HID_USAGE_H + /** * @defgroup usb_hid_usage USB HID usage tables * @ingroup usb_hid @@ -20,9 +23,6 @@ * @see Based on HID Usage Tables 1.21, https://www.usb.org/sites/default/files/hut1_21.pdf */ -#ifndef USB_HID_HID_USAGE_H -#define USB_HID_HID_USAGE_H - #ifdef __cplusplus extern "C" { #endif @@ -2729,5 +2729,5 @@ extern "C" { } #endif -#endif /* USB_HID_HID_USAGE_H */ /** @} */ +#endif /* USB_HID_HID_USAGE_H */ diff --git a/sys/include/usb/msc.h b/sys/include/usb/msc.h index c265bf156a03..87d16ace4b9b 100644 --- a/sys/include/usb/msc.h +++ b/sys/include/usb/msc.h @@ -8,6 +8,9 @@ * */ +#ifndef USB_MSC_H +#define USB_MSC_H + /** * @defgroup usbus_msc USBUS Mass Storage Class functions * @ingroup usb @@ -20,9 +23,6 @@ * @author Dylan Laduranty */ -#ifndef USB_MSC_H -#define USB_MSC_H - #include #include "usb/usbus.h" @@ -100,5 +100,5 @@ extern "C" { } #endif -#endif /* USB_MSC_H */ /** @} */ +#endif /* USB_MSC_H */ diff --git a/sys/include/usb/usbopt.h b/sys/include/usb/usbopt.h index ec976d233540..f045d236c806 100644 --- a/sys/include/usb/usbopt.h +++ b/sys/include/usb/usbopt.h @@ -5,6 +5,9 @@ * Public License v2.1. See the file LICENSE in the top level directory for * more details. */ +#ifndef USB_USBOPT_H +#define USB_USBOPT_H + /** * @defgroup usb_usbopt usbopt - Configuration options for USB APIs * @ingroup usb @@ -19,9 +22,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBOPT_H -#define USB_USBOPT_H - #include #ifdef __cplusplus @@ -120,5 +120,5 @@ typedef enum { } #endif -#endif /* USB_USBOPT_H */ /** @} */ +#endif /* USB_USBOPT_H */ diff --git a/sys/include/usb/usbus.h b/sys/include/usb/usbus.h index 1e41f26c5f18..3cdfc41f7dc5 100644 --- a/sys/include/usb/usbus.h +++ b/sys/include/usb/usbus.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef USB_USBUS_H +#define USB_USBUS_H + /** * @defgroup usb_usbus USBUS device and endpoint manager * @ingroup usb @@ -20,9 +23,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_H -#define USB_USBUS_H - #include #include @@ -789,5 +789,5 @@ static inline bool usbus_urb_isset_flag(usbus_urb_t *urb, #ifdef __cplusplus } #endif -#endif /* USB_USBUS_H */ /** @} */ +#endif /* USB_USBUS_H */ diff --git a/sys/include/usb/usbus/cdc/acm.h b/sys/include/usb/usbus/cdc/acm.h index 103da7ffdb71..f476986ba37f 100644 --- a/sys/include/usb/usbus/cdc/acm.h +++ b/sys/include/usb/usbus/cdc/acm.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_CDC_ACM_H +#define USB_USBUS_CDC_ACM_H + /** * @defgroup usbus_cdc_acm_stdio STDIO over CDC ACM (usbus) * @ingroup sys_stdio @@ -38,9 +41,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CDC_ACM_H -#define USB_USBUS_CDC_ACM_H - #include #include "usb/cdc.h" #include "usb/usbus.h" @@ -226,5 +226,5 @@ void usbus_cdc_acm_set_coding_cb(usbus_cdcacm_device_t *cdcacm, } #endif -#endif /* USB_USBUS_CDC_ACM_H */ /** @} */ +#endif /* USB_USBUS_CDC_ACM_H */ diff --git a/sys/include/usb/usbus/cdc/ecm.h b/sys/include/usb/usbus/cdc/ecm.h index adaec1b732cd..54a40cf23315 100644 --- a/sys/include/usb/usbus/cdc/ecm.h +++ b/sys/include/usb/usbus/cdc/ecm.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_CDC_ECM_H +#define USB_USBUS_CDC_ECM_H + /** * @defgroup usbus_cdc_ecm USBUS CDC ECM - USBUS CDC ethernet control model * @ingroup usb @@ -19,9 +22,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CDC_ECM_H -#define USB_USBUS_CDC_ECM_H - #include #include #include "net/ethernet.h" @@ -163,5 +163,5 @@ void usbus_cdcecm_init(usbus_t *usbus, usbus_cdcecm_device_t *handler); } #endif -#endif /* USB_USBUS_CDC_ECM_H */ /** @} */ +#endif /* USB_USBUS_CDC_ECM_H */ diff --git a/sys/include/usb/usbus/control.h b/sys/include/usb/usbus/control.h index 3afa2ff880a6..7a76477aab32 100644 --- a/sys/include/usb/usbus/control.h +++ b/sys/include/usb/usbus/control.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef USB_USBUS_CONTROL_H +#define USB_USBUS_CONTROL_H + /** * @ingroup usb_usbus * @brief USBUS control endpoint module @@ -18,9 +21,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_CONTROL_H -#define USB_USBUS_CONTROL_H - /** * @brief Number of IN EPs required for the control interface */ @@ -162,5 +162,5 @@ uint8_t *usbus_control_get_out_data(usbus_t *usbus, size_t *len); #ifdef __cplusplus } #endif -#endif /* USB_USBUS_CONTROL_H */ /** @} */ +#endif /* USB_USBUS_CONTROL_H */ diff --git a/sys/include/usb/usbus/dfu.h b/sys/include/usb/usbus/dfu.h index 6751b7ab92ea..3baa8b997b0d 100644 --- a/sys/include/usb/usbus/dfu.h +++ b/sys/include/usb/usbus/dfu.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_DFU_H +#define USB_USBUS_DFU_H + /** * @defgroup usbus_dfu USBUS DFU - USB Device Firmware Upgrade * @ingroup usb @@ -16,9 +19,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_DFU_H -#define USB_USBUS_DFU_H - #include "usb/dfu.h" #include "riotboot/flashwrite.h" @@ -59,5 +59,5 @@ void usbus_dfu_init(usbus_t *usbus, usbus_dfu_device_t *handler, unsigned mode); } #endif -#endif /* USB_USBUS_DFU_H */ /** @} */ +#endif /* USB_USBUS_DFU_H */ diff --git a/sys/include/usb/usbus/fmt.h b/sys/include/usb/usbus/fmt.h index 75d6da411db5..f68847f33a35 100644 --- a/sys/include/usb/usbus/fmt.h +++ b/sys/include/usb/usbus/fmt.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef USB_USBUS_FMT_H +#define USB_USBUS_FMT_H + /** * @defgroup usb_usbus_fmt USBUS descriptor formatter functions * @ingroup usb_usbus @@ -18,9 +21,6 @@ * @author Koen Zandberg */ -#ifndef USB_USBUS_FMT_H -#define USB_USBUS_FMT_H - #include #include #include "usb/usbus.h" @@ -50,5 +50,5 @@ size_t usbus_fmt_descriptor_dev(usbus_t *usbus); #ifdef __cplusplus } #endif -#endif /* USB_USBUS_FMT_H */ /** @} */ +#endif /* USB_USBUS_FMT_H */ diff --git a/sys/include/usb/usbus/hid.h b/sys/include/usb/usbus/hid.h index 7d0f76195b3a..f0e35be257db 100644 --- a/sys/include/usb/usbus/hid.h +++ b/sys/include/usb/usbus/hid.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_HID_H +#define USB_USBUS_HID_H + /** * @defgroup usbus_hid USBUS HID * @ingroup usb @@ -24,9 +27,6 @@ * @author Nils Ollrogge */ -#ifndef USB_USBUS_HID_H -#define USB_USBUS_HID_H - #include #include "usb/usbus.h" @@ -106,5 +106,5 @@ void usbus_hid_init(usbus_t *usbus, usbus_hid_device_t *hid, } #endif -#endif /* USB_USBUS_HID_H */ /** @} */ +#endif /* USB_USBUS_HID_H */ diff --git a/sys/include/usb/usbus/hid_io.h b/sys/include/usb/usbus/hid_io.h index a436343c6658..7a2a47aeb8bb 100644 --- a/sys/include/usb/usbus/hid_io.h +++ b/sys/include/usb/usbus/hid_io.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_HID_IO_H +#define USB_USBUS_HID_IO_H + /** * @defgroup usbus_hid_io USBUS HID IO * @ingroup usb_hid @@ -19,9 +22,6 @@ * @author Nils Ollrogge */ -#ifndef USB_USBUS_HID_IO_H -#define USB_USBUS_HID_IO_H - #include #include @@ -96,5 +96,5 @@ void usb_hid_io_init(usbus_t *usbus, const uint8_t *report_desc, size_t report_d } #endif -#endif /* USB_USBUS_HID_IO_H */ /** @} */ +#endif /* USB_USBUS_HID_IO_H */ diff --git a/sys/include/usb/usbus/msc.h b/sys/include/usb/usbus/msc.h index 967053083105..e1122634d48a 100644 --- a/sys/include/usb/usbus/msc.h +++ b/sys/include/usb/usbus/msc.h @@ -8,6 +8,9 @@ * */ +#ifndef USB_USBUS_MSC_H +#define USB_USBUS_MSC_H + /** * @ingroup usbus_msc * @@ -19,9 +22,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_MSC_H -#define USB_USBUS_MSC_H - #include #include "usb/usbus.h" #include "usb/usbus/msc/scsi.h" @@ -131,5 +131,5 @@ int usbus_msc_remove_lun(usbus_t *usbus, mtd_dev_t *dev); } #endif -#endif /* USB_USBUS_MSC_H */ /** @} */ +#endif /* USB_USBUS_MSC_H */ diff --git a/sys/include/usb/usbus/msc/scsi.h b/sys/include/usb/usbus/msc/scsi.h index 68e636f335b2..d5727a8cac81 100644 --- a/sys/include/usb/usbus/msc/scsi.h +++ b/sys/include/usb/usbus/msc/scsi.h @@ -6,6 +6,9 @@ * more details. */ +#ifndef USB_USBUS_MSC_SCSI_H +#define USB_USBUS_MSC_SCSI_H + /** * @ingroup usbus_msc * @@ -17,9 +20,6 @@ * @author Dylan Laduranty */ -#ifndef USB_USBUS_MSC_SCSI_H -#define USB_USBUS_MSC_SCSI_H - #include "byteorder.h" #ifdef __cplusplus @@ -291,5 +291,5 @@ void scsi_gen_csw(usbus_handler_t *handler, cbw_info_t *cmd); } #endif -#endif /* USB_USBUS_MSC_SCSI_H */ /** @} */ +#endif /* USB_USBUS_MSC_SCSI_H */ diff --git a/sys/include/usb_board_reset.h b/sys/include/usb_board_reset.h index d189ae816cde..cb51eaeb3497 100644 --- a/sys/include/usb_board_reset.h +++ b/sys/include/usb_board_reset.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef USB_BOARD_RESET_H +#define USB_BOARD_RESET_H + /** * @defgroup sys_usb_board_reset Board reset via USB CDC ACM * @ingroup sys @@ -17,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef USB_BOARD_RESET_H -#define USB_BOARD_RESET_H - #ifdef __cplusplus extern "C" { #endif @@ -38,5 +38,5 @@ void usb_board_reset_in_bootloader(void); } #endif -#endif /* USB_BOARD_RESET_H */ /** @} */ +#endif /* USB_BOARD_RESET_H */ diff --git a/sys/include/usb_board_reset_internal.h b/sys/include/usb_board_reset_internal.h index 70e1e832b3da..9764d8ea364c 100644 --- a/sys/include/usb_board_reset_internal.h +++ b/sys/include/usb_board_reset_internal.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef USB_BOARD_RESET_INTERNAL_H +#define USB_BOARD_RESET_INTERNAL_H + /** * @defgroup sys_usb_board_reset_internal Board reset via USB CDC ACM internals * @ingroup sys_usb_board_reset @@ -17,9 +20,6 @@ * @author Alexandre Abadie */ -#ifndef USB_BOARD_RESET_INTERNAL_H -#define USB_BOARD_RESET_INTERNAL_H - #ifdef __cplusplus extern "C" { #endif @@ -47,5 +47,5 @@ int usb_board_reset_coding_cb(usbus_cdcacm_device_t *cdcacm, } #endif -#endif /* USB_BOARD_RESET_INTERNAL_H */ /** @} */ +#endif /* USB_BOARD_RESET_INTERNAL_H */ diff --git a/sys/include/ut_process.h b/sys/include/ut_process.h index ece1578b97df..567c0f097bc7 100644 --- a/sys/include/ut_process.h +++ b/sys/include/ut_process.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef UT_PROCESS_H +#define UT_PROCESS_H /** * @defgroup sys_ut_process URI template processor * @ingroup sys @@ -23,8 +25,6 @@ * * @author Martine Lenders */ -#ifndef UT_PROCESS_H -#define UT_PROCESS_H #include #include @@ -97,5 +97,5 @@ static inline int ut_process_str_expand(const char *ut, } #endif -#endif /* UT_PROCESS_H */ /** @} */ +#endif /* UT_PROCESS_H */ diff --git a/sys/include/utlist.h b/sys/include/utlist.h index b334aa68a070..90b4a5799563 100644 --- a/sys/include/utlist.h +++ b/sys/include/utlist.h @@ -21,6 +21,9 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef UTLIST_H +#define UTLIST_H + /** * @defgroup sys_ut utlist * @ingroup sys @@ -34,9 +37,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * http://troydhanson.github.io/uthash/utlist.html */ -#ifndef UTLIST_H -#define UTLIST_H - /** @brief Version number */ #define UTLIST_VERSION 1.9.9 #include @@ -868,5 +868,5 @@ do { } #endif -#endif /* UTLIST_H */ /** @} */ +#endif /* UTLIST_H */ diff --git a/sys/include/uuid.h b/sys/include/uuid.h index 92c35e0382a7..e59d10f80f01 100644 --- a/sys/include/uuid.h +++ b/sys/include/uuid.h @@ -7,6 +7,9 @@ * directory for more details. */ +#ifndef UUID_H +#define UUID_H + /** * @defgroup sys_uuid RFC 4122 compliant UUID's * @ingroup sys @@ -23,9 +26,6 @@ * @author Koen Zandberg */ -#ifndef UUID_H -#define UUID_H - #include #include #include @@ -161,5 +161,5 @@ int uuid_from_string(uuid_t *uuid, const char *str); #ifdef __cplusplus } #endif -#endif /* UUID_H */ /** @} */ +#endif /* UUID_H */ diff --git a/sys/include/vfs.h b/sys/include/vfs.h index f213b444f57b..a9b79a8facf5 100644 --- a/sys/include/vfs.h +++ b/sys/include/vfs.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef VFS_H +#define VFS_H + /** * @defgroup sys_vfs Virtual File System (VFS) layer * @ingroup sys @@ -50,9 +53,6 @@ * @author Joakim Nohlgård */ -#ifndef VFS_H -#define VFS_H - #include #include /* for struct stat */ #include /* for off_t etc. */ @@ -1228,6 +1228,6 @@ int vfs_sysop_stat_from_fstat(vfs_mount_t *mountp, } #endif -#endif /* VFS_H */ - /** @} */ + +#endif /* VFS_H */ diff --git a/sys/include/vfs_default.h b/sys/include/vfs_default.h index f314b5b16072..6e7744e05f54 100644 --- a/sys/include/vfs_default.h +++ b/sys/include/vfs_default.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef VFS_DEFAULT_H +#define VFS_DEFAULT_H + /** * @ingroup sys_vfs * @brief VFS default mount points @@ -17,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef VFS_DEFAULT_H -#define VFS_DEFAULT_H - #include "board.h" #include "modules.h" #if IS_USED(MODULE_VFS) || DOXYGEN @@ -83,6 +83,6 @@ extern "C" { } #endif -#endif /* VFS_DEFAULT_H */ - /** @} */ + +#endif /* VFS_DEFAULT_H */ diff --git a/sys/include/vfs_util.h b/sys/include/vfs_util.h index d0eb06434e47..78568ffd403d 100644 --- a/sys/include/vfs_util.h +++ b/sys/include/vfs_util.h @@ -6,6 +6,9 @@ * details. */ +#ifndef VFS_UTIL_H +#define VFS_UTIL_H + /** * @defgroup sys_vfs_util VFS helper functions * @ingroup sys_vfs @@ -17,9 +20,6 @@ * @author Benjamin Valentin */ -#ifndef VFS_UTIL_H -#define VFS_UTIL_H - #include #include @@ -144,5 +144,5 @@ int vfs_unlink_recursive(const char *root, char *path_buf, size_t max_size); } #endif -#endif /* VFS_UTIL_H */ /** @} */ +#endif /* VFS_UTIL_H */ diff --git a/sys/include/volatile_utils.h b/sys/include/volatile_utils.h index c9dfa55c8ef2..fb4bf66bfb71 100644 --- a/sys/include/volatile_utils.h +++ b/sys/include/volatile_utils.h @@ -6,6 +6,9 @@ * details. */ +#ifndef VOLATILE_UTILS_H +#define VOLATILE_UTILS_H + /** * @defgroup sys_atomic_utils_volatile Helpers for volatile accesses * @ingroup sys_atomic_utils @@ -25,9 +28,6 @@ * @warning In most cases using this over @ref sys_atomic_utils is a bug! */ -#ifndef VOLATILE_UTILS_H -#define VOLATILE_UTILS_H - #include #ifdef __cplusplus @@ -351,5 +351,5 @@ static inline uint64_t volatile_fetch_and_u64(volatile uint64_t *dest, } #endif -#endif /* VOLATILE_UTILS_H */ /** @} */ +#endif /* VOLATILE_UTILS_H */ diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 211dbd446409..cfebc066724d 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -7,6 +7,8 @@ * directory for more details. */ +#ifndef XTIMER_H +#define XTIMER_H /** * @defgroup sys_xtimer xtimer high level timer abstraction layer (deprecated) * @ingroup sys @@ -39,8 +41,6 @@ * @author Kaspar Schleiser * @author Joakim Nohlgård */ -#ifndef XTIMER_H -#define XTIMER_H #include #include diff --git a/sys/include/xtimer/implementation.h b/sys/include/xtimer/implementation.h index 0e30b8a54dfe..a8be97083142 100644 --- a/sys/include/xtimer/implementation.h +++ b/sys/include/xtimer/implementation.h @@ -8,6 +8,8 @@ * directory for more details. */ +#ifndef XTIMER_IMPLEMENTATION_H +#define XTIMER_IMPLEMENTATION_H /** * @ingroup sys_xtimer @@ -20,8 +22,6 @@ * @author Josua Arndt * */ -#ifndef XTIMER_IMPLEMENTATION_H -#define XTIMER_IMPLEMENTATION_H #ifndef XTIMER_H #error "Do not include this file directly! Use xtimer.h instead" @@ -335,5 +335,5 @@ static inline bool xtimer_is_set(const xtimer_t *timer) } #endif -#endif /* XTIMER_IMPLEMENTATION_H */ /** @} */ +#endif /* XTIMER_IMPLEMENTATION_H */ diff --git a/sys/include/xtimer/tick_conversion.h b/sys/include/xtimer/tick_conversion.h index 924f8d327d06..58532b82e157 100644 --- a/sys/include/xtimer/tick_conversion.h +++ b/sys/include/xtimer/tick_conversion.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef XTIMER_TICK_CONVERSION_H +#define XTIMER_TICK_CONVERSION_H + /** * @ingroup sys_xtimer * @@ -15,9 +18,6 @@ * @author Joakim Nohlgård */ -#ifndef XTIMER_TICK_CONVERSION_H -#define XTIMER_TICK_CONVERSION_H - #ifndef XTIMER_H #error "Do not include this file directly! Use xtimer.h instead" #endif @@ -135,5 +135,5 @@ static inline uint64_t _xtimer_usec_from_ticks64(uint64_t ticks) { } #endif -#endif /* XTIMER_TICK_CONVERSION_H */ /** @} */ +#endif /* XTIMER_TICK_CONVERSION_H */ diff --git a/sys/include/zptr.h b/sys/include/zptr.h index c6b7183c71f7..60df58233e80 100644 --- a/sys/include/zptr.h +++ b/sys/include/zptr.h @@ -6,6 +6,9 @@ * directory for more details. */ +#ifndef ZPTR_H +#define ZPTR_H + /** * @defgroup sys_util_zptr Pointer Compression * @ingroup sys @@ -54,9 +57,6 @@ * @author Kaspar Schleiser */ -#ifndef ZPTR_H -#define ZPTR_H - #include #include #include @@ -135,5 +135,5 @@ static inline void *zptrd(zptr_t zptr) { return (void *)zptr; } } #endif -#endif /* ZPTR_H */ /** @} */ +#endif /* ZPTR_H */ diff --git a/sys/include/ztimer.h b/sys/include/ztimer.h index a49aa9a5193a..f2c305bf8967 100644 --- a/sys/include/ztimer.h +++ b/sys/include/ztimer.h @@ -5,6 +5,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef ZTIMER_H +#define ZTIMER_H + /** * @defgroup sys_ztimer ztimer high level timer abstraction layer * @ingroup sys @@ -259,9 +262,6 @@ * @author Joakim Nohlgård */ -#ifndef ZTIMER_H -#define ZTIMER_H - #include #include "mbox.h" @@ -895,5 +895,5 @@ extern ztimer_clock_t *const ZTIMER_MSEC_BASE; } #endif -#endif /* ZTIMER_H */ /** @} */ +#endif /* ZTIMER_H */ diff --git a/sys/include/ztimer/config.h b/sys/include/ztimer/config.h index 620594f72a70..02f26fe5028f 100644 --- a/sys/include/ztimer/config.h +++ b/sys/include/ztimer/config.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_CONFIG_H +#define ZTIMER_CONFIG_H + /** * @ingroup sys_ztimer * @{ @@ -17,9 +20,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONFIG_H -#define ZTIMER_CONFIG_H - #include "board.h" #include "periph_conf.h" @@ -202,5 +202,5 @@ extern "C" { } #endif -#endif /* ZTIMER_CONFIG_H */ /** @} */ +#endif /* ZTIMER_CONFIG_H */ diff --git a/sys/include/ztimer/convert.h b/sys/include/ztimer/convert.h index 4dacfa8ed8ae..4d3587ec4a8f 100644 --- a/sys/include/ztimer/convert.h +++ b/sys/include/ztimer/convert.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_CONVERT_H +#define ZTIMER_CONVERT_H + /** * @defgroup sys_ztimer_convert ztimer frequency conversion modules * @ingroup sys_ztimer @@ -27,9 +30,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_H -#define ZTIMER_CONVERT_H - #include "ztimer.h" #ifdef __cplusplus @@ -93,5 +93,5 @@ void ztimer_convert_stop(ztimer_clock_t *clock); } #endif -#endif /* ZTIMER_CONVERT_H */ /** @} */ +#endif /* ZTIMER_CONVERT_H */ diff --git a/sys/include/ztimer/convert_frac.h b/sys/include/ztimer/convert_frac.h index 753714858f99..705194eb171f 100644 --- a/sys/include/ztimer/convert_frac.h +++ b/sys/include/ztimer/convert_frac.h @@ -7,6 +7,8 @@ * details. */ +#ifndef ZTIMER_CONVERT_FRAC_H +#define ZTIMER_CONVERT_FRAC_H /** * @defgroup sys_ztimer_convert_frac ztimer_convert_frac frequency conversion layer * @ingroup sys_ztimer_convert @@ -25,8 +27,6 @@ * @author Kaspar Schleiser * @author Joakim Nohlgård */ -#ifndef ZTIMER_CONVERT_FRAC_H -#define ZTIMER_CONVERT_FRAC_H #include #include "ztimer.h" @@ -88,5 +88,5 @@ void ztimer_convert_frac_change_rate(ztimer_convert_frac_t *self, } #endif -#endif /* ZTIMER_CONVERT_FRAC_H */ /** @} */ +#endif /* ZTIMER_CONVERT_FRAC_H */ diff --git a/sys/include/ztimer/convert_muldiv64.h b/sys/include/ztimer/convert_muldiv64.h index 5926daf6aa55..4a2c04ee9940 100644 --- a/sys/include/ztimer/convert_muldiv64.h +++ b/sys/include/ztimer/convert_muldiv64.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_CONVERT_MULDIV64_H +#define ZTIMER_CONVERT_MULDIV64_H + /** * @defgroup sys_ztimer_convert_muldiv64 plain 64bit carithmetic * @ingroup sys_ztimer_convert @@ -46,9 +49,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_MULDIV64_H -#define ZTIMER_CONVERT_MULDIV64_H - #include "ztimer.h" #include "ztimer/convert.h" @@ -81,5 +81,5 @@ void ztimer_convert_muldiv64_init( } #endif -#endif /* ZTIMER_CONVERT_MULDIV64_H */ /** @} */ +#endif /* ZTIMER_CONVERT_MULDIV64_H */ diff --git a/sys/include/ztimer/convert_shift.h b/sys/include/ztimer/convert_shift.h index 038122a64802..a3ef11bc934c 100644 --- a/sys/include/ztimer/convert_shift.h +++ b/sys/include/ztimer/convert_shift.h @@ -6,6 +6,8 @@ * details. */ +#ifndef ZTIMER_CONVERT_SHIFT_H +#define ZTIMER_CONVERT_SHIFT_H /** * @defgroup sys_ztimer_convert_shift conversion using shifts * @ingroup sys_ztimer_convert @@ -21,8 +23,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER_CONVERT_SHIFT_H -#define ZTIMER_CONVERT_SHIFT_H #include @@ -67,5 +67,5 @@ void ztimer_convert_shift_up_init(ztimer_convert_shift_t *clock, } #endif -#endif /* ZTIMER_CONVERT_SHIFT_H */ /** @} */ +#endif /* ZTIMER_CONVERT_SHIFT_H */ diff --git a/sys/include/ztimer/mock.h b/sys/include/ztimer/mock.h index a8bf91fcd5e3..3d2445455921 100644 --- a/sys/include/ztimer/mock.h +++ b/sys/include/ztimer/mock.h @@ -7,6 +7,9 @@ * details. */ +#ifndef ZTIMER_MOCK_H +#define ZTIMER_MOCK_H + /** * @defgroup sys_ztimer_mock ztimer mock clock backend * @ingroup sys_ztimer @@ -24,9 +27,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_MOCK_H -#define ZTIMER_MOCK_H - #include #include "ztimer.h" @@ -96,5 +96,5 @@ void ztimer_mock_init(ztimer_mock_t *self, unsigned width); } #endif -#endif /* ZTIMER_MOCK_H */ /** @} */ +#endif /* ZTIMER_MOCK_H */ diff --git a/sys/include/ztimer/overhead.h b/sys/include/ztimer/overhead.h index faaef4ba9a8c..a50d214eb33d 100644 --- a/sys/include/ztimer/overhead.h +++ b/sys/include/ztimer/overhead.h @@ -8,6 +8,9 @@ * details. */ +#ifndef ZTIMER_OVERHEAD_H +#define ZTIMER_OVERHEAD_H + /** * @defgroup sys_ztimer_overhead ztimer overhead utility * @ingroup sys_ztimer @@ -21,9 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_OVERHEAD_H -#define ZTIMER_OVERHEAD_H - #include "ztimer.h" #ifdef __cplusplus @@ -54,5 +54,5 @@ int32_t ztimer_overhead_set(ztimer_clock_t *clock, uint32_t base); */ int32_t ztimer_overhead_sleep(ztimer_clock_t *clock, uint32_t base); -#endif /* ZTIMER_OVERHEAD_H */ /** @} */ +#endif /* ZTIMER_OVERHEAD_H */ diff --git a/sys/include/ztimer/periodic.h b/sys/include/ztimer/periodic.h index 8cafe525b46d..c71208e68fad 100644 --- a/sys/include/ztimer/periodic.h +++ b/sys/include/ztimer/periodic.h @@ -7,6 +7,9 @@ * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ +#ifndef ZTIMER_PERIODIC_H +#define ZTIMER_PERIODIC_H + /** * @ingroup sys_ztimer * @brief Periodic ztimer API @@ -66,9 +69,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIODIC_H -#define ZTIMER_PERIODIC_H - #include #include @@ -156,5 +156,5 @@ void ztimer_periodic_stop(ztimer_periodic_t *timer); } #endif -#endif /* ZTIMER_PERIODIC_H */ /** @} */ +#endif /* ZTIMER_PERIODIC_H */ diff --git a/sys/include/ztimer/periph_ptp.h b/sys/include/ztimer/periph_ptp.h index b968f1f8a451..8541c401afa2 100644 --- a/sys/include/ztimer/periph_ptp.h +++ b/sys/include/ztimer/periph_ptp.h @@ -7,6 +7,9 @@ * details. */ +#ifndef ZTIMER_PERIPH_PTP_H +#define ZTIMER_PERIPH_PTP_H + /** * @defgroup sys_ztimer_periph_ptp ztimer periph/ptp backend * @ingroup sys_ztimer @@ -22,9 +25,6 @@ * @author Jana Eisoldt */ -#ifndef ZTIMER_PERIPH_PTP_H -#define ZTIMER_PERIPH_PTP_H - #include "ztimer.h" #ifdef __cplusplus @@ -50,5 +50,5 @@ void ztimer_periph_ptp_init(ztimer_periph_ptp_t *clock); } #endif -#endif /* ZTIMER_PERIPH_PTP_H */ /** @} */ +#endif /* ZTIMER_PERIPH_PTP_H */ diff --git a/sys/include/ztimer/periph_rtc.h b/sys/include/ztimer/periph_rtc.h index 40b7bc3fb49e..6812459cf26d 100644 --- a/sys/include/ztimer/periph_rtc.h +++ b/sys/include/ztimer/periph_rtc.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_PERIPH_RTC_H +#define ZTIMER_PERIPH_RTC_H + /** * @defgroup sys_ztimer_periph_rtc ztimer periph/rtc backend * @ingroup sys_ztimer @@ -21,9 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_RTC_H -#define ZTIMER_PERIPH_RTC_H - #include "ztimer.h" #ifdef __cplusplus @@ -48,5 +48,5 @@ void ztimer_periph_rtc_init(ztimer_periph_rtc_t *clock); } #endif -#endif /* ZTIMER_PERIPH_RTC_H */ /** @} */ +#endif /* ZTIMER_PERIPH_RTC_H */ diff --git a/sys/include/ztimer/periph_rtt.h b/sys/include/ztimer/periph_rtt.h index 2868285f8dce..64ea7dc123d6 100644 --- a/sys/include/ztimer/periph_rtt.h +++ b/sys/include/ztimer/periph_rtt.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_PERIPH_RTT_H +#define ZTIMER_PERIPH_RTT_H + /** * @defgroup sys_ztimer_periph_rtt ztimer periph/rtt backend * @ingroup sys_ztimer @@ -21,9 +24,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_RTT_H -#define ZTIMER_PERIPH_RTT_H - #include "ztimer.h" #ifdef __cplusplus @@ -49,5 +49,5 @@ void ztimer_periph_rtt_init(ztimer_periph_rtt_t *clock); } #endif -#endif /* ZTIMER_PERIPH_RTT_H */ /** @} */ +#endif /* ZTIMER_PERIPH_RTT_H */ diff --git a/sys/include/ztimer/periph_timer.h b/sys/include/ztimer/periph_timer.h index 21b8277a19a5..9960c4ec534f 100644 --- a/sys/include/ztimer/periph_timer.h +++ b/sys/include/ztimer/periph_timer.h @@ -6,6 +6,9 @@ * details. */ +#ifndef ZTIMER_PERIPH_TIMER_H +#define ZTIMER_PERIPH_TIMER_H + /** * @defgroup sys_ztimer_periph_timer ztimer periph/timer backend * @ingroup sys_ztimer @@ -24,9 +27,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER_PERIPH_TIMER_H -#define ZTIMER_PERIPH_TIMER_H - #include "ztimer.h" #include "periph/timer.h" @@ -60,5 +60,5 @@ void ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev, } #endif -#endif /* ZTIMER_PERIPH_TIMER_H */ /** @} */ +#endif /* ZTIMER_PERIPH_TIMER_H */ diff --git a/sys/include/ztimer/stopwatch.h b/sys/include/ztimer/stopwatch.h index dfba6f95d7b1..0ba9a2004455 100644 --- a/sys/include/ztimer/stopwatch.h +++ b/sys/include/ztimer/stopwatch.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef ZTIMER_STOPWATCH_H +#define ZTIMER_STOPWATCH_H /** * @defgroup sys_ztimer_stopwatch ztimer stop watch * @ingroup sys_ztimer @@ -14,8 +16,6 @@ * @author Benjamin Valentin * @{ */ -#ifndef ZTIMER_STOPWATCH_H -#define ZTIMER_STOPWATCH_H #include "ztimer.h" @@ -98,5 +98,5 @@ static inline void ztimer_stopwatch_stop(ztimer_stopwatch_t *timer) } #endif -#endif /* ZTIMER_STOPWATCH_H */ /** @} */ +#endif /* ZTIMER_STOPWATCH_H */ diff --git a/sys/include/ztimer/xtimer_compat.h b/sys/include/ztimer/xtimer_compat.h index daf9cab34c3a..954a595fe6fe 100644 --- a/sys/include/ztimer/xtimer_compat.h +++ b/sys/include/ztimer/xtimer_compat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef ZTIMER_XTIMER_COMPAT_H +#define ZTIMER_XTIMER_COMPAT_H /** * @defgroup sys_ztimer_xtimer_compat ztimer_xtimer_compat: xtimer wrapper * @ingroup sys_ztimer @@ -17,8 +19,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER_XTIMER_COMPAT_H -#define ZTIMER_XTIMER_COMPAT_H #include #include diff --git a/sys/include/ztimer64.h b/sys/include/ztimer64.h index d7e8f92c8559..ff95ab1f09e0 100644 --- a/sys/include/ztimer64.h +++ b/sys/include/ztimer64.h @@ -8,6 +8,9 @@ * directory for more details. */ +#ifndef ZTIMER64_H +#define ZTIMER64_H + /** * @ingroup sys_ztimer * @defgroup sys_ztimer64 ztimer 64bit version @@ -61,9 +64,6 @@ * @author Kaspar Schleiser */ -#ifndef ZTIMER64_H -#define ZTIMER64_H - #include #include "irq.h" @@ -531,5 +531,5 @@ int64_t ztimer64_overhead(ztimer64_clock_t *clock, uint64_t base); } #endif -#endif /* ZTIMER64_H */ /** @} */ +#endif /* ZTIMER64_H */ diff --git a/sys/include/ztimer64/xtimer_compat.h b/sys/include/ztimer64/xtimer_compat.h index 3f10bbd57fe6..f860c308585c 100644 --- a/sys/include/ztimer64/xtimer_compat.h +++ b/sys/include/ztimer64/xtimer_compat.h @@ -6,6 +6,8 @@ * directory for more details. */ +#ifndef ZTIMER64_XTIMER_COMPAT_H +#define ZTIMER64_XTIMER_COMPAT_H /** * @defgroup sys_ztimer64_xtimer_compat ztimer64_xtimer_compat: 64 Bit xtimer wrapper * @ingroup sys_ztimer64 @@ -17,8 +19,6 @@ * * @author Kaspar Schleiser */ -#ifndef ZTIMER64_XTIMER_COMPAT_H -#define ZTIMER64_XTIMER_COMPAT_H #include #include