Skip to content

Commit 59e512a

Browse files
author
udhos
committed
besc: go get before build
1 parent c0879f5 commit 59e512a

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

basc/main.go

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020

2121
var baslibModule string
2222
var baslibImport string
23-
var getFlags string
23+
getFlags := "-d"
2424
var basgoBuildCommand string
2525
var output string
2626

@@ -220,7 +220,7 @@ func buildGo(dir, baslibModule string, getFlags []string, output string) error {
220220
}
221221

222222
//
223-
// go get baslibModule
223+
// go get -d baslibModule
224224
//
225225

226226
args := []string{"get"}
@@ -235,6 +235,19 @@ func buildGo(dir, baslibModule string, getFlags []string, output string) error {
235235
return errGet
236236
}
237237

238+
//
239+
// go get
240+
//
241+
242+
args = []string{"get"}
243+
cmdGet = exec.Command("go", args...)
244+
cmdGet.Stdin = os.Stdin
245+
cmdGet.Stdout = os.Stdout
246+
cmdGet.Stderr = os.Stderr
247+
if errGet := cmdGet.Run(); errGet != nil {
248+
return errGet
249+
}
250+
238251
//
239252
// go build
240253
//

examples/bench.bas

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
5 screen 0
2+
10 FOR A=1 TO 10
3+
20 T1=TIMER
4+
30 FOR YD=1 TO 23:FOR XD=1 TO 80:LOCATE YD,XD:?CHR$(asc("0")+A);:NEXT:NEXT
5+
40 T2=TIMER
6+
50 T(A)=T2-T1
7+
60 NEXT:?"Average="(T(1)+T(2)+T(3)+T(4)+T(5)+T(6)+T(7)+T(8)+T(9)+T(10))/10
8+
1000 print "hit q to exit"
9+
1010 i$=input$(1)
10+
1020 while i$<>"q"
11+
1030 print "key:";i$;" asc:";asc(i$)
12+
1040 print "hit q to exit"
13+
1050 i$=input$(1)
14+
1060 wend

0 commit comments

Comments
 (0)