remove read.h

This commit is contained in:
Yuichi Nishiwaki
2016-02-21 18:29:17 +09:00
parent 5bd390aa79
commit 2ee33b5d57
5 changed files with 150 additions and 173 deletions
-33
View File
@@ -1,33 +0,0 @@
/**
* See Copyright Notice in picrin.h
*/
#ifndef PICRIN_READ_H
#define PICRIN_READ_H
#if defined(__cplusplus)
extern "C" {
#endif
KHASH_DECLARE(read, int, pic_value)
typedef pic_value (*pic_reader_t)(pic_state *, xFILE *file, int c);
typedef struct {
enum pic_typecase {
PIC_CASE_DEFAULT,
PIC_CASE_FOLD
} typecase;
khash_t(read) labels;
pic_reader_t table[256];
pic_reader_t dispatch[256];
} pic_reader;
void pic_reader_init(pic_state *);
void pic_reader_destroy(pic_state *);
#if defined(__cplusplus)
}
#endif
#endif
@@ -13,7 +13,6 @@ extern "C" {
#include "picrin/private/file.h"
#include "picrin/private/irep.h"
#include "picrin/private/read.h"
#include "picrin/private/gc.h"
struct pic_lib {
@@ -68,7 +67,6 @@ struct pic_state {
khash_t(ltable) ltable;
struct pic_list ireps; /* chain */
pic_reader reader;
xFILE files[XOPEN_MAX];
pic_code iseq[2]; /* for pic_apply_trampoline */