Skip to content

Commit 90dc1c0

Browse files
committed
Merge pull request #17 from chrisws/android
Added reference var type
2 parents c3bdddf + 6f9da0e commit 90dc1c0

40 files changed

+811
-659
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-08-30
2+
Added reference variable type
3+
Fixed HASH var handling with parenthesis
4+
15
2014-08-22
26
Fix HASH var crash
37
Fix HASH var handling of mixed types

configure.ac

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dnl
1+
dnl
22
dnl Configure script for SmallBASIC
33
dnl
44
dnl Copyright(C) 2001-2014 Chris Warren-Smith.
@@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
77
dnl Download the GNU Public License (GPL) from www.gnu.org
88
dnl
99

10-
AC_INIT([smallbasic], [0.11.13])
10+
AC_INIT([smallbasic], [0.11.14])
1111
AC_CONFIG_SRCDIR([configure.ac])
1212

1313
AC_CANONICAL_TARGET
@@ -116,30 +116,30 @@ function defaultConditionals() {
116116

117117
function buildFLTK() {
118118
TARGET="Building FLTK version."
119-
119+
120120
dnl Checks for FLTK 2.x
121121
AC_CHECK_PROG(have_fltk, fltk2-config, [yes], [no])
122-
122+
123123
dnl do we HAVE the needed FLTK API VERSION ?
124124
HAVE_API_VERSION=no
125-
125+
126126
if test "${have_fltk}" = "yes" ; then
127127
FLTK_API_VERSION="`fltk2-config --api-version`"
128128
if test "${FLTK_API_VERSION}" = "2.0" ; then
129129
HAVE_API_VERSION=yes
130130
fi
131131
fi
132-
132+
133133
if test "${HAVE_API_VERSION}" = "no" ; then
134134
AC_MSG_ERROR([
135135
You need FLTK version 2.* installed with
136136
the program fltk2-config in your PATH in order to build sbfltk
137-
See the FLTK homepage at http://www.fltk.org/.
138-
137+
See the FLTK homepage at http://www.fltk.org/.
138+
139139
configure failed.
140140
])
141141
fi
142-
142+
143143
dnl avoid using MSCRT versions of printf for long double
144144
case "${host_os}" in
145145
*mingw* | cygwin*)
@@ -167,7 +167,7 @@ function buildFLTK() {
167167
PACKAGE_LIBS="${PACKAGE_LIBS} `sdl-config --libs`"
168168
AC_DEFINE(HAVE_SDL, 1, [Windows build])
169169
fi
170-
170+
171171
dnl preconfigured values for FLTK build
172172
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
173173
AC_DEFINE(_FLTK, 1, [Defined for FLTK build.])
@@ -181,9 +181,8 @@ function buildFLTK() {
181181
AC_DEFINE(IMPL_DEV_ENV, 1, [Driver implements dev_env funcs])
182182
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
183183
AC_DEFINE(OS_PREC64, 1, [64 bit variables])
184-
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
185184
AC_DEFINE(DRV_BEEP, 1, [Use the driver based beep function])
186-
AC_DEFINE(IMPL_OSD_SOUND, 1, [Driver implements osd_sound()])
185+
AC_DEFINE(IMPL_OSD_SOUND, 1, [Driver implements osd_sound()])
187186

188187
BUILD_SUBDIRS="src/common src/platform/fltk"
189188
AC_SUBST(BUILD_SUBDIRS)
@@ -234,9 +233,8 @@ function buildSDL() {
234233
AC_DEFINE(IMPL_DEV_DELAY, 1, [Driver implements dev_delay()])
235234
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
236235
AC_DEFINE(IMPL_DEV_READ, 1, [Implement dev_read()])
237-
AC_DEFINE(IMPL_OSD_SOUND, 1, [Driver implements osd_sound()])
236+
AC_DEFINE(IMPL_OSD_SOUND, 1, [Driver implements osd_sound()])
238237
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
239-
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
240238
AC_DEFINE(OS_PREC64, 1, [64 bit variables])
241239
AC_DEFINE(DRV_BEEP, 1, [Use the driver based beep function])
242240

@@ -263,15 +261,14 @@ function buildMosync() {
263261
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
264262
AC_DEFINE(HAVE_MALLOC_USABLE_SIZE, 0, [Newlib version causes mosync stack panic])
265263
AC_DEFINE(CPU_BIGENDIAN, 1, [Mosync uses big-endian])
266-
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
267264
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
268265
AC_DEFINE(NONSTANDARD_PORT, 1, [sys.h should include portdefs.h])
269266
AC_DEFINE(USE_TERM_IO, 0, [Does not use terminal-io functions.])
270267
AC_DEFINE(_MOSYNC, 1, [Defined for Mosync build.])
271268

272269
dnl Checks for mosync
273270
AC_CHECK_PROG(have_mosync, pipe-tool, [yes], [no])
274-
271+
275272
PACKAGE_CFLAGS="-MMD -S -DMAPIP -O2 -MF "
276273

277274
dnl find out where mosync is installed
@@ -311,7 +308,6 @@ function buildTizen() {
311308
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
312309
AC_DEFINE(HAVE_MALLOC_USABLE_SIZE, 0, [Newlib version causes mosync stack panic])
313310
AC_DEFINE(CPU_BIGENDIAN, 1, [Tizen uses big-endian])
314-
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
315311
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
316312
AC_DEFINE(USE_TERM_IO, 0, [Does not use terminal-io functions.])
317313

@@ -333,7 +329,6 @@ function buildAndroid() {
333329
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
334330
AC_DEFINE(HAVE_MALLOC_USABLE_SIZE, 0, [Newlib version causes mosync stack panic])
335331
AC_DEFINE(CPU_BIGENDIAN, 1, [Android uses big-endian])
336-
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
337332
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
338333
AC_DEFINE(USE_TERM_IO, 0, [Does not use terminal-io functions.])
339334

@@ -389,7 +384,7 @@ function buildConsole() {
389384
fi
390385
AC_DEFINE(_Win32, 1, [Windows build])
391386
AC_DEFINE(__addr_t_defined, 1, [Avoid conflict in cygwin/types.h])
392-
else
387+
else
393388
dnl preconfigured values for unix console build
394389
TARGET="Building Unix console version."
395390
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
@@ -439,7 +434,7 @@ elif test x$ac_build_android = xyes; then
439434
buildAndroid
440435
else
441436
buildConsole
442-
fi
437+
fi
443438

444439
checkPCRE
445440
checkDebugMode

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
smallbasic (0.11.14) unstable; urgency=low
2+
* Added reference variable type
3+
4+
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 30 August 2014 09:45:25 +1000
5+
16
smallbasic (0.11.13) unstable; urgency=low
27
* Fixed UDS handling
38

samples/distro-examples/tests/optchk.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
OPTION PREDEF QUITE
2-
OPTION PREDEF COMMAND hello world
1+
OPTION PREDEF QUIET
2+
OPTION PREDEF COMMAND "hello world"
33
OPTION BASE 1
44

55
DIM a(3)

samples/distro-examples/tests/output/letbug.out

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1 3
2+
1 4
3+
1 1
4+
0 3
5+
COMMAND$="hello world"
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Proc1: no parameters
2+
Proc2=String test
3+
Proc2=0.5
4+
Proc3=3
5+
Proc4=4
6+
sub-proc5=4
7+
sub-proc6=4
8+
Proc5 - Array=0
9+
Proc5 - Array=1
10+
Proc5 - Array=2
11+
Proc5 - Array=3
12+
Proc5 - Array=4
13+
proc5: ok
14+
proc6: ok
15+
proc6: ok
16+
R:2
17+
R:3
18+
R:4
19+
R:5
20+
R:6
21+
R:7
22+
R:8
23+
R:9
24+
R:10
25+
REXIT:10
26+
REXIT:9
27+
REXIT:8
28+
REXIT:7
29+
REXIT:6
30+
REXIT:5
31+
REXIT:4
32+
REXIT:3
33+
REXIT:2
34+
f(x)=256
35+
23
36+
16
37+
15
38+
14
39+
13
40+
12
41+
11
42+
10
43+
9
44+
8
45+
7
46+
6
47+
5
48+
4
49+
3
50+
2
51+
1
52+
0
53+
0
54+
1
55+
2
56+
3
57+
4
58+
5
59+
6
60+
7
61+
8
62+
9
63+
10
64+
11
65+
12
66+
13
67+
14
68+
15
69+
16
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0.3333
2+
1
3+
HELLO
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cat= cat
2+
dog= dog
3+
3= 3
4+
1= 1
5+
a=b a=b
6+
a<>b a<>b
7+
[NAME=kitchen]
8+
[NAME=hall]
9+
[NAME=Kitchen,FRIDGE=empty]
10+
[NAME=toilet,OCCUPIED=-1]
11+
[NAME=Kitchen,FRIDGE=empty]
12+
[NAME=hall]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1bcdefg
2+
1b4567
3+
1b7
4+
1
5+
1bc234567
6+
1bcI4567
7+
8+
1
9+
4567
10+
1
11+
4567

0 commit comments

Comments
 (0)