Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8837cdc
UI: fix debug in linux
chrisws Oct 31, 2015
0a64c45
UI: fix completion
chrisws Nov 1, 2015
deae7df
UI fix case insensitive search
chrisws Nov 1, 2015
11005f5
SDL: fix deb dependencies
chrisws Nov 5, 2015
cc08ada
UI: fix image display handling
chrisws Nov 9, 2015
34ae300
SDL: fix keyboard handling for non-us map
chrisws Nov 10, 2015
6d3b3f1
SDL: fix keyboard handling for non-us map
chrisws Nov 11, 2015
404e9a6
SDL: fix keyboard handling for non-us map
chrisws Nov 11, 2015
161cc2c
COMMON: fix ffill infinite loop
chrisws Nov 14, 2015
4aefbc6
UI: fix crash with online command when site down
chrisws Nov 14, 2015
14fbf72
UI: added f2 command for online help
chrisws Nov 15, 2015
ec1ae4b
UI: added f2 command for online help
chrisws Nov 15, 2015
982dc41
UI: Fix over scroll issue with line number widget
chrisws Nov 15, 2015
ee6d6bb
COMMON: update help doc
chrisws Nov 17, 2015
2113428
UI: Fix screen dump invalid file name for online files
chrisws Nov 18, 2015
eed01bb
UI: Fix file manager .bas file case sensitivity
chrisws Nov 21, 2015
233a3a4
UI: Implemented calling IMAGE with another image variable
chrisws Nov 21, 2015
0fe4225
UI: Fix editor markup on map fields that look like keywords
chrisws Nov 22, 2015
ecf5f0a
UI: Fix editor markup on map fields that look like keywords
chrisws Nov 22, 2015
bcaf6c8
ANDROID: fix toast duration
chrisws Nov 22, 2015
427d250
UI: ctrl+shift left or right arrow
chrisws Nov 24, 2015
0887697
SDL: fix windows build
chrisws Nov 25, 2015
4ebe7c8
COMMON: Fix scanner inserting line-no bytecode for empty or comment l…
chrisws Nov 25, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
2015-11-01
Fix debugger launch in linux build
Fix editor display issue with keyword completion
Fix editor case insensitive search
Fix image drawing for large images
Fix PAINT infinite loop
Fix keyboard handling for non-us keymaps
Fix Ctrl+Home editor keystroke handler
Fix crash with online command if site is down
Fix over scroll issue with line number widget
Fix screen dump invalid file name for online files
Fix file manager .bas file case sensitivity
Fix editor markup on map fields that look like keywords
Fix scanner inserting line-no bytecode for empty or comment lines
Implemented editor F2 command to display online help
Implemented calling IMAGE with another image variable

2015-10-20
Fix LET when assigning a value to a MAP/ARRAY field

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
dnl Download the GNU Public License (GPL) from www.gnu.org
dnl

AC_INIT([smallbasic], [0.12.0])
AC_INIT([smallbasic], [0.12.1])
AC_CONFIG_SRCDIR([configure.ac])

AC_CANONICAL_TARGET
Expand Down
25 changes: 15 additions & 10 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,56 +1,61 @@
smallbasic (0.12.1) unstable; urgency=low
* Various - see web site

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 17 Nov 2015 09:45:25 +1000

smallbasic (0.12.0) unstable; urgency=low
* Various - see web site

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 17 Sept 2015 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 17 Sep 2015 09:45:25 +1000

smallbasic (0.11.17) unstable; urgency=low
* Fix compiler ignoring unused assignment values
* Implement IMAGE

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 4 October 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 4 Oct 2014 09:45:25 +1000

smallbasic (0.11.16) unstable; urgency=low
* Add support for unary operators on array elements
* Fix call FUNC with (arg1), (arg2)
* Fix INKEY Backspace in FLTK
* Fix FOR/NEXT using float increments

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 13 Sept 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 13 Sep 2014 09:45:25 +1000

