diff --git a/pcre.v b/pcre.v index cc6a8e3..0e9cc69 100644 --- a/pcre.v +++ b/pcre.v @@ -6,10 +6,10 @@ module pcre #include "pcre.h" -[typedef] +@[typedef] struct C.pcre {} -[typedef] +@[typedef] struct C.pcre_extra {} fn C.pcre_compile(pattern byteptr, options int, const_perr &&char, perroroffset &int, ptable voidptr) &C.pcre diff --git a/regex.v b/regex.v index cf0bcb3..bfedef0 100644 --- a/regex.v +++ b/regex.v @@ -1,6 +1,6 @@ module pcre -[heap] +@[heap] struct Regex { pub: re &C.pcre // A pointer to pcre structure