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

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <string.h>
#include "picrin.h"
#include "picrin/blob.h"
#include "picrin/pair.h"

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <string.h>
#include "picrin.h"
#include "picrin/pair.h"
#include "picrin/vector.h"

View File

@ -2,10 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <setjmp.h>
#include <string.h>
#include <stdarg.h>
#include "picrin.h"
#include "picrin/proc.h"
#include "picrin/cont.h"

View File

@ -2,10 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "picrin.h"
#include "picrin/pair.h"
#include "picrin/proc.h"

View File

@ -20,10 +20,6 @@
#include "picrin/record.h"
#include "picrin/read.h"
#if GC_DEBUG
# include <string.h>
#endif
union header {
struct {
union header *ptr;

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"

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

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;

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

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;

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;

View File

@ -2,10 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <math.h>
#include <limits.h>
#include <stdlib.h>
#include "picrin.h"
#include "picrin/string.h"
#include "picrin/cont.h"

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <stdarg.h>
#include "picrin.h"
#include "picrin/pair.h"

View File

@ -2,10 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "picrin.h"
#include "picrin/proc.h"
#include "picrin/port.h"

View File

@ -2,9 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
#include "picrin.h"
#include "picrin/read.h"
#include "picrin/error.h"

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <stdlib.h>
#include "picrin.h"
#include "picrin/gc.h"
#include "picrin/read.h"

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <string.h>
#include "picrin.h"
#include "picrin/string.h"
#include "picrin/pair.h"

View File

@ -2,10 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "picrin.h"
#include "picrin/string.h"

View File

@ -2,11 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <math.h>
#include "picrin.h"
#include "picrin/pair.h"
#include "picrin/string.h"

View File

@ -2,8 +2,6 @@
* See Copyright Notice in picrin.h
*/
#include <math.h>
#include "picrin.h"
#include "picrin/port.h"
#include "picrin/pair.h"