Skip to content

Instantly share code, notes, and snippets.

@indigoviolet
Created May 26, 2010 02:22
Show Gist options
  • Save indigoviolet/413970 to your computer and use it in GitHub Desktop.
Save indigoviolet/413970 to your computer and use it in GitHub Desktop.
cimport stdlib
cdef extern from "link-includes.h":
pass
cdef extern from "api-structures.h":
ctypedef struct Parse_Options_s:
pass
ctypedef struct Dictionary_s:
pass
ctypedef Parse_Options_s* Parse_Options_s
ctypedef Dictionary_s* Dictionary
cdef extern from "api.h":
Dictionary dictionary_create(char* dict_name, char* pp_name, char* cons_name, char* affix_name)
int dictionary_delete(Dictionary d)
def foo():
cdef Dictionary = dictionary_create("4.0.dict", "4.0.knowledge", "4.0.constituent-knowledge", "4.0.affix")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment