defined the value type Value_t to be interface{} in place of unsafe.Pointer

This commit is contained in:
2023-08-04 18:41:30 +09:00
parent 1ad6779aa4
commit 3cae246546
4 changed files with 153 additions and 85 deletions

View File

@ -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(`