Skip to content

Commit 97f2e2b

Browse files
committed
COMMON: Implemented TRY CATCH THROW
1 parent abd0534 commit 97f2e2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+454
-1868
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2014-09-06
2+
RTE command renamed THROW
3+
4+
2014-09-01
5+
Added try/catch
6+
17
2014-08-30
28
Added reference variable type
39
Fixed HASH var handling with parenthesis

configure.ac

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -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.14])
10+
AC_INIT([smallbasic], [0.11.15])
1111
AC_CONFIG_SRCDIR([configure.ac])
1212

1313
AC_CANONICAL_TARGET
@@ -34,11 +34,6 @@ AC_ARG_ENABLE(sdl,
3434
[ac_build_sdl="yes"],
3535
[ac_build_sdl="no"])
3636

37-
AC_ARG_ENABLE(mosync,
38-
AS_HELP_STRING([--enable-mosync],[build common library for Mosync(default=no)]),
39-
[ac_build_mosync="yes"],
40-
[ac_build_mosync="no"])
41-
4237
AC_ARG_ENABLE(tizen,
4338
AS_HELP_STRING([--enable-tizen],[build common library for Tizen(default=no)]),
4439
[ac_build_tizen="yes"],
@@ -94,9 +89,6 @@ function checkPCRE() {
9489
have_pcre="no"
9590
esac
9691

97-
if test x$ac_build_mosync = xyes; then
98-
have_pcre="no"
99-
fi
10092
if test x$ac_build_tizen = xyes; then
10193
have_pcre="no"
10294
fi
@@ -175,7 +167,6 @@ function buildFLTK() {
175167
AC_DEFINE(USE_CLIB, 1, [Implements clibmgr.])
176168
AC_DEFINE(DEV_EVENTS_OSD, 1, [dev_events() implemented using osd_events().])
177169
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
178-
AC_DEFINE(IMPL_HTML, 1, [Driver implements the html command])
179170
AC_DEFINE(IMPL_DEV_GETS, 1, [Driver implements dev_gets()])
180171
AC_DEFINE(IMPL_DEV_DELAY, 1, [Driver implements dev_delay()])
181172
AC_DEFINE(IMPL_DEV_ENV, 1, [Driver implements dev_env funcs])
@@ -243,55 +234,6 @@ function buildSDL() {
243234
(cd ide/android/assets && xxd -i main.bas > ../../../src/platform/sdl/main_bas.h)
244235
}
245236

246-
function buildMosync() {
247-
TARGET="Building common library for Mosync."
248-
249-
defaultConditionals
250-
251-
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
252-
AC_DEFINE(HAVE_SEARCH_H, 1, [Found GNU search.h])
253-
AC_DEFINE(HAVE_TDESTROY, 1, [Found GNU search.h])
254-
AC_DEFINE(INET_UNSUP, 1, [inet not supported.])
255-
AC_DEFINE(RUN_UNSUP, 1, [run not supported.])
256-
AC_DEFINE(SERIAL_UNSUP, 1, [serial not supported.])
257-
AC_DEFINE(DEV_EVENTS_OSD, 1, [dev_events() implemented using osd_events().])
258-
AC_DEFINE(IMPL_DEV_READ, 1, [Implement dev_read()])
259-
AC_DEFINE(IMPL_DEV_GETS, 1, [Driver implements dev_gets()])
260-
AC_DEFINE(IMPL_DEV_DELAY, 1, [Driver implements dev_delay()])
261-
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
262-
AC_DEFINE(HAVE_MALLOC_USABLE_SIZE, 0, [Newlib version causes mosync stack panic])
263-
AC_DEFINE(CPU_BIGENDIAN, 1, [Mosync uses big-endian])
264-
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
265-
AC_DEFINE(NONSTANDARD_PORT, 1, [sys.h should include portdefs.h])
266-
AC_DEFINE(USE_TERM_IO, 0, [Does not use terminal-io functions.])
267-
AC_DEFINE(_MOSYNC, 1, [Defined for Mosync build.])
268-
269-
dnl Checks for mosync
270-
AC_CHECK_PROG(have_mosync, pipe-tool, [yes], [no])
271-
272-
PACKAGE_CFLAGS="-MMD -S -DMAPIP -O2 -MF "
273-
274-
dnl find out where mosync is installed
275-
win32=no
276-
case "${host_os}" in
277-
*mingw* | pw32* | cygwin*)
278-
win32="yes"
279-
esac
280-
if test $win32 = yes; then
281-
MOSYNC_HOME="`which xgcc | cygpath -m -f - | sed 's/\/bin\/xgcc//'`"
282-
EXTN=".exe"
283-
else
284-
dnl see: http://www.mosync.com/documentation/manualpages/building-mosync-source-linux
285-
MOSYNC_HOME=${MOSYNCDIR}
286-
EXTN=""
287-
fi
288-
AC_SUBST(MOSYNC_HOME)
289-
AC_SUBST(EXTN)
290-
291-
BUILD_SUBDIRS="src/platform/mosync/common"
292-
AC_SUBST(BUILD_SUBDIRS)
293-
}
294-
295237
function buildTizen() {
296238
TARGET="Building common library for Tizen."
297239

@@ -426,8 +368,6 @@ elif test x$ac_build_fltk = xyes; then
426368
buildFLTK
427369
elif test x$ac_build_sdl = xyes; then
428370
buildSDL
429-
elif test x$ac_build_mosync = xyes; then
430-
buildMosync
431371
elif test x$ac_build_tizen = xyes; then
432372
buildTizen
433373
elif test x$ac_build_android = xyes; then
@@ -451,7 +391,6 @@ src/platform/sdl/Makefile
451391
src/platform/cygwin/Makefile
452392
src/platform/mingw/Makefile
453393
src/platform/unix/Makefile
454-
src/platform/mosync/common/Makefile
455394
src/platform/tizen/common/Makefile
456395
src/platform/android/Makefile
457396
])

debian/changelog

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

ide/mosync/.cproject

Lines changed: 0 additions & 16 deletions
This file was deleted.

ide/mosync/.mosyncproject

Lines changed: 0 additions & 56 deletions
This file was deleted.

ide/mosync/.project

Lines changed: 0 additions & 30 deletions
This file was deleted.

ide/mosync/AndroidManifest.xml

Lines changed: 0 additions & 43 deletions
This file was deleted.

ide/mosync/workfile.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

samples/distro-examples/graphics/3dtorus.bas

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ repeat
4747
anglez = (anglez + 1) mod 360
4848
RotateAndProject Model(), anglex, angley, anglez
4949
DrawModel Model() , Poly()
50+
SHOWPAGE
5051
until
5152

5253
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
foo: called from ptr @foo
2+
foo: called from ptr p
3+
in bar
4+
in bar

0 commit comments

Comments
 (0)