Guest User

Untitled

a guest
May 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. cimport stdlib
  2.  
  3. cdef extern from "link-includes.h":
  4. pass
  5.  
  6. cdef extern from "api-structures.h":
  7. ctypedef struct Parse_Options_s:
  8. pass
  9.  
  10. ctypedef struct Dictionary_s:
  11. pass
  12.  
  13. ctypedef Parse_Options_s* Parse_Options_s
  14. ctypedef Dictionary_s* Dictionary
  15.  
  16. cdef extern from "api.h":
  17. Dictionary dictionary_create(char* dict_name, char* pp_name, char* cons_name, char* affix_name)
  18. int dictionary_delete(Dictionary d)
  19.  
  20. def foo():
  21. cdef Dictionary = dictionary_create("4.0.dict", "4.0.knowledge", "4.0.constituent-knowledge", "4.0.affix")
Add Comment
Please, Sign In to add comment