Commit 6b28c3cb authored by Michael Hanus's avatar Michael Hanus
Browse files

Adapt to new name scheme

parent 9a4d3c71
package SystemIOExts
package System_DOT_IOExts
import "gocurry"
import "curry2go/System/IO"
......@@ -6,7 +6,7 @@ import "curry2go/Prelude"
import "os/exec"
func ExternalSystem_IOExts_prim_execCmd(task *gocurry.Task){
func ExternalSystemDot_IOExtsDot_primUs_execCmd(task *gocurry.Task){
root := task.GetControl()
commandNode := root.GetChild(0)
command := gocurry.ReadString(commandNode)
......@@ -31,19 +31,19 @@ func ExternalSystem_IOExts_prim_execCmd(task *gocurry.Task){
}
// create handles for pipes
stdinHandle := SystemIO.HandleCreate(root.NewNode(), nil, &stdinPipe, 1, true)
stdoutHandle := SystemIO.HandleCreate(root.NewNode(), &stdoutPipe, nil, 0, true)
stderrHandle := SystemIO.HandleCreate(root.NewNode(), &stderrPipe, nil, 0, true)
stdinHandle := System_DOT_IO.HandleCreate(root.NewNode(), nil, &stdinPipe, 1, true)
stdoutHandle := System_DOT_IO.HandleCreate(root.NewNode(), &stdoutPipe, nil, 0, true)
stderrHandle := System_DOT_IO.HandleCreate(root.NewNode(), &stderrPipe, nil, 0, true)
// start command
cmd.Start()
// return
tupel := Prelude.Prelude__CREATE_LbCommaCommaCommaRb(root.NewNode(), stdinHandle, stdoutHandle, stderrHandle)
tupel := Prelude.Prelude__CREATE_Lb_Comma_Comma_Comma_Rb_(root.NewNode(), stdinHandle, stdoutHandle, stderrHandle)
gocurry.IOCreate(root, tupel)
}
func ExternalSystem_IOExts_prim_connectToCmd(task *gocurry.Task){
func ExternalSystemDot_IOExtsDot_primUs_connectToCmd(task *gocurry.Task){
root := task.GetControl()
commandNode := root.GetChild(0)
command := gocurry.ReadString(commandNode)
......@@ -65,7 +65,7 @@ func ExternalSystem_IOExts_prim_connectToCmd(task *gocurry.Task){
// create handles for pipes
handle := SystemIO.HandleCreate(root.NewNode(), &stdoutPipe, &stdinPipe, 1, true)
handle := System_DOT_IO.HandleCreate(root.NewNode(), &stdoutPipe, &stdinPipe, 1, true)
// start command
cmd.Start()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment