Use consisten header guard, prefixed with UC_
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#ifndef BITEVEC_H_
|
#ifndef UC_BITEVEC_H_
|
||||||
#define BITEVEC_H_
|
#define UC_BITEVEC_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_BUFFER_H_
|
#ifndef UC_BUFFER_H_
|
||||||
#define UCORE_BUFFER_H_
|
#define uc_BUFFER_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef dbuf_H_
|
#ifndef UC_DBUF_H_
|
||||||
#define dbuf_H_
|
#define UC_DBUF_H_
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef FD_UTILS_H_
|
#ifndef UC_FD_UTILS_H_
|
||||||
#define FD_UTILS_H_
|
#define UC_FD_UTILS_H_
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_HASH_H_
|
#ifndef UC_HASH_H_
|
||||||
#define UCORE_HASH_H_
|
#define UC_HASH_H_
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_HEAPSORT_H_
|
#ifndef UC_HEAPSORT_H_
|
||||||
#define UCORE_HEAPSORT_H_
|
#define UC_HEAPSORT_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef IO_MUX_H_
|
#ifndef UC_IO_MUX_H_
|
||||||
#define IO_MUX_H_
|
#define UC_IO_MUX_H_
|
||||||
|
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
/** @addtogroup IOMux
|
/** @addtogroup IOMux
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_LOGGING_H_
|
#ifndef UC_LOGGING_H_
|
||||||
#define UCORE_LOGGING_H_
|
#define UC_LOGGING_H_
|
||||||
|
|
||||||
/** Logging functions.
|
/** Logging functions.
|
||||||
* All logging functions except uc_log_init are thread safe,
|
* All logging functions except uc_log_init are thread safe,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_MATH_H_
|
#ifndef UC_MATH_H_
|
||||||
#define UCORE_MATH_H_
|
#define UC_MATH_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_MERSENNE_TWISTER_H
|
#ifndef UC_MERSENNE_TWISTER_H
|
||||||
#define UCORE_MERSENNE_TWISTER_H
|
#define UC_MERSENNE_TWISTER_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_PACK_H_
|
#ifndef UC_PACK_H_
|
||||||
#define UCORE_PACK_H_
|
#define UC_PACK_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef RBTREE_H_
|
#ifndef UC_RBTREE_H_
|
||||||
#define RBTREE_H_
|
#define UC_RBTREE_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_READ_FILE_H_
|
#ifndef UC_READ_FILE_H_
|
||||||
#define UCORE_READ_FILE_H_y
|
#define UC_READ_FILE_H_y
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef SALLOC_H_
|
#ifndef UC_SALLOC_H_
|
||||||
#define SALLOC_H_
|
#define UC_SALLOC_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#ifndef UC_SATMATH_H_
|
||||||
|
#define UC_SATMATH_H_
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/** Implementation of saturated operation on uintxx_t.
|
/** Implementation of saturated operation on uintxx_t.
|
||||||
@@ -79,3 +81,4 @@ static inline uint64_t uc_sat_multu64(uint64_t a, uint64_t b)
|
|||||||
return UC_SAT_MULT(a, b, uint64_t, UINT64_MAX);
|
return UC_SAT_MULT(a, b, uint64_t, UINT64_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
#ifndef SEQ_H_
|
#ifndef UC_SEQ_H_
|
||||||
#define SEQ_H_
|
#define UC_SEQ_H_
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// Check if a is less than b, taking care of wrap arounds
|
// Check if a is less than b, taking care of wrap arounds
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_STRING_H_
|
#ifndef UC_STRING_H_
|
||||||
#define UCORE_STRING_H_
|
#define UC_STRING_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#ifndef UC_STRVEC_H_
|
#ifndef UC_STRVEC_H_
|
||||||
#define UC_STRVEC_H_
|
#define UC_STRVEC_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_SUPERVISOR_H_
|
#ifndef UC_SUPERVISOR_H_
|
||||||
#define UCORE_SUPERVISOR_H_
|
#define UC_SUPERVISOR_H_
|
||||||
|
|
||||||
/** Supervises this process - restart if it dies.
|
/** Supervises this process - restart if it dies.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef _THREADQUEUE_H_
|
#ifndef UC_THREADQUEUE_H_
|
||||||
#define _THREADQUEUE_H_ 1
|
#define UC_THREADQUEUE_H_
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_TIMERS_H_
|
#ifndef UC_TIMERS_H_
|
||||||
#define UCORE_TIMERS_H_
|
#define UC_TIMERS_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#ifndef UCORE_UTILS_H_
|
#ifndef UC_UTILS_H_
|
||||||
#define UCORE_UTILS_H_
|
#define UC_UTILS_H_
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef UCORE_VERSION_H_
|
#ifndef UC_VERSION_H_
|
||||||
#define UCORE_VERSION_H_
|
#define UC_VERSION_H_
|
||||||
/**
|
/**
|
||||||
* @mainpage
|
* @mainpage
|
||||||
* @htmlonly
|
* @htmlonly
|
||||||
|
|||||||
Reference in New Issue
Block a user