https://github.com/jrincayc/ucblogo-code
Revision b2227ae71f14b631a8e1c9fead6fed7f2db2f6e6 authored by Dan Malec on 13 November 2020, 01:06:03 UTC, committed by Dan Malec on 13 November 2020, 02:04:05 UTC
On Raspberry Pi (ARM), converting the int output of getc to char and then back to int results in the EOF character being represented as 255 instead of -1. This causes infinite loops when attempting to detect the end of input from the editor.
1 parent a7bd4e1
Tip revision: b2227ae71f14b631a8e1c9fead6fed7f2db2f6e6 authored by Dan Malec on 13 November 2020, 01:06:03 UTC
ISSUE-67: Pass the output of getc as int.
ISSUE-67: Pass the output of getc as int.
Tip revision: b2227ae
File | Mode | Size |
---|---|---|
Makefile.am | -rw-r--r-- | 3.2 KB |
RENAME-GRAVE-ACCENT | -rw-r--r-- | 1.3 KB |
allopen | -rw-r--r-- | 137 bytes |
allowgetset | -rw-r--r-- | 287 bytes |
and | -rw-r--r-- | 636 bytes |
apply | -rw-r--r-- | 355 bytes |
arc | -rw-r--r-- | 219 bytes |
arctan | -rw-r--r-- | 200 bytes |
arity | -rw-r--r-- | 263 bytes |
array | -rw-r--r-- | 564 bytes |
arrayp | -rw-r--r-- | 85 bytes |
arraytolist | -rw-r--r-- | 187 bytes |
ascii | -rw-r--r-- | 299 bytes |
ashift | -rw-r--r-- | 182 bytes |
back | -rw-r--r-- | 181 bytes |
background | -rw-r--r-- | 144 bytes |
backslashedp | -rw-r--r-- | 601 bytes |
beforep | -rw-r--r-- | 372 bytes |
bf | -rw-r--r-- | 221 bytes |
bfs | -rw-r--r-- | 431 bytes |
bg | -rw-r--r-- | 144 bytes |
bitand | -rw-r--r-- | 111 bytes |
bitnot | -rw-r--r-- | 78 bytes |
bitor | -rw-r--r-- | 108 bytes |
bitxor | -rw-r--r-- | 121 bytes |
bk | -rw-r--r-- | 181 bytes |
bl | -rw-r--r-- | 218 bytes |
buried | -rw-r--r-- | 86 bytes |
buriedp | -rw-r--r-- | 382 bytes |
bury | -rw-r--r-- | 327 bytes |
buryall | -rw-r--r-- | 74 bytes |
buryname | -rw-r--r-- | 116 bytes |
butfirst | -rw-r--r-- | 221 bytes |
butfirsts | -rw-r--r-- | 431 bytes |
butlast | -rw-r--r-- | 218 bytes |
button | -rw-r--r-- | 321 bytes |
buttonact | -rw-r--r-- | 834 bytes |
buttonp | -rw-r--r-- | 238 bytes |
bye | -rw-r--r-- | 67 bytes |
cascade | -rw-r--r-- | 2.6 KB |
case | -rw-r--r-- | 826 bytes |
caseignoredp | -rw-r--r-- | 210 bytes |
catch | -rw-r--r-- | 976 bytes |
char | -rw-r--r-- | 123 bytes |
clean | -rw-r--r-- | 149 bytes |
clearscreen | -rw-r--r-- | 135 bytes |
cleartext | -rw-r--r-- | 50 bytes |
clickpos | -rw-r--r-- | 207 bytes |
close | -rw-r--r-- | 213 bytes |
closeall | -rw-r--r-- | 110 bytes |
co | -rw-r--r-- | 432 bytes |
combine | -rw-r--r-- | 149 bytes |
commandline | -rw-r--r-- | 115 bytes |
cond | -rw-r--r-- | 1.0 KB |
contents | -rw-r--r-- | 217 bytes |
continue | -rw-r--r-- | 432 bytes |
copydef | -rw-r--r-- | 434 bytes |
cos | -rw-r--r-- | 75 bytes |
count | -rw-r--r-- | 265 bytes |
crossmap | -rw-r--r-- | 867 bytes |
cs | -rw-r--r-- | 135 bytes |
cslsload | -rw-r--r-- | 178 bytes |
ct | -rw-r--r-- | 50 bytes |
cursor | -rw-r--r-- | 271 bytes |
ddefmacro | -rw-r--r-- | 4.6 KB |
decreasefont | -rw-r--r-- | 180 bytes |
define | -rw-r--r-- | 830 bytes |
definedp | -rw-r--r-- | 130 bytes |
deq | -rw-r--r-- | 411 bytes |
dequeue | -rw-r--r-- | 202 bytes |
difference | -rw-r--r-- | 256 bytes |
dmacro | -rw-r--r-- | 4.6 KB |
dmaybeoutput | -rw-r--r-- | 763 bytes |
doduntil | -rw-r--r-- | 354 bytes |
dodwhile | -rw-r--r-- | 353 bytes |
dribble | -rw-r--r-- | 378 bytes |
dsetbf | -rw-r--r-- | 484 bytes |
dsetfirst | -rw-r--r-- | 420 bytes |
dsetitem | -rw-r--r-- | 372 bytes |
dsetsegmentsize | -rw-r--r-- | 512 bytes |
ed | -rw-r--r-- | 1.4 KB |
edall | -rw-r--r-- | 72 bytes |
edit | -rw-r--r-- | 1.4 KB |
editfile | -rw-r--r-- | 538 bytes |
edn | -rw-r--r-- | 107 bytes |
edns | -rw-r--r-- | 68 bytes |
edpl | -rw-r--r-- | 104 bytes |
edpls | -rw-r--r-- | 70 bytes |
edps | -rw-r--r-- | 73 bytes |
emptyp | -rw-r--r-- | 110 bytes |
eofp | -rw-r--r-- | 123 bytes |
epspict | -rw-r--r-- | 393 bytes |
equalp | -rw-r--r-- | 877 bytes |
er | -rw-r--r-- | 229 bytes |
erall | -rw-r--r-- | 131 bytes |
erase | -rw-r--r-- | 229 bytes |
erasefile | -rw-r--r-- | 124 bytes |
erf | -rw-r--r-- | 124 bytes |
ern | -rw-r--r-- | 172 bytes |
erns | -rw-r--r-- | 94 bytes |
erpl | -rw-r--r-- | 174 bytes |
erpls | -rw-r--r-- | 101 bytes |
erps | -rw-r--r-- | 100 bytes |
erract | -rw-r--r-- | 154 bytes |
error | -rw-r--r-- | 433 bytes |
exp | -rw-r--r-- | 56 bytes |
fd | -rw-r--r-- | 140 bytes |
fence | -rw-r--r-- | 258 bytes |
filep | -rw-r--r-- | 157 bytes |
fill | -rw-r--r-- | 243 bytes |
filled | -rw-r--r-- | 403 bytes |
filter | -rw-r--r-- | 1018 bytes |
find | -rw-r--r-- | 876 bytes |
first | -rw-r--r-- | 258 bytes |
firsts | -rw-r--r-- | 396 bytes |
font | -rw-r--r-- | 84 bytes |
for | -rw-r--r-- | 1.4 KB |
foreach | -rw-r--r-- | 980 bytes |
forever | -rw-r--r-- | 159 bytes |
form | -rw-r--r-- | 678 bytes |
forward | -rw-r--r-- | 140 bytes |
fput | -rw-r--r-- | 233 bytes |
fs | -rw-r--r-- | 661 bytes |
fullprintp | -rw-r--r-- | 443 bytes |
fullscreen | -rw-r--r-- | 661 bytes |
fulltext | -rw-r--r-- | 656 bytes |
gc | -rw-r--r-- | 934 bytes |
gensym | -rw-r--r-- | 124 bytes |
global | -rw-r--r-- | 549 bytes |
goto | -rw-r--r-- | 214 bytes |
gprop | -rw-r--r-- | 156 bytes |
greaterequalp | -rw-r--r-- | 137 bytes |
greaterp | -rw-r--r-- | 122 bytes |
heading | -rw-r--r-- | 62 bytes |
help | -rw-r--r-- | 769 bytes |
hideturtle | -rw-r--r-- | 192 bytes |
home | -rw-r--r-- | 97 bytes |
ht | -rw-r--r-- | 192 bytes |
if | -rw-r--r-- | 797 bytes |
ifelse | -rw-r--r-- | 314 bytes |
iff | -rw-r--r-- | 197 bytes |
iffalse | -rw-r--r-- | 197 bytes |
ift | -rw-r--r-- | 195 bytes |
iftrue | -rw-r--r-- | 195 bytes |
ignore | -rw-r--r-- | 159 bytes |
increasefont | -rw-r--r-- | 180 bytes |
int | -rw-r--r-- | 211 bytes |
invoke | -rw-r--r-- | 211 bytes |
iseq | -rw-r--r-- | 165 bytes |
item | -rw-r--r-- | 350 bytes |
keyact | -rw-r--r-- | 687 bytes |
keyp | -rw-r--r-- | 553 bytes |
label | -rw-r--r-- | 126 bytes |
labelsize | -rw-r--r-- | 432 bytes |
last | -rw-r--r-- | 145 bytes |
left | -rw-r--r-- | 127 bytes |
lessequalp | -rw-r--r-- | 127 bytes |
lessp | -rw-r--r-- | 113 bytes |
list | -rw-r--r-- | 152 bytes |
listp | -rw-r--r-- | 81 bytes |
listtoarray | -rw-r--r-- | 149 bytes |
ln | -rw-r--r-- | 54 bytes |
load | -rw-r--r-- | 616 bytes |
loadnoisily | -rw-r--r-- | 150 bytes |
loadpict | -rw-r--r-- | 256 bytes |
local | -rw-r--r-- | 574 bytes |
localmake | -rw-r--r-- | 148 bytes |
log10 | -rw-r--r-- | 56 bytes |
logoplatform | -rw-r--r-- | 108 bytes |
logoversion | -rw-r--r-- | 91 bytes |
lowercase | -rw-r--r-- | 131 bytes |
lput | -rw-r--r-- | 262 bytes |
lshift | -rw-r--r-- | 174 bytes |
lt | -rw-r--r-- | 127 bytes |
macroexpand | -rw-r--r-- | 441 bytes |
macrop | -rw-r--r-- | 77 bytes |
make | -rw-r--r-- | 286 bytes |
map | -rw-r--r-- | 1.2 KB |
mapdse | -rw-r--r-- | 1.1 KB |
mdarray | -rw-r--r-- | 372 bytes |
mditem | -rw-r--r-- | 147 bytes |
mdsetitem | -rw-r--r-- | 144 bytes |
member | -rw-r--r-- | 333 bytes |
memberp | -rw-r--r-- | 287 bytes |
minus | -rw-r--r-- | 326 bytes |
modulo | -rw-r--r-- | 152 bytes |
mousepos | -rw-r--r-- | 430 bytes |
name | -rw-r--r-- | 107 bytes |
namelist | -rw-r--r-- | 280 bytes |
namep | -rw-r--r-- | 78 bytes |
names | -rw-r--r-- | 163 bytes |
nodes | -rw-r--r-- | 819 bytes |
nodribble | -rw-r--r-- | 94 bytes |
norefresh | -rw-r--r-- | 388 bytes |
not | -rw-r--r-- | 194 bytes |
notequalp | -rw-r--r-- | 190 bytes |
numberp | -rw-r--r-- | 87 bytes |
op | -rw-r--r-- | 277 bytes |
openappend | -rw-r--r-- | 213 bytes |
openread | -rw-r--r-- | 128 bytes |
openupdate | -rw-r--r-- | 524 bytes |
openwrite | -rw-r--r-- | 918 bytes |
or | -rw-r--r-- | 627 bytes |
output | -rw-r--r-- | 277 bytes |
palette | -rw-r--r-- | 188 bytes |
parse | -rw-r--r-- | 205 bytes |
pause | -rw-r--r-- | 834 bytes |
pc | -rw-r--r-- | 488 bytes |
pd | -rw-r--r-- | 74 bytes |
pe | -rw-r--r-- | 66 bytes |
pen | -rw-r--r-- | 155 bytes |
pencolor | -rw-r--r-- | 488 bytes |
pendown | -rw-r--r-- | 74 bytes |
pendownp | -rw-r--r-- | 72 bytes |
penerase | -rw-r--r-- | 66 bytes |
penmode | -rw-r--r-- | 97 bytes |
penpaint | -rw-r--r-- | 67 bytes |
penpattern | -rw-r--r-- | 55 bytes |
penreverse | -rw-r--r-- | 135 bytes |
pensize | -rw-r--r-- | 206 bytes |
penup | -rw-r--r-- | 70 bytes |
pick | -rw-r--r-- | 90 bytes |
plist | -rw-r--r-- | 322 bytes |
plistp | -rw-r--r-- | 278 bytes |
plists | -rw-r--r-- | 183 bytes |
pllist | -rw-r--r-- | 277 bytes |
po | -rw-r--r-- | 179 bytes |
poall | -rw-r--r-- | 121 bytes |
pon | -rw-r--r-- | 155 bytes |
pons | -rw-r--r-- | 135 bytes |
pop | -rw-r--r-- | 197 bytes |
popl | -rw-r--r-- | 157 bytes |
popls | -rw-r--r-- | 148 bytes |
pops | -rw-r--r-- | 141 bytes |
pos | -rw-r--r-- | 98 bytes |
pot | -rw-r--r-- | 255 bytes |
pots | -rw-r--r-- | 143 bytes |
power | -rw-r--r-- | 108 bytes |
pprop | -rw-r--r-- | 134 bytes |
ppt | -rw-r--r-- | 67 bytes |
pr | -rw-r--r-- | 407 bytes |
prefix | -rw-r--r-- | 88 bytes |
primitivep | -rw-r--r-- | 224 bytes |
primitives | -rw-r--r-- | 232 bytes |
-rw-r--r-- | 407 bytes | |
printdepthlimit | -rw-r--r-- | 147 bytes |
printout | -rw-r--r-- | 179 bytes |
printwidthlimit | -rw-r--r-- | 154 bytes |
procedurep | -rw-r--r-- | 89 bytes |
procedures | -rw-r--r-- | 244 bytes |
product | -rw-r--r-- | 97 bytes |
pu | -rw-r--r-- | 70 bytes |
push | -rw-r--r-- | 291 bytes |
px | -rw-r--r-- | 135 bytes |
queue | -rw-r--r-- | 291 bytes |
quoted | -rw-r--r-- | 135 bytes |
quotient | -rw-r--r-- | 364 bytes |
radarctan | -rw-r--r-- | 282 bytes |
radcos | -rw-r--r-- | 78 bytes |
radsin | -rw-r--r-- | 76 bytes |
random | -rw-r--r-- | 444 bytes |
rawascii | -rw-r--r-- | 246 bytes |
rc | -rw-r--r-- | 478 bytes |
rcs | -rw-r--r-- | 488 bytes |
readchar | -rw-r--r-- | 478 bytes |
readchars | -rw-r--r-- | 488 bytes |
reader | -rw-r--r-- | 115 bytes |
readlist | -rw-r--r-- | 578 bytes |
readpos | -rw-r--r-- | 70 bytes |
readrawline | -rw-r--r-- | 460 bytes |
readword | -rw-r--r-- | 668 bytes |
redefp | -rw-r--r-- | 99 bytes |
reduce | -rw-r--r-- | 1.3 KB |
refresh | -rw-r--r-- | 245 bytes |
remainder | -rw-r--r-- | 155 bytes |
remdup | -rw-r--r-- | 217 bytes |
remove | -rw-r--r-- | 114 bytes |
remprop | -rw-r--r-- | 121 bytes |
repcount | -rw-r--r-- | 333 bytes |
repeat | -rw-r--r-- | 92 bytes |
rerandom | -rw-r--r-- | 458 bytes |
reverse | -rw-r--r-- | 124 bytes |
right | -rw-r--r-- | 121 bytes |
rl | -rw-r--r-- | 578 bytes |
round | -rw-r--r-- | 55 bytes |
rseq | -rw-r--r-- | 233 bytes |
rt | -rw-r--r-- | 121 bytes |
run | -rw-r--r-- | 150 bytes |
runparse | -rw-r--r-- | 282 bytes |
runresult | -rw-r--r-- | 379 bytes |
rw | -rw-r--r-- | 668 bytes |
save | -rw-r--r-- | 588 bytes |
savel | -rw-r--r-- | 195 bytes |
savepict | -rw-r--r-- | 397 bytes |
screenmode | -rw-r--r-- | 109 bytes |
scrunch | -rw-r--r-- | 187 bytes |
se | -rw-r--r-- | 243 bytes |
sentence | -rw-r--r-- | 243 bytes |
setbackground | -rw-r--r-- | 162 bytes |
setbg | -rw-r--r-- | 162 bytes |
setcslsloc | -rw-r--r-- | 189 bytes |
setcursor | -rw-r--r-- | 318 bytes |
seteditor | -rw-r--r-- | 171 bytes |
setfont | -rw-r--r-- | 327 bytes |
seth | -rw-r--r-- | 164 bytes |
setheading | -rw-r--r-- | 164 bytes |
sethelploc | -rw-r--r-- | 217 bytes |
setitem | -rw-r--r-- | 219 bytes |
setlabelheight | -rw-r--r-- | 567 bytes |
setlibloc | -rw-r--r-- | 324 bytes |
setmargins | -rw-r--r-- | 757 bytes |
setpalette | -rw-r--r-- | 405 bytes |
setpc | -rw-r--r-- | 629 bytes |
setpen | -rw-r--r-- | 228 bytes |
setpencolor | -rw-r--r-- | 629 bytes |
setpenpattern | -rw-r--r-- | 162 bytes |
setpensize | -rw-r--r-- | 260 bytes |
setpos | -rw-r--r-- | 142 bytes |
setprefix | -rw-r--r-- | 469 bytes |
setread | -rw-r--r-- | 376 bytes |
setreadpos | -rw-r--r-- | 316 bytes |
setscrunch | -rw-r--r-- | 1.0 KB |
settc | -rw-r--r-- | 1.0 KB |
settemploc | -rw-r--r-- | 248 bytes |
settextcolor | -rw-r--r-- | 1.0 KB |
settextfont | -rw-r--r-- | 336 bytes |
settextsize | -rw-r--r-- | 532 bytes |
setwrite | -rw-r--r-- | 1.3 KB |
setwritepos | -rw-r--r-- | 317 bytes |
setx | -rw-r--r-- | 144 bytes |
setxy | -rw-r--r-- | 139 bytes |
sety | -rw-r--r-- | 140 bytes |
shell | -rw-r--r-- | 1.3 KB |
show | -rw-r--r-- | 162 bytes |
shownp | -rw-r--r-- | 128 bytes |
showturtle | -rw-r--r-- | 43 bytes |
sin | -rw-r--r-- | 73 bytes |
splitscreen | -rw-r--r-- | 233 bytes |
sqrt | -rw-r--r-- | 77 bytes |
ss | -rw-r--r-- | 233 bytes |
st | -rw-r--r-- | 43 bytes |
standout | -rw-r--r-- | 1.0 KB |
startup | -rw-r--r-- | 139 bytes |
step | -rw-r--r-- | 431 bytes |
stepped | -rw-r--r-- | 88 bytes |
steppedp | -rw-r--r-- | 387 bytes |
stop | -rw-r--r-- | 195 bytes |
substringp | -rw-r--r-- | 221 bytes |
sum | -rw-r--r-- | 85 bytes |
tag | -rw-r--r-- | 180 bytes |
test | -rw-r--r-- | 275 bytes |
text | -rw-r--r-- | 360 bytes |
textscreen | -rw-r--r-- | 232 bytes |
textsize | -rw-r--r-- | 222 bytes |
thing | -rw-r--r-- | 312 bytes |
throw | -rw-r--r-- | 1.5 KB |
to | -rw-r--r-- | 3.7 KB |
towards | -rw-r--r-- | 169 bytes |
trace | -rw-r--r-- | 398 bytes |
traced | -rw-r--r-- | 86 bytes |
tracedp | -rw-r--r-- | 382 bytes |
transfer | -rw-r--r-- | 812 bytes |
ts | -rw-r--r-- | 232 bytes |
turtlemode | -rw-r--r-- | 93 bytes |
type | -rw-r--r-- | 1.0 KB |
unbury | -rw-r--r-- | 179 bytes |
unburyall | -rw-r--r-- | 75 bytes |
unburyname | -rw-r--r-- | 122 bytes |
unburyonedit | -rw-r--r-- | 223 bytes |
unstep | -rw-r--r-- | 73 bytes |
until | -rw-r--r-- | 347 bytes |
untrace | -rw-r--r-- | 73 bytes |
uppercase | -rw-r--r-- | 131 bytes |
usealternatenames | -rw-r--r-- | 148 bytes |
vbarredp | -rw-r--r-- | 737 bytes |
wait | -rw-r--r-- | 248 bytes |
while | -rw-r--r-- | 346 bytes |
window | -rw-r--r-- | 398 bytes |
word | -rw-r--r-- | 100 bytes |
wordp | -rw-r--r-- | 81 bytes |
wrap | -rw-r--r-- | 413 bytes |
writepos | -rw-r--r-- | 72 bytes |
writer | -rw-r--r-- | 115 bytes |
xcor | -rw-r--r-- | 79 bytes |
ycor | -rw-r--r-- | 79 bytes |
Computing file changes ...