| 29 | /* cabocha_tree_t wrapper */ |
| 30 | typedef struct ScmCaboChaTreeRec { |
| 31 | SCM_HEADER; |
| 32 | cabocha_tree_t *ctree; /* NULL if closed */ |
| 33 | } ScmCaboChaTree; |
| 34 | SCM_CLASS_DECL(Scm_CaboChaTreeClass); |
| 35 | #define SCM_CLASS_CABOCHA_TREE (&Scm_CaboChaTreeClass) |
| 36 | #define SCM_CABOCHA_TREE(obj) ((ScmCaboChaTree*)(obj)) |
| 37 | #define SCM_CABOCHA_TREEP(obj) (SCM_XTYPEP(obj, SCM_CLASS_CABOCHA_TREE)) |
| 38 | extern cabocha_tree_t* unwrap_cabocha_tree_t(ScmObj obj); |
| 39 | extern ScmObj wrap_cabocha_tree_t(cabocha_tree_t *m); |
| 40 | |
| 41 | /* cabocha_chunk_t wrapper */ |
| 42 | typedef struct ScmCaboChaChunkRec { |
| 43 | SCM_HEADER; |
| 44 | cabocha_chunk_t *cchunk; /* NULL if closed */ |
| 45 | } ScmCaboChaChunk; |
| 46 | SCM_CLASS_DECL(Scm_CaboChaChunkClass); |
| 47 | #define SCM_CLASS_CABOCHA_CHUNK (&Scm_CaboChaChunkClass) |
| 48 | #define SCM_CABOCHA_CHUNK(obj) ((ScmCaboChaChunk*)(obj)) |
| 49 | #define SCM_CABOCHA_CHUNKP(obj) (SCM_XTYPEP(obj, SCM_CLASS_CABOCHA_CHUNK)) |
| 50 | extern cabocha_chunk_t* unwrap_cabocha_chunk_t(ScmObj obj); |
| 51 | extern ScmObj wrap_cabocha_chunk_t(cabocha_chunk_t *m); |
| 52 | |
| 53 | /* cabocha_token_t wrapper */ |
| 54 | typedef struct ScmCaboChaTokenRec { |
| 55 | SCM_HEADER; |
| 56 | cabocha_token_t *ctok; /* NULL if closed */ |
| 57 | } ScmCaboChaToken; |
| 58 | SCM_CLASS_DECL(Scm_CaboChaTokenClass); |
| 59 | #define SCM_CLASS_CABOCHA_TOKEN (&Scm_CaboChaTokenClass) |
| 60 | #define SCM_CABOCHA_TOKEN(obj) ((ScmCaboChaToken*)(obj)) |
| 61 | #define SCM_CABOCHA_TOKENP(obj) (SCM_XTYPEP(obj, SCM_CLASS_CABOCHA_TOKEN)) |
| 62 | extern cabocha_token_t* unwrap_cabocha_token_t(ScmObj obj); |
| 63 | extern ScmObj wrap_cabocha_token_t(cabocha_token_t *m); |
| 64 | |
| 65 | |