diff options
| author | Keith Packard <keithp@keithp.com> | 2017-11-17 23:23:50 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-11-17 23:26:59 -0800 | 
| commit | cf5729a0bae51172f12fc9ec4339d4e975a45fcc (patch) | |
| tree | f67bef57d31f5f202718f7e8dbc6f41ac6b6c346 /src/lisp/ao_lisp_cons.c | |
| parent | e1acf5eb12aceda7aa838df031c1da1129d0fa5d (diff) | |
altos/lisp: Finish first pass through r7rs
* print -> write, patom -> display
* Add read-char, write-char
* Add exit, current-jiffy, current-second, jiffies-per-second
* Add for-each and string-for-each
* Avoid duplicate builtins with different atoms
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_cons.c')
| -rw-r--r-- | src/lisp/ao_lisp_cons.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/lisp/ao_lisp_cons.c b/src/lisp/ao_lisp_cons.c index 8d607372..9379597c 100644 --- a/src/lisp/ao_lisp_cons.c +++ b/src/lisp/ao_lisp_cons.c @@ -123,7 +123,7 @@ ao_lisp_cons_free(struct ao_lisp_cons *cons)  }  void -ao_lisp_cons_print(ao_poly c) +ao_lisp_cons_write(ao_poly c)  {  	struct ao_lisp_cons *cons = ao_lisp_poly_cons(c);  	int	first = 1; @@ -131,14 +131,14 @@ ao_lisp_cons_print(ao_poly c)  	while (cons) {  		if (!first)  			printf(" "); -		ao_lisp_poly_print(cons->car); +		ao_lisp_poly_write(cons->car);  		c = cons->cdr;  		if (ao_lisp_poly_type(c) == AO_LISP_CONS) {  			cons = ao_lisp_poly_cons(c);  			first = 0;  		} else {  			printf(" . "); -			ao_lisp_poly_print(c); +			ao_lisp_poly_write(c);  			cons = NULL;  		}  	} @@ -146,12 +146,12 @@ ao_lisp_cons_print(ao_poly c)  }  void -ao_lisp_cons_patom(ao_poly c) +ao_lisp_cons_display(ao_poly c)  {  	struct ao_lisp_cons *cons = ao_lisp_poly_cons(c);  	while (cons) { -		ao_lisp_poly_patom(cons->car); +		ao_lisp_poly_display(cons->car);  		cons = ao_lisp_poly_cons(cons->cdr);  	}  } | 
