* atoms in one test unit * factor out pointers test * factor structs into separate test unit * factor out arrays, flags * finally, separate into strings and ints
17 lines
320 B
Plaintext
17 lines
320 B
Plaintext
(use "errno.witx")
|
|
|
|
(typename $car_config
|
|
(flags u8
|
|
$automatic
|
|
$awd
|
|
$suv))
|
|
|
|
(module $flags
|
|
(@interface func (export "configure_car")
|
|
(param $old_config $car_config)
|
|
(param $old_config_by_ptr (@witx const_pointer $car_config))
|
|
(result $error $errno)
|
|
(result $new_config $car_config)
|
|
)
|
|
)
|