Simplify the inclusion of headers.
This commit is contained in:
1 parent
243bb91345
commit
2e564088b0
17 files changed
+2
-72
No files matched your search
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_ALGO_H
|
||||
#define __M_ALGO_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/* Define different kind of algorithms named 'name' over the container
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_ARRAY_H
|
||||
#define __M_ARRAY_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/* Define an array of a given type.
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
#ifndef __M_BITSET_H
|
||||
#define __M_BITSET_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/********************************** INTERNAL ************************************/
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_BUFFER_H
|
||||
#define __M_BUFFER_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
#include "m-mutex.h"
|
||||
#include "m-atomic.h"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/***************************************************************/
|
||||
/************************ Compiler Macro ***********************/
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
#ifndef __M_DEQUE_H
|
||||
#define __M_DEQUE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
#include "m-i-list.h"
|
||||
|
||||
/* Define a deque of a given type.
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
#ifndef __M_I_LIST_H
|
||||
#define __M_I_LIST_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/* Interface to add to a structure to allow intrusive support.
|
||||
|
||||
@@ -25,10 +25,6 @@
|
||||
#ifndef __M_I_SHARED_PTR__H
|
||||
#define __M_I_SHARED_PTR__H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "m-core.h"
|
||||
#include "m-atomic.h"
|
||||
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_LIST_H
|
||||
#define __M_LIST_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/* Define a list of a given type.
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#ifndef __M_MEMPOOL_H
|
||||
#define __M_MEMPOOL_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include "m-core.h"
|
||||
|
||||
/* Fast Fixed Size thread unsafe allocator.
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define __M_MUTEX_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include "m-core.h"
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
#ifndef __M_RBTREE_H
|
||||
#define __M_RBTREE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/* Define a Red/Black binary tree of a given type.
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_SHARED_PTR__H
|
||||
#define __M_SHARED_PTR__H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "m-core.h"
|
||||
#include "m-atomic.h"
|
||||
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#ifndef __M_SNAPSHOT
|
||||
#define __M_SNAPSHOT
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "m-atomic.h"
|
||||
#include "m-core.h"
|
||||
|
||||
|
||||
@@ -25,10 +25,6 @@
|
||||
#ifndef __M_STRING_H
|
||||
#define __M_STRING_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
#ifndef __M_TUPLE_H
|
||||
#define __M_TUPLE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
/********************** External interface *************************/
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef __M_VARIANT_H
|
||||
#define __M_VARIANT_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "m-core.h"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user