Skip to content

Commit a8470af

Browse files
spaces, rename
1 parent 1de2908 commit a8470af

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ulisp-esp32.ino

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7303,7 +7303,7 @@ void initenv () {
73037303
const char SDMain[] PROGMEM = "(with-sd-card (file \"" sdmainfile "\") (loop (let ((form (read file))) (unless form (return)) (eval form))))";
73047304
int SDMainIndex = 0;
73057305

7306-
int gsdmain() {
7306+
int gsdmain () {
73077307
if (LastChar) {
73087308
char temp = LastChar;
73097309
LastChar = 0;
@@ -7313,21 +7313,21 @@ int gsdmain() {
73137313
return (c != 0) ? c : -1; // -1?
73147314
}
73157315

7316-
void sdmain() {
7316+
void sdmain () {
73177317
SD.begin();
7318-
if (ulisp_setup_error_handling()) return;
7318+
if (initerror()) return;
73197319
object *line = read(gsdmain);
73207320
push(line, GCStack);
73217321
(void)eval(line, NULL);
73227322
pop(GCStack);
73237323
}
73247324

7325-
bool ulisp_setup_error_handling() {
7325+
bool initerror () {
73267326
if (setjmp(toplevel_errorbuffer)) return true;
73277327
return false;
73287328
}
73297329

7330-
void ulisp_init() {
7330+
void ulisp_init () {
73317331
initworkspace();
73327332
initenv();
73337333
initsleep();
@@ -7342,9 +7342,7 @@ void setup () {
73427342
while (1);
73437343
}
73447344
ulisp_init();
7345-
#if defined(runfromsd)
73467345
sdmain();
7347-
#endif
73487346
pfstring(PSTR("\n\nuLisp 4.3 "), pserial); pln(pserial);
73497347
}
73507348

@@ -7381,7 +7379,7 @@ void repl (object *env) {
73817379
loop - the Arduino IDE main execution loop
73827380
*/
73837381
void loop () {
7384-
if (ulisp_setup_error_handling()) {
7382+
if (initerror()) {
73857383
; // noop
73867384
}
73877385
// Come here after error

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy