Skip to content

Commit 4125219

Browse files
committed
COMMON: Fix emcc build. Updated ChangeLog
1 parent df2e113 commit 4125219

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

ChangeLog

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
2023-01-20 (12.26)
2+
COMMON: Fixed DIM lower bound
3+
COMMON: RGB and RGBF now clamp parameters
4+
COMMON: Fix for BIN and changes to return values of POLYCENT and POLYAREA
5+
16
2023-01-09 (12.26)
27
COMMON: INPUT #F; now supports up to 64 parameters
8+
COMMON: Implemented STATMEDIAN() to calculate the median of a data sample in statistics.
9+
COMMON: Implemented STATSTD() to calculate standard deviation
310

411
2023-01-09 (12.26)
5-
COMMON: fix printing chr(0) into a file or network interface
12+
COMMON: Fix printing chr(0) into a file or network interface
13+
14+
2022-11-13 (12.26)
15+
COMMON: Fix line-chart line drawing to use current foreground color
616

717
2022-11-13 (12.25)
818
ANDROID: Updated file manager web UI:

documentation/sbasic_ref.csv

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,12 @@ Math,function,SGN,756,"SGN (x)","Sign of x (+1 for positive, -1 for negative and
237237
Math,function,SIN,757,"SIN (x)","Sine."
238238
Math,function,SINH,758,"SINH (x)","Sine."
239239
Math,function,SQR,759,"SQR (x)","Square root of x."
240-
Math,function,STATMEAN,760,"STATMEAN (...)","Arithmetical mean."
241-
Math,function,STATMEANDEV,761,"STATMEANDEV (...)","Mean deviation."
242-
Math,function,STATSPREADP,762,"STATSPREADS (...)","Sample spread."
243-
Math,function,STATSPREADS,763,"STATSPREADP (...)","Population spread."
240+
Math,function,STATMEAN,760,"STATMEAN (...)","Arithmetical mean (average). "
241+
Math,function,STATMEANDEV,761,"STATMEANDEV (...)","Mean absolute deviation around arithmetic mean."
242+
Math,function,STATMEDIAN,1801,"STATMEDIAN (...)","The median of a finite list of numbers is the ""middle"" number, when those numbers are listed in order from smallest to ..."
243+
Math,function,STATSPREADP,762,"STATSPREADP (...)","Biased sample variance."
244+
Math,function,STATSPREADS,763,"STATSPREADS (...)","Unbiased sample variance."
245+
Math,function,STATSTD,1800,"STATSTD (...)","(Corrected sample) standard deviation."
244246
Math,function,SUM,764,"SUM (...)","Sum of value."
245247
Math,function,SUMSQ,765,"SUMSQ (...)","Sum of square value."
246248
Math,function,TAN,766,"TAN (x)","Tangent."

src/common/blib_func.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ void cmd_intN(long funcCode, var_t *r) {
19381938
// i <- RGB(r,g,b)
19391939
// i <- RGBF(r,g,b)
19401940
case kwRGB:
1941-
case kwRGBF:
1941+
case kwRGBF: {
19421942
var_num_t rc, gc, bc;
19431943

19441944
par_massget("FFF", &rc, &gc, &bc);
@@ -1955,7 +1955,7 @@ void cmd_intN(long funcCode, var_t *r) {
19551955

19561956
r->v.i = -r->v.i;
19571957
break;
1958-
1958+
}
19591959
default:
19601960
rt_raise("Unsupported built-in function call %ld", funcCode);
19611961
}

src/platform/emcc/runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ int osd_devrestore(void) {
645645
//
646646
// not implemented
647647
//
648-
void System::completeKeyword(int index) {}
648+
void System::completeKeyword(int index) const {}
649649
void maHideVirtualKeyboard(void) {}
650650
void maShowVirtualKeyboard(void) {}
651651
void maUpdateScreen(void) {}

0 commit comments

Comments
 (0)