gather all includes of standard headers into picrin.h

This commit is contained in:
Yuichi Nishiwaki
2015-01-18 00:17:37 +09:00
parent 0477e7308b
commit 4cc423d815
20 changed files with 8 additions and 68 deletions
+8 -1
View File
@@ -30,10 +30,17 @@ extern "C" {
#include <stddef.h>
#include <stdbool.h>
#include <setjmp.h>
#include <stdint.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <setjmp.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include "picrin/xvect.h"
#include "picrin/xhash.h"
-1
View File
@@ -32,7 +32,6 @@ extern "C" {
#if GCC_VERSION >= 40500 || __clang__
# define PIC_UNREACHABLE() (__builtin_unreachable())
#else
# include <assert.h>
# define PIC_UNREACHABLE() (assert(false))
#endif
-6
View File
@@ -5,12 +5,6 @@
extern "C" {
#endif
#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
int ungot;
int flags;
-6
View File
@@ -9,12 +9,6 @@
extern "C" {
#endif
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
/* simple object to object hash table */
#define XHASH_INIT_SIZE 11
-5
View File
@@ -5,11 +5,6 @@
extern "C" {
#endif
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
/* public APIs */
typedef struct xrope xrope;
-5
View File
@@ -9,11 +9,6 @@
extern "C" {
#endif
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
typedef struct xvect {
char *data;
size_t size, mask, head, tail, width;