@@ -616,9 +616,9 @@ canon ::= (canon lift core-prefix(<core:funcidx>) <canonopt>* bind-id(<extern
616
616
canonopt ::= string-encoding=utf8
617
617
| string-encoding=utf16
618
618
| string-encoding=latin1+utf16
619
- | (memory core-prefix( <core:memidx>) )
620
- | (realloc core-prefix( <core:funcidx>) )
621
- | (post-return core-prefix( <core:funcidx>) )
619
+ | (memory <core:memidx>)
620
+ | (realloc <core:funcidx>)
621
+ | (post-return <core:funcidx>)
622
622
```
623
623
While the production ` externdesc ` accepts any ` sort ` , the validation rules
624
624
for ` canon lift ` would only allow the ` func ` sort. In the future, other sorts
@@ -697,7 +697,7 @@ takes a string, does some logging, then returns a string.
697
697
(core instance $libc (instantiate $Libc))
698
698
(core func $log (canon lower
699
699
(func $logging "log")
700
- (memory (core memory $libc "mem")) (realloc (core func $libc "realloc"))
700
+ (memory (core memory $libc "mem")) (realloc (func $libc "realloc"))
701
701
))
702
702
(core module $Main
703
703
(import "libc" "memory" (memory 1))
@@ -713,7 +713,7 @@ takes a string, does some logging, then returns a string.
713
713
))
714
714
(func $run (param string) (result string) (canon lift
715
715
(core func $main "run")
716
- (memory (core memory $libc "mem")) (realloc (core func $libc "realloc"))
716
+ (memory $libc "mem") (realloc (func $libc "realloc"))
717
717
))
718
718
(export "run" (func $run))
719
719
)
@@ -770,7 +770,7 @@ exported string at instantiation time:
770
770
(core instance $main (instantiate $Main (with "libc" (instance $libc))))
771
771
(func $start (param string) (result string) (canon lift
772
772
(core func $main "start")
773
- (memory (core memory $libc "mem")) (realloc (core func $libc "realloc"))
773
+ (memory $libc "mem") (realloc (func $libc "realloc"))
774
774
))
775
775
(start $start (value $name) (result (value $greeting)))
776
776
(export "greeting" (value $greeting))
0 commit comments