File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -7303,7 +7303,7 @@ void initenv () {
7303
7303
const char SDMain[] PROGMEM = " (with-sd-card (file \" " sdmainfile " \" ) (loop (let ((form (read file))) (unless form (return)) (eval form))))" ;
7304
7304
int SDMainIndex = 0 ;
7305
7305
7306
- int gsdmain () {
7306
+ int gsdmain () {
7307
7307
if (LastChar) {
7308
7308
char temp = LastChar;
7309
7309
LastChar = 0 ;
@@ -7313,21 +7313,21 @@ int gsdmain() {
7313
7313
return (c != 0 ) ? c : -1 ; // -1?
7314
7314
}
7315
7315
7316
- void sdmain () {
7316
+ void sdmain () {
7317
7317
SD.begin ();
7318
- if (ulisp_setup_error_handling ()) return ;
7318
+ if (initerror ()) return ;
7319
7319
object *line = read (gsdmain);
7320
7320
push (line, GCStack);
7321
7321
(void )eval (line, NULL );
7322
7322
pop (GCStack);
7323
7323
}
7324
7324
7325
- bool ulisp_setup_error_handling () {
7325
+ bool initerror () {
7326
7326
if (setjmp (toplevel_errorbuffer)) return true ;
7327
7327
return false ;
7328
7328
}
7329
7329
7330
- void ulisp_init () {
7330
+ void ulisp_init () {
7331
7331
initworkspace ();
7332
7332
initenv ();
7333
7333
initsleep ();
@@ -7342,9 +7342,7 @@ void setup () {
7342
7342
while (1 );
7343
7343
}
7344
7344
ulisp_init ();
7345
- #if defined(runfromsd)
7346
7345
sdmain ();
7347
- #endif
7348
7346
pfstring (PSTR (" \n\n uLisp 4.3 " ), pserial); pln (pserial);
7349
7347
}
7350
7348
@@ -7381,7 +7379,7 @@ void repl (object *env) {
7381
7379
loop - the Arduino IDE main execution loop
7382
7380
*/
7383
7381
void loop () {
7384
- if (ulisp_setup_error_handling ()) {
7382
+ if (initerror ()) {
7385
7383
; // noop
7386
7384
}
7387
7385
// Come here after error
You can’t perform that action at this time.
0 commit comments