defined the value type Value_t to be interface{} in place of unsafe.Pointer
This commit is contained in:
@ -16,8 +16,9 @@ func main() {
|
||||
r *bufio.Reader
|
||||
c rune
|
||||
node *pcl.Cnode_t
|
||||
v *string
|
||||
err error
|
||||
v pcl.Value_t
|
||||
|
||||
err error
|
||||
)
|
||||
|
||||
if len(os.Args) != 2 {
|
||||
@ -73,7 +74,7 @@ func main() {
|
||||
if v == nil {
|
||||
panic("return value mut not be nil")
|
||||
}
|
||||
fmt.Printf("RETURN VALUE = [%s]\n", *v)
|
||||
fmt.Printf("RETURN VALUE = [%s]\n", *v.(*string))
|
||||
|
||||
/*
|
||||
err = interp.FeedRunes([]rune(`
|
||||
|
Reference in New Issue
Block a user