Skip to content

Commit 9aec648

Browse files
authored
regex: allow storing Regex fields in user structures, my making it public (fix #13)
2 parents ccac3a2 + 78f73c1 commit 9aec648

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

regex.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module pcre
22

33
@[heap]
4-
struct Regex {
4+
pub struct Regex {
55
pub:
66
re &C.pcre // A pointer to pcre structure
77
extra &C.pcre_extra // A pointer to pcre_extra structure

v.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Module {
22
name: 'pcre'
33
description: 'A simple regex library for V.'
4-
version: '0.1'
4+
version: '0.1.1'
5+
license: 'MIT'
56
dependencies: []
67
}

0 commit comments

Comments
 (0)