[Vala] Aho–Corasick string matching algorithm Vapi

2012-01-11 Thread Denis Kuzmenok
I've made a Vapi for "Aho–Corasick string matching algorithm". Lib can be taken from here: http://sourceforge.net/projects/multifast/files/ Need modifications of Makefile to make shared lib: add line to the head: SONAME := libahocorasick.so.$(ACVERSION) add to CFLAGS: -fPIC

Re: [Vala] Vapi help

2012-01-11 Thread Andrew Higginson
On 10/01/12 22:52, Denis Kuzmenok wrote: > Hi. > I need some help with vapi file. I'm making vapi for C non-Glib > library. There are structs, i write them into vapi, as > namespace AC -> struct AC_Automata > > And i'm getting errors: > undefined reference to `ac_ac_automata_destroy' > >

Re: [Vala] Vapi help

2012-01-11 Thread Axel FILMORE
Attached files are an example I have done, I use the vala-gen-introspect method : https://live.gnome.org/Vala/Bindings/GI Then I modifed the generated file, I had to tweak the "cname" and "cprefix" values in order that it works. Well I'm not an expert I don't know if it's really correct, but