fix: Adding Header guards.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef INCLUDE_SET_LIST_
|
||||
#define INCLUDE_SET_LIST_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct SETBlockMeta
|
||||
@@ -31,3 +34,5 @@ void set_ll_free_all(struct SETBlockMeta *head);
|
||||
*/
|
||||
|
||||
struct SETBlockMeta *set_ll_free_one(struct SETBlockMeta *head, void *address);
|
||||
|
||||
#endif
|
||||
|
@@ -2,6 +2,11 @@
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
@@ -48,8 +53,8 @@ struct SETSuit
|
||||
};
|
||||
|
||||
/**
|
||||
* Internal function header for bundle. Use BUNDLE() macro to define bundle in
|
||||
* test.
|
||||
* Internal function header for bundle. Use BUNDLE() macro to define bundle
|
||||
* in test.
|
||||
*/
|
||||
void set_bundle_suits(struct SETSuit **suits, int *counter, bool count);
|
||||
|
||||
@@ -246,3 +251,7 @@ bool tear_down();
|
||||
void test_name##_test(struct SETest *test)
|
||||
|
||||
#endif // !INCLUDE_SET_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -3,8 +3,8 @@
|
||||
|
||||
#include "set.h"
|
||||
|
||||
#ifndef ASSERT_H
|
||||
#define ASSERT_H
|
||||
#ifndef INCLUDE_SET_ASSERT_H
|
||||
#define INCLUDE_SET_ASSERT_H
|
||||
|
||||
#define STATIC_ASSERT(condition) (void)sizeof(char[1 - 2 * (!(condition))])
|
||||
|
||||
|
@@ -1,5 +1,8 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#ifndef INCLUDE_SET_UTILS_H_
|
||||
#define INCLUDE_SET_UTILS_H_
|
||||
|
||||
/*
|
||||
* Returns pointer to formatted the string.
|
||||
*
|
||||
@@ -52,3 +55,5 @@ void *set_calloc(size_t n, size_t size);
|
||||
* See also: set_malloc()
|
||||
*/
|
||||
void *set_realloc(size_t n);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user