File tree Expand file tree Collapse file tree 7 files changed +36
-24
lines changed
samples/distro-examples/tests Expand file tree Collapse file tree 7 files changed +36
-24
lines changed Original file line number Diff line number Diff line change 1
- For news please visit smallbasic.sourceforge.net
1
+ For news please visit https:// smallbasic.github.io
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
7
7
dnl Download the GNU Public License (GPL) from www.gnu.org
8
8
dnl
9
9
10
- AC_INIT ( [ smallbasic] , [ 0.12.16 ] )
10
+ AC_INIT ( [ smallbasic] , [ 0.12.17 ] )
11
11
AC_CONFIG_SRCDIR ( [ configure.ac] )
12
12
13
13
AC_CANONICAL_TARGET
Original file line number Diff line number Diff line change
1
+ smallbasic (0.12.17) unstable; urgency=low
2
+ * Various see web site
3
+
4
+ -- Chris Warren-Smith <
[email protected] > Sat, 09 Nov 2019 09:45:25 +1000
5
+
1
6
smallbasic (0.12.16) unstable; urgency=low
2
7
* Various see web site
3
8
Original file line number Diff line number Diff line change @@ -4,19 +4,5 @@ open failed FS(2): NO SUCH FILE OR DIRECTORY
4
4
after try
5
5
catch by error name
6
6
outer after try
7
-
8
-
9
- * RTE-ERROR AT ../../../samples/distro-examples/tests/trycatch.bas:200 *
10
- Description:
11
- Division by zero
12
-
13
- Stack:
14
- TRY: 199
15
- TRY: 198
16
- TRY: 197
17
- TRY: 196
18
- TRY: 195
19
- IF: 194
20
- IF: 193
21
- IF: 192
22
- SUB: 216
7
+ Error: Division by zero
8
+ End of test
Original file line number Diff line number Diff line change @@ -213,7 +213,11 @@ if 1 == 1 then
213
213
fi
214
214
end
215
215
216
- stack_test
216
+ try
217
+ stack_test
218
+ catch e
219
+ print "Error: " + e
220
+ end try
217
221
218
222
sub manageFiles()
219
223
sub renameFile()
@@ -229,7 +233,6 @@ sub manageFiles()
229
233
viewFile()
230
234
end
231
235
232
-
233
236
try
234
237
try
235
238
throw "!!!error!!!"
@@ -244,3 +247,21 @@ if (inner == "!!!error!!!") then
244
247
throw "inner still in scope"
245
248
endif
246
249
250
+ rem test for select case <udf>
251
+ func num(n)
252
+ return n
253
+ end
254
+ select case num( 10 )
255
+ case 10
256
+ rem success!
257
+ case else
258
+ throw "fail"
259
+ end select
260
+ select case round(pi)
261
+ case 3
262
+ rem "success!"
263
+ case else
264
+ throw "fail"
265
+ end select
266
+
267
+ print "End of test"
Original file line number Diff line number Diff line change @@ -3567,9 +3567,9 @@ void comp_pass2_scan() {
3567
3567
break ;
3568
3568
3569
3569
case kwSELECT :
3570
- // next instruction should be CASE
3570
+ // next instruction should be CASE (or UDF)
3571
3571
false_ip = comp_next_bc_peek (i + 1 );
3572
- if (false_ip != kwCASE && false_ip != kwCASE_ELSE ) {
3572
+ if (false_ip != kwCASE && false_ip != kwCASE_ELSE && false_ip != kwTYPE_CALL_UDF ) {
3573
3573
sc_raise (MSG_MISSING_CASE );
3574
3574
print_pass2_stack (i , kwCASE , node -> level );
3575
3575
return ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ android {
9
9
applicationId ' net.sourceforge.smallbasic'
10
10
minSdkVersion 16
11
11
targetSdkVersion 28
12
- versionCode 38
13
- versionName " 0.12.16 "
12
+ versionCode 39
13
+ versionName " 0.12.17 "
14
14
resConfigs " en"
15
15
}
16
16
You can’t perform that action at this time.
0 commit comments