smallbasic (0.11.15) unstable; urgency=low
* RTE renamed THROW

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 6 Sept 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 6 Sep 2014 09:45:25 +1000

smallbasic (0.11.14) unstable; urgency=low
* Added reference variable type

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 30 August 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 30 Aug 2014 09:45:25 +1000

smallbasic (0.11.13) unstable; urgency=low
* Fixed UDS handling

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sun, 24 August 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sun, 24 Aug 2014 09:45:25 +1000

smallbasic (0.11.12) unstable; urgency=low
* Fixed/implemented INCLUDE command

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 11 August 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 11 Aug 2014 09:45:25 +1000

smallbasic (0.11.11) unstable; urgency=low
* Built using common code from the android project and SDL

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 19 July 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 19 Jul 2014 09:45:25 +1000

smallbasic (0.11.10) unstable; urgency=low
* Built using common code from the android project and SDL

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 19 July 2014 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 19 Jul 2014 09:45:25 +1000

smallbasic (0.10.8) unstable; urgency=low
* Fix misc issues with const char* uncovered with new gcc

-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 31 July 2010 09:45:25 +1000
-- Chris Warren-Smith <cwarrensmith@gmail.com> Sat, 31 Jul 2010 09:45:25 +1000

smallbasic (0.10.7) unstable; urgency=low
* Added defineKey and fixed delay problems with the inkey command
Expand Down
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ binary-arch: build install
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
Expand Down
5 changes: 3 additions & 2 deletions documentation/build_kwp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,15 @@ int main(int argc, char *argv[]) {
fprintf(stdout, " const char *package;\n");
fprintf(stdout, " const char *keyword;\n");
fprintf(stdout, " const char *signature;\n");
fprintf(stdout, " const char *nodeId;\n");
fprintf(stdout, " const char *help;\n");
fprintf(stdout, "} keyword_help[] = {\n");

int max_keyword_len = 0;
List_each(HelpItem *, it, helpItems) {
HelpItem *item = (*it);
fprintf(stdout, "{\"%s\",\"%s\",\"%s\",\"%s\"},\n", item->package,
item->keyword, item->signature, item->help);
fprintf(stdout, "{\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"},\n", item->package,
item->keyword, item->signature, item->id, item->help);
int len = strlen(item->keyword);
if (len > max_keyword_len) {
max_keyword_len = len;
Expand Down
16 changes: 8 additions & 8 deletions documentation/sbasic_ref.csv
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Console,command,PLAY,534,"PLAY string","Play musical notes."
Console,command,PRINT,535,"PRINT [USING [format];] [expr|str [,|; [expr|str]] ...","Display text or the value of an expression."
Console,command,SOUND,536,"SOUND freq, dur_ms [, vol] [BG]","Plays a sound."
Console,function,CAT,538,"CAT (x)","Returns a console code. 0 = reset, 1 = bold, -1 bold-off, 2 = underline, -2 = underline-off, 3 = reverse, -3 = reverse-off."
Console,function,INKEY,539,"INKEY","Returns the last key-code in keyboard buffer, or an empty string if there are no keys. Special key-codes like the function-keys (PC) or the hardware-buttons (PalmOS) are returned as 2-byte string."
Console,function,INKEY,539,"INKEY","Returns the last key-code in keyboard buffer, or an empty string if there are no keys. Special key-codes like the function-keys are returned as 2-byte string."
Console,function,TAB,540,"TAB (n)","Moves cursor position to the nth column."
Console,function,DEFINEKEY,1015,"DEFINEKEY k,sub","Binds a keystoke to a user defined function"
Console,function,DEFINEKEY,1015,"DEFINEKEY k,sub","Binds a keystroke to a user defined function"
Data,command,DELETE,542,"DELETE a, idx [, count]","Deletes 'count' elements at position 'idx' of array 'a'."
Data,command,EMPTY,543,"EMPTY (x)","Returns true if x is: a zero length array, an empty string, an integer or real with the value 0."
Data,command,INSERT,544,"INSERT a, idx, val [, val [, ...]]]","Inserts the values to the specified array at the position idx."
Expand Down Expand Up @@ -66,7 +66,7 @@ Data,statement,RESTORE,572,"RESTORE label","Specifies the position of the next d
Date,command,DATEDMY,573,"DATEDMY dmy| julian_date, BYREF d, BYREF m, BYREF y","Returns the day, month and the year as integers."
Date,command,TIMEHMS,574,"TIMEHMS hms| timer, BYREF h, BYREF m, BYREF s","Converts a time-value to hours, minutes and seconds integer values."
Date,function,DATE,575,"DATE","Returns the current date as string ""DD/MM/YYYY""."
Date,function,DATEFMT,576,"DATEFMT (format, dmy| (d,m,y)| julian_date)","Returns formated date string."
Date,function,DATEFMT,576,"DATEFMT (format, dmy| (d,m,y)| julian_date)","Returns formatted date string."
Date,function,JULIAN,577,"JULIAN (dmy| (d,m,y))","Returns the Julian date. (dates must be greater than 1/1/100 AD)."
Date,function,TIME,578,"TIME","Returns the current time as string ""HH:MM:SS""."
Date,function,WEEKDAY,579,"WEEKDAY (dmy| (d,m,y)| julian_date)","Returns the day of the week (0 = Sunday)."
Expand All @@ -75,18 +75,18 @@ Data,command,APPEND,581,"APPEND a, val [, val [, ...]]","Inserts the values at t
File,command,BLOAD,582,"BLOAD filename[, address]","Loads a specified memory image file into memory."
File,command,BPUTC,583,"BPUTC #fileN; byte","Writes a byte on file or device. (Binary mode)."
File,command,BSAVE,584,"BSAVE filename, address, length","Copies a specified portion of memory to a specified file."
File,command,CHDIR,585,"CHDIR dir","Changes the current working directory. Not supported on PalmOS version."
File,command,CHDIR,585,"CHDIR dir","Changes the current working directory."
File,command,CHMOD,586,"CHMOD file, mode","Change permissions of a file. See also ACCESS."
File,command,CLOSE,587,"CLOSE #fileN","Close a file or device."
File,command,COPY,588,"COPY ""file"", ""newfile""","Makes a copy of specified file to the 'newfile'."
File,command,DIRWALK,589,"DIRWALK directory [, wildcards] [USE ...]","Walk through the specified directories. The user-defined function must returns zero to stop the process."
File,command,INPUT,590,"INPUT #fileN; var1 [,delim] [, var2 [,delim]] ...","Reads data from file."
File,command,KILL,591,"KILL ""file""","Deletes the specified file."
File,command,LOCK,592,"LOCK","Lock a record or an area (not yet implemented)."
File,command,MKDIR,593,"MKDIR dir","Create a directory. Not supported on PalmOS version."
File,command,MKDIR,593,"MKDIR dir","Create a directory."
File,command,OPEN,594,"OPEN file [FOR {INPUT|OUTPUT|APPEND}] AS #fileN","Makes a file or device available for sequential input, sequential output."
File,command,RENAME,595,"RENAME ""file"", ""newname""","Renames the specified file."
File,command,RMDIR,596,"RMDIR dir","Removes a directory. Not supported on PalmOS version."
File,command,RMDIR,596,"RMDIR dir","Removes a directory."
File,command,SEEK,597,"SEEK #fileN; pos","Sets file position for the next read/write."
File,command,TLOAD,598,"TLOAD file, BYREF var [, type]","Loads a text file into array variable. Each text-line is an array element. type 0 = load into array (default), 1 = load into string."
File,command,TSAVE,599,"TSAVE file, var","Writes an array to a text file. Each array element is a text-line."
Expand All @@ -107,14 +107,14 @@ Graphics,command,CIRCLE,613,"CIRCLE [STEP] x,y,r [,aspect [, color]] [COLOR colo
Graphics,command,COLOR,614,"COLOR foreground-color [, background-color]","Specifies the foreground and background colors."
Graphics,command,DRAW,615,"DRAW ""commands""","Draw lines as specified by the given directional commands. "
Graphics,command,DRAWPOLY,616,"DRAWPOLY array [,x-origin,y-origin [, scalef [, color]]] [COLOR color] [FILLED]","Draws a polyline. "
Graphics,command,IMAGE,617,"IMAGE #handle, index, x, y [,sx,sy [,w,h]]","Display a graphical image."
Graphics,command,IMAGE,617,"IMAGE [#handle | fileName | http://path-to-file.png | image-var | array of pixmap data]","Creates a graphical image object providing access to the following sub-commands: show([x,y [,zindex [,opacity]]]), hide, save([x,y [,w,h]])"
Graphics,command,LINE,618,"LINE [STEP] x,y [,|STEP x2,y2] [, color| COLOR color]","Draws a line."
Graphics,command,PAINT,619,"PAINT [STEP] x, y [,fill-color [,border-color]]","Fills an enclosed area on the graphics screen with a specific color. x,y = Screen coordinate (column, row) within the area that is to be filled."
Graphics,command,PLOT,620,"PLOT xmin, xmax USE f(x)","Graph of f(x)."
Graphics,command,PSET,621,"PSET [STEP] x,y [, color| COLOR color]","Draw a pixel."
Graphics,command,RECT,622,"RECT [STEP] x,y [,|STEP x2,y2] [, color| COLOR color] [FILLED]","Draws a rectangular parallelogram."
Graphics,command,VIEW,623,"VIEW [x1,y1,x2,y2 [,color [,border-color]]]","Defines a viewport. The viewport defined by VIEW is disabled by a VIEW command with no parameters."
Graphics,command,WINDOW,624,"WINDOW [x1,y1,x2,y2]","The WINDOW command allows you to redefine the corners of the display screen as a pair of ""world"" coordinates."
Graphics,command,WINDOW,624,"WINDOW [left,bottom,right,top]","The WINDOW command allows you to redefine the corners of the display screen as a pair of ""world"" coordinates. WINDOW is also overloaded as a function, returning a system object providing access to the following sub-commands: graphicsScreen1, graphicsScreen2, textScreen, alert, ask, menu, message, showKeypad, insetTextScreen"
Graphics,function,PEN,627,"PEN (0..14)","Returns the PEN/MOUSE data."
Graphics,function,POINT,628,"POINT (x [, y])","Returns the color of the pixel at x,y."
Graphics,function,RGB,629,"RGB (r, g, b)","Returns the RGB color codes for the specified values. Takes values 0..255 for each of the color."
Expand Down
4 changes: 2 additions & 2 deletions ide/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.sourceforge.smallbasic"
android:installLocation="preferExternal"
android:versionCode="15"
android:versionName="0.12.0">
android:versionCode="16"
android:versionName="0.12.1">
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="9"/>

Expand Down
4 changes: 2 additions & 2 deletions ide/android/assets/main.bas
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub do_about()
print "(_ ._ _ _.|||_) /\ (_ |/ "
print "__)| | |(_||||_)/--\__)|\_"
print
print "Version 0.12.0"
print "Version 0.12.1"
print
print "Copyright (c) 2002-2015 Chris Warren-Smith"
print "Copyright (c) 1999-2006 Nic Christopoulos" + chr(10)
Expand Down Expand Up @@ -183,7 +183,7 @@ sub listFiles(byref frm, path, byref basList, byref dirList)
name = ent
if (isdir(path + name)) then
dirList << name
else if (right(ent, 4) == ".bas") then
else if (lower(right(ent, 4)) == ".bas") then
basList << name
endif
next ent
Expand Down
Loading