Show
Ignore:
Timestamp:
03/19/09 08:01:04 (16 years ago)
Author:
naoya_t
Message:

cabocha: +tree +token +chunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/gauche/cabocha-gauche-0.60pre4/cabocha.h

    r88 r89  
    1515SCM_DECL_BEGIN 
    1616 
    17 /* CaboCha_t wrapper */ 
     17/* cabocha_t wrapper */ 
    1818typedef struct ScmCaboChaRec { 
    1919  SCM_HEADER; 
     
    2727extern ScmObj wrap_cabocha_t(cabocha_t *m); 
    2828 
     29/* cabocha_tree_t wrapper */ 
     30typedef struct ScmCaboChaTreeRec { 
     31  SCM_HEADER; 
     32  cabocha_tree_t *ctree; /* NULL if closed */ 
     33} ScmCaboChaTree; 
     34SCM_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)) 
     38extern cabocha_tree_t* unwrap_cabocha_tree_t(ScmObj obj); 
     39extern ScmObj wrap_cabocha_tree_t(cabocha_tree_t *m); 
     40 
     41/* cabocha_chunk_t wrapper */ 
     42typedef struct ScmCaboChaChunkRec { 
     43  SCM_HEADER; 
     44  cabocha_chunk_t *cchunk; /* NULL if closed */ 
     45} ScmCaboChaChunk; 
     46SCM_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)) 
     50extern cabocha_chunk_t* unwrap_cabocha_chunk_t(ScmObj obj); 
     51extern ScmObj wrap_cabocha_chunk_t(cabocha_chunk_t *m); 
     52 
     53/* cabocha_token_t wrapper */ 
     54typedef struct ScmCaboChaTokenRec { 
     55  SCM_HEADER; 
     56  cabocha_token_t *ctok; /* NULL if closed */ 
     57} ScmCaboChaToken; 
     58SCM_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)) 
     62extern cabocha_token_t* unwrap_cabocha_token_t(ScmObj obj); 
     63extern ScmObj wrap_cabocha_token_t(cabocha_token_t *m); 
     64 
     65 
    2966/* APIs with (int argc, char **argv) */ 
    3067typedef cabocha_t *(*cabocha_func_with_args)(int argc, char **argv); 
    31 typedef int (*int_func_with_args)(int argc, char **argv); 
     68// typedef int (*int_func_with_args)(int argc, char **argv); 
    3269extern cabocha_t *cabocha_call_cabocha_func(cabocha_func_with_args fn, ScmObj args); 
    3370extern int cabocha_call_int_func(int_func_with_args fn, ScmObj args);