Simplify the inclusion of headers.

This commit is contained in:
Patrick Pelissier committed 2017-09-16 10:14:45 +02:00
1 parent 243bb91345
commit 2e564088b0
17 files changed
+2 -72

No files matched your search

-5
View File
@@ -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
-5
View File
@@ -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.
-6
View File
@@ -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 ************************************/
-5
View File
@@ -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"
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdint.h>
#include <limits.h>
#include <string.h>
#include <stdlib.h>
/***************************************************************/
/************************ Compiler Macro ***********************/
-6
View File
@@ -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.
-6
View File
@@ -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.
-4
View File
@@ -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"
-5
View File
@@ -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.
-2
View File
@@ -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.
+1
View File
@@ -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 \
-6
View File
@@ -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.
-5
View File
@@ -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"
-2
View File
@@ -25,8 +25,6 @@
#ifndef __M_SNAPSHOT
#define __M_SNAPSHOT
#include <assert.h>
#include "m-atomic.h"
#include "m-core.h"
-4
View File
@@ -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>
-5
View File
@@ -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 *************************/
-5
View File
@@ -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"