Skip to content

Commit 2568f52

Browse files
fix flags not being saved problem
1 parent f7ce205 commit 2568f52

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ulisp-esp32.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,10 @@ object *fn_throw (object *args, object *env) {
25632563
object *message = first(args);
25642564
if (!stringp(message)) error(THROW, notastring, message);
25652565
if (!tstflag(MUFFLEERRORS)) {
2566+
uint16_t temp = Flags;
2567+
clrflag(PRINTREADABLY);
25662568
pfstring(PSTR("Error: "), pserial); printstring(message, pserial);
2569+
Flags = temp;
25672570
pln(pserial);
25682571
}
25692572
GlobalErrorString = message;
@@ -3755,7 +3758,7 @@ object *fn_writestring (object *args, object *env) {
37553758
(void) env;
37563759
object *obj = first(args);
37573760
pfun_t pfun = pstreamfun(cdr(args));
3758-
char temp = Flags;
3761+
uint16_t temp = Flags;
37593762
clrflag(PRINTREADABLY);
37603763
printstring(obj, pfun);
37613764
Flags = temp;
@@ -3766,7 +3769,7 @@ object *fn_writeline (object *args, object *env) {
37663769
(void) env;
37673770
object *obj = first(args);
37683771
pfun_t pfun = pstreamfun(cdr(args));
3769-
char temp = Flags;
3772+
uint16_t temp = Flags;
37703773
clrflag(PRINTREADABLY);
37713774
printstring(obj, pfun);
37723775
pln(pfun);
@@ -5378,7 +5381,7 @@ void printobject (object *form, pfun_t pfun) {
53785381
}
53795382

53805383
void prin1object (object *form, pfun_t pfun) {
5381-
char temp = Flags;
5384+
uint16_t temp = Flags;
53825385
clrflag(PRINTREADABLY);
53835386
printobject(form, pfun);
53845387
Flags = temp;

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