Skip to content

Commit 3e10553

Browse files
committed
Merge pull request #29 from chrisws/0_11_20
0 11 20
2 parents 8e63da6 + 4e8770b commit 3e10553

File tree

31 files changed

+917
-321
lines changed

31 files changed

+917
-321
lines changed

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2015-08-26
2+
Editor fixes:
3+
- now displays an i-beam/edit cursor
4+
- highlighting for numbers and keywords
5+
- F1 key for keywords surrounded by punctuation
6+
- page scrolling with up/down arrow keys
7+
- pressing tab at the bottom no longer jumps to the top
8+
- display additional editor context menu items
9+
Added a basic debugger
10+
111
2015-08-02
212
Fix display output before DELAY
313
Fix LET command problem found in 32bit linux

configure.ac

Lines changed: 1 addition & 1 deletion
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.19])
10+
AC_INIT([smallbasic], [0.11.20])
1111
AC_CONFIG_SRCDIR([configure.ac])
1212

1313
AC_CANONICAL_TARGET

ide/android/assets/main.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ sub do_about()
5656
print "(_ ._ _ _.|||_) /\ (_ |/ "
5757
print "__)| | |(_||||_)/--\__)|\_"
5858
print
59-
print "Version 0.11.19"
59+
print "Version 0.11.20"
6060
print
6161
print "Copyright (c) 2002-2015 Chris Warren-Smith"
6262
print "Copyright (c) 1999-2006 Nic Christopoulos" + chr(10)

samples/distro-examples/games/sokoban.levels

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; $Id$
21
; Original sokoban levels
32
;
43

@@ -466,7 +465,7 @@
466465

467466

468467
; 30
469-
###########
468+
###########
470469
# # #
471470
##### # $ $ #
472471
# ##### $## # ##

src/common/brun.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,6 @@ void bc_loop(int isf) {
746746
bcip_t next_ip;
747747
int i;
748748
int proc_level = 0;
749-
byte trace_flag = 0;
750749
byte code = 0;
751750

752751
// setup event checker time = 50ms
@@ -815,8 +814,8 @@ void bc_loop(int isf) {
815814
continue;
816815
case kwTYPE_LINE:
817816
prog_line = code_getaddr();
818-
if (trace_flag) {
819-
dev_printf("<%d>", prog_line);
817+
if (opt_trace_on) {
818+
dev_trace_line(prog_line);
820819
}
821820
continue;
822821
case kwLET:
@@ -1031,10 +1030,10 @@ void bc_loop(int isf) {
10311030
cmd_fseek();
10321031
break;
10331032
case kwTRON:
1034-
trace_flag = 1;
1033+
opt_trace_on = 1;
10351034
continue;
10361035
case kwTROFF:
1037-
trace_flag = 0;
1036+
opt_trace_on = 0;
10381037
continue;
10391038
case kwSTOP:
10401039
case kwEND:
@@ -1088,8 +1087,8 @@ void bc_loop(int isf) {
10881087
prog_ip++;
10891088
if (code == kwTYPE_LINE) {
10901089
prog_line = code_getaddr();
1091-
if (trace_flag) {
1092-
dev_printf("<%d>", prog_line);
1090+
if (opt_trace_on) {
1091+
dev_trace_line(prog_line);
10931092
}
10941093
}
10951094
}

src/common/device.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,3 +426,9 @@ void v_create_form(var_p_t var) {}
426426
void v_create_window(var_p_t var) {}
427427
void dev_show_page() {}
428428
#endif
429+
430+
#if !defined(_SDL)
431+
void dev_trace_line(int lineNo) {
432+
dev_printf("<%d>", lineNo);
433+
}
434+
#endif

src/common/device.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,13 @@ void dev_destroy_file_list(char_p_t *list, int count);
10361036
*/
10371037
dword dev_get_millisecond_count();
10381038

1039+
/**
1040+
* @ingroup dev_f
1041+
*
1042+
* Trace or debug at the given line number
1043+
*/
1044+
void dev_trace_line(int lineNo);
1045+
10391046
#if defined(__cplusplus)
10401047
}
10411048
#endif

src/common/inet.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include <errno.h>
1919
#include <sys/types.h>
2020

21+
#if defined(__cplusplus)
22+
extern "C" {
23+
#endif
24+
2125
typedef int socket_t;
2226

2327
/**
@@ -120,11 +124,15 @@ void net_disconnect(socket_t s);
120124
/**
121125
* @ingroup net
122126
*
123-
* returns true if something is waitting in input-buffer
127+
* returns true if something is waiting in input-buffer
124128
*
125129
* @param s the socket
126-
* @return non-zero if something is waitting in input-buffer; otherwise returns 0
130+
* @return non-zero if something is waiting in input-buffer; otherwise returns 0
127131
*/
128132
int net_peek(socket_t s);
129133

134+
#if defined(__cplusplus)
135+
}
136+
#endif
137+
130138
#endif

src/common/pproc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#define PV_FILE 1
3232
#define PV_LOG 2
3333
#define PV_STRING 3
34+
#define PV_NET 4
3435

3536
#if defined(__cplusplus)
3637
extern "C" {

src/common/proc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "common/sys.h"
1111
#include "common/pproc.h"
1212
#include "common/messages.h"
13+
#include "common/inet.h"
1314
#include <limits.h>
1415

1516
/*
@@ -254,6 +255,9 @@ void pv_write(char *str, int method, int handle) {
254255
}
255256
strcat((char *) vp->v.p.ptr, str);
256257
break;
258+
case PV_NET:
259+
net_print((socket_t) handle, (const char *)str);
260+
break;
257261
default:
258262
dev_print(str);
259263
}

0 commit comments

Comments
 (0)