1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 17:13:50 +01:00

examples: replace header guards with #pragma once

This commit is contained in:
KSKNico 2025-05-28 15:50:48 +02:00
parent cd8bb88381
commit a28a905d73
11 changed files with 22 additions and 50 deletions

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -17,9 +19,6 @@
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
*
*/
#ifndef CUSTOM_ATCA_PARAMS_H
#define CUSTOM_ATCA_PARAMS_H
#include "cryptoauthlib.h"
#include "psa/crypto.h"
@ -121,5 +120,4 @@ extern "C" {
}
#endif
#endif /* CUSTOM_ATCA_PARAMS_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -17,9 +19,6 @@
* @}
*/
#ifndef CONTROL_H
#define CONTROL_H
#ifdef __cplusplus
extern "C" {
#endif
@ -115,5 +114,3 @@ uint32_t uwb_core_rng_req_remaining(void);
#ifdef __cplusplus
}
#endif
#endif /* CONTROL_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -19,9 +21,6 @@
#include <stdio.h>
#ifndef C_FUNCTIONS_H
#define C_FUNCTIONS_H
/*
* all headers defining c functions must be marked as extern "C" when included
* into c++ sources
@ -51,4 +50,3 @@ int day_of_week(int day, int month, int year);
#endif
/** @} */
#endif /* C_FUNCTIONS_H */

View File

@ -7,6 +7,8 @@
* directory for more details.
*/
#pragma once
/**
* @defgroup
* @brief
@ -20,9 +22,6 @@
* @author DangNhat Pham-Huu <51002279@stu.hcmut.edu.vn>
*/
#ifndef CPP_CLASS_H
#define CPP_CLASS_H
#include <cstdio>
class cpp_class
@ -60,4 +59,3 @@ private:
};
/** @} */
#endif /* CPP_CLASS_H */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -16,9 +18,6 @@
* @author Ken Bannister <kb2ma@runbox.com>
*/
#ifndef GCOAP_EXAMPLE_H
#define GCOAP_EXAMPLE_H
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -53,5 +52,4 @@ void notify_observers(void);
}
#endif
#endif /* GCOAP_EXAMPLE_H */
/** @} */

View File

@ -6,6 +6,8 @@
* details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -16,9 +18,6 @@
* @author Ken Bannister <kb2ma@runbox.com>
*/
#ifndef GCOAP_EXAMPLE_H
#define GCOAP_EXAMPLE_H
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -61,5 +60,4 @@ void notify_observers(void);
}
#endif
#endif /* GCOAP_EXAMPLE_H */
/** @} */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -18,9 +20,6 @@
* @}
*/
#ifndef TINYDTLS_KEYS_H
#define TINYDTLS_KEYS_H
#ifdef __cplusplus
extern "C" {
#endif
@ -59,5 +58,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
#ifdef __cplusplus
}
#endif
#endif /* TINYDTLS_KEYS_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -18,9 +20,6 @@
* @}
*/
#ifndef TINYDTLS_KEYS_H
#define TINYDTLS_KEYS_H
#ifdef __cplusplus
extern "C" {
#endif
@ -62,5 +61,3 @@ static const unsigned char ecdsa_pub_key_y[] = {
#ifdef __cplusplus
}
#endif
#endif /* TINYDTLS_KEYS_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -18,9 +20,6 @@
* @}
*/
#ifndef DTLS_CLIENT_CREDENTIALS_H
#define DTLS_CLIENT_CREDENTIALS_H
#ifdef __cplusplus
extern "C" {
#endif
@ -135,5 +134,3 @@ static const unsigned char known_server_public_key_1_y[] = {
#ifdef __cplusplus
}
#endif
#endif /* DTLS_CLIENT_CREDENTIALS_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -18,9 +20,6 @@
* @}
*/
#ifndef DTLS_SERVER_CREDENTIALS_H
#define DTLS_SERVER_CREDENTIALS_H
#ifdef __cplusplus
extern "C" {
#endif
@ -131,5 +130,3 @@ static const unsigned char known_client_public_key_0_y[] = {
#ifdef __cplusplus
}
#endif
#endif /* DTLS_SERVER_CREDENTIALS_H */

View File

@ -6,6 +6,8 @@
* directory for more details.
*/
#pragma once
/**
* @ingroup examples
* @{
@ -18,9 +20,6 @@
* @}
*/
#ifndef CREDENTIALS_H
#define CREDENTIALS_H
#ifdef __cplusplus
extern "C" {
#endif
@ -75,5 +74,3 @@ static const uint8_t server_rpk_pub[] = {
#ifdef __cplusplus
}
#endif
#endif /* CREDENTIALS_H */