1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys: fix include headers guards

This commit is contained in:
Laurent Navet 2016-10-26 21:53:58 +02:00
parent 5090e805e6
commit 5fe337bc6c
24 changed files with 80 additions and 74 deletions

View File

@ -20,8 +20,8 @@
* @author Simon Brummer <brummer.simon@googlemail.com>
*/
#ifndef __COLOR_H
#define __COLOR_H
#ifndef COLOR_H
#define COLOR_H
#include <stdint.h>
@ -137,5 +137,5 @@ void color_rgb_complementary(const color_rgb_t *rgb, color_rgb_t *comp_rgb);
}
#endif
#endif /* __COLOR_H */
#endif /* COLOR_H */
/** @} */

View File

@ -24,8 +24,8 @@
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
*/
#ifndef __OD_H_
#define __OD_H_
#ifndef OD_H
#define OD_H
#ifdef __cplusplus
extern "C" {
@ -157,5 +157,5 @@ static inline void od_hex_dump(const void *data, size_t data_len, uint8_t width)
}
#endif
#endif /* __OD_H_ */
#endif /* OD_H */
/** @} */

View File

@ -32,8 +32,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*/
#ifndef __PIPE__H
#define __PIPE__H
#ifndef PIPE__H
#define PIPE__H
#include <sys/types.h>
@ -121,7 +121,7 @@ void pipe_free(pipe_t *rp);
}
#endif
#endif
#endif /* PIPE__H */
/**
* @}
*/

View File

@ -20,8 +20,8 @@
* @author Oliver Hahm <oliver.hahm@inria.fr>
*/
#ifndef __PS_H
#define __PS_H
#ifndef PS_H
#define PS_H
#ifdef __cplusplus
extern "C" {
@ -36,5 +36,5 @@ void ps(void);
}
#endif
#endif /* __PS_H */
#endif /* PS_H */
/** @} */

View File

@ -17,8 +17,8 @@
* @brief Shell interface definition
*/
#ifndef __SHELL_H
#define __SHELL_H
#ifndef SHELL_H
#define SHELL_H
#include <stdint.h>
@ -78,5 +78,5 @@ void shell_run(const shell_command_t *commands, char *line_buf, int len) NORETUR
}
#endif
#endif /* __SHELL_H */
#endif /* SHELL_H */
/** @} */

View File

@ -17,8 +17,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef __SHELL_COMMANDS_H
#define __SHELL_COMMANDS_H
#ifndef SHELL_COMMANDS_H
#define SHELL_COMMANDS_H
#include "shell.h"
@ -38,5 +38,5 @@ extern const shell_command_t _shell_command_list[];
}
#endif
#endif /* __SHELL_COMMANDS_H */
#endif /* SHELL_COMMANDS_H */
/** @} */

View File

@ -18,8 +18,8 @@
* @brief Utility library for comparing and computing timestamps
*/
#ifndef __TIMEX_H
#define __TIMEX_H
#ifndef TIMEX_H
#define TIMEX_H
#include <stdint.h>
#include <inttypes.h>
@ -184,4 +184,4 @@ const char *timex_to_str(timex_t t, char *timestamp);
#endif
/** @} */
#endif /* __TIMEX_H */
#endif /* TIMEX_H */

View File

@ -14,8 +14,8 @@
* @brief Utility library for `struct tm`.
*/
#ifndef __SYS__TIMEX__TM__H
#define __SYS__TIMEX__TM__H
#ifndef SYS__TIMEX__TM__H
#define SYS__TIMEX__TM__H
#include <time.h>
#include <sys/time.h>
@ -119,5 +119,5 @@ int tm_is_valid_time(int hour, int min, int sec) CONST;
}
#endif
#endif
#endif /* SYS__TIMEX__TM__H */
/** @} */

View File

@ -20,8 +20,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef __LOG_FORMAT_H
#define __LOG_FORMAT_H
#ifndef LOG_FORMAT_H
#define LOG_FORMAT_H
#include <stdio.h>
@ -47,4 +47,4 @@ static inline void log_write(unsigned level, const char *format, ...) {
}
#endif
/**@}*/
#endif /* __LOG_FORMAT_H */
#endif /* LOG_FORMAT_H */

View File

@ -27,8 +27,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*/
#ifndef __MALLOC_H
#define __MALLOC_H
#ifndef MALLOC_H
#define MALLOC_H
#include <stdlib.h>
@ -77,7 +77,7 @@ void free(void *ptr);
}
#endif
#endif /* __MALLOC_H */
#endif /* MALLOC_H */
/**
* @}

View File

@ -17,8 +17,8 @@
* @see [The Open Group Base Specifications Issue 7: pthread.h - threads](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html)
*/
#ifndef __SYS__POSIX__PTHREAD__H
#define __SYS__POSIX__PTHREAD__H
#ifndef SYS__POSIX__PTHREAD__H
#define SYS__POSIX__PTHREAD__H
#include <time.h>
@ -48,7 +48,7 @@ extern "C" {
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_BARRIER__H
#define __SYS__POSIX__PTHREAD_BARRIER__H
#ifndef SYS__POSIX__PTHREAD_BARRIER__H
#define SYS__POSIX__PTHREAD_BARRIER__H
#include "mutex.h"
@ -136,7 +136,7 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_BARRIER__H */
/**
* @}

View File

@ -15,8 +15,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_CANCELLCATION__H
#define __SYS__POSIX__PTHREAD_CANCELLCATION__H
#ifndef SYS__POSIX__PTHREAD_CANCELLCATION__H
#define SYS__POSIX__PTHREAD_CANCELLCATION__H
#ifdef __cplusplus
extern "C" {
@ -69,7 +69,7 @@ void pthread_testcancel(void);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_CANCELLCATION__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_CLEANUP__H
#define __SYS__POSIX__PTHREAD_CLEANUP__H
#ifndef SYS__POSIX__PTHREAD_CLEANUP__H
#define SYS__POSIX__PTHREAD_CLEANUP__H
#ifdef __cplusplus
extern "C" {
@ -95,7 +95,7 @@ void __pthread_cleanup_pop(__pthread_cleanup_datum_t *datum, int execute);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_CLEANUP__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @author Martin Landsmann <martin.landsmann@haw-hamburg.de>
*/
#ifndef __SYS__POSIX__PTHREAD_COND__H
#define __SYS__POSIX__PTHREAD_COND__H
#ifndef SYS__POSIX__PTHREAD_COND__H
#define SYS__POSIX__PTHREAD_COND__H
#include <time.h>
#include "mutex.h"
@ -150,5 +150,8 @@ int pthread_cond_broadcast(pthread_cond_t *cond);
}
#endif
/** @} */
#endif /* _CONDITION_VARIABLE_H */
#endif /* SYS__POSIX__PTHREAD_COND__H */
/**
* @}
*/

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_MUTEX__H
#define __SYS__POSIX__PTHREAD_MUTEX__H
#ifndef SYS__POSIX__PTHREAD_MUTEX__H
#define SYS__POSIX__PTHREAD_MUTEX__H
#include <time.h>
@ -112,7 +112,7 @@ int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *o
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_MUTEX__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_MUTEX_ATTR__H
#define __SYS__POSIX__PTHREAD_MUTEX_ATTR__H
#ifndef SYS__POSIX__PTHREAD_MUTEX_ATTR__H
#define SYS__POSIX__PTHREAD_MUTEX_ATTR__H
#include <errno.h>
@ -215,7 +215,7 @@ int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr, int robustness);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_MUTEX_ATTR__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_ONCE__H
#define __SYS__POSIX__PTHREAD_ONCE__H
#ifndef SYS__POSIX__PTHREAD_ONCE__H
#define SYS__POSIX__PTHREAD_ONCE__H
#ifdef __cplusplus
extern "C" {
@ -48,7 +48,7 @@ int pthread_once(pthread_once_t *once_control, void (*init_routine)(void));
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_ONCE__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_RWLOCK__H
#define __SYS__POSIX__PTHREAD_RWLOCK__H
#ifndef SYS__POSIX__PTHREAD_RWLOCK__H
#define SYS__POSIX__PTHREAD_RWLOCK__H
#include "priority_queue.h"
#include "thread.h"
@ -176,7 +176,7 @@ bool __pthread_rwlock_blocked_writingly(const pthread_rwlock_t *rwlock);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_ONCE__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_RWLOCK_ATTR__H
#define __SYS__POSIX__PTHREAD_RWLOCK_ATTR__H
#ifndef SYS__POSIX__PTHREAD_RWLOCK_ATTR__H
#define SYS__POSIX__PTHREAD_RWLOCK_ATTR__H
#include <errno.h>
@ -80,7 +80,7 @@ int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_RWLOCK_ATTR__H */
/**
* @}

View File

@ -15,8 +15,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_SCHEDULING__H
#define __SYS__POSIX__PTHREAD_SCHEDULING__H
#ifndef SYS__POSIX__PTHREAD_SCHEDULING__H
#define SYS__POSIX__PTHREAD_SCHEDULING__H
#ifdef __cplusplus
extern "C" {
@ -55,7 +55,7 @@ int pthread_setschedprio(pthread_t target_thread, int prio);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_SCHEDULING__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_THREADING__H
#define __SYS__POSIX__PTHREAD_THREADING__H
#ifndef SYS__POSIX__PTHREAD_THREADING__H
#define SYS__POSIX__PTHREAD_THREADING__H
#include "kernel_defines.h"
@ -107,7 +107,7 @@ static inline int pthread_equal(pthread_t thread1, pthread_t thread2)
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_THREADING__H */
/**
* @}

View File

@ -14,8 +14,8 @@
* @note Do not include this header file directly, but pthread.h.
*/
#ifndef __SYS__POSIX__PTHREAD_THREADING_ATTR__H
#define __SYS__POSIX__PTHREAD_THREADING_ATTR__H
#ifndef SYS__POSIX__PTHREAD_THREADING_ATTR__H
#define SYS__POSIX__PTHREAD_THREADING_ATTR__H
#ifdef __cplusplus
extern "C" {
@ -206,7 +206,7 @@ int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
}
#endif
#endif
#endif /* SYS__POSIX__PTHREAD_THREADING_ATTR__H */
/**
* @}

View File

@ -15,8 +15,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*/
#ifndef __SYS__POSIX__PTHREAD_TLS__H
#define __SYS__POSIX__PTHREAD_TLS__H
#ifndef SYS__POSIX__PTHREAD_TLS__H
#define SYS__POSIX__PTHREAD_TLS__H
#ifdef __cplusplus
extern "C" {
@ -87,5 +87,8 @@ struct __pthread_tls_datum **__pthread_get_tls_head(int self_id) PURE;
}
#endif
#endif /* __SYS__POSIX__PTHREAD_TLS__H */
/** @} */
#endif /* SYS__POSIX__PTHREAD_TLS__H */
/**
* @}
*/