diff options
| author | Keith Packard <keithp@keithp.com> | 2017-12-03 19:47:03 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-12-03 19:47:03 -0800 | 
| commit | ed6967cef5d82baacafe1c23229f44d58c838326 (patch) | |
| tree | 42a297a91356516df606d5a31002f6caa1df3b8a /src/lisp/ao_lisp_read.c | |
| parent | b9009b3916956db00b7b78bd06fb0df704690eb1 (diff) | |
altos/lisp: Split out read debug, add memory validation
Split read debug into a separate #define to reduce debug noise
Add some memory validation -- validate stash API, and validate
cons_free calls.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_read.c')
| -rw-r--r-- | src/lisp/ao_lisp_read.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/lisp/ao_lisp_read.c b/src/lisp/ao_lisp_read.c index f3b627bb..0ca12a81 100644 --- a/src/lisp/ao_lisp_read.c +++ b/src/lisp/ao_lisp_read.c @@ -464,7 +464,7 @@ _lex(void)  static inline int lex(void)  {  	int	parse_token = _lex(); -	DBGI("token %d (%s)\n", parse_token, token_string); +	RDBGI("token %d (%s)\n", parse_token, token_string);  	return parse_token;  } @@ -481,8 +481,8 @@ struct ao_lisp_cons	*ao_lisp_read_stack;  static int  push_read_stack(int cons, int read_state)  { -	DBGI("push read stack %p 0x%x\n", ao_lisp_read_cons, read_state); -	DBG_IN(); +	RDBGI("push read stack %p 0x%x\n", ao_lisp_read_cons, read_state); +	RDBG_IN();  	if (cons) {  		ao_lisp_read_stack = ao_lisp_cons_cons(ao_lisp_cons_poly(ao_lisp_read_cons),  						       ao_lisp__cons(ao_lisp_int_poly(read_state), @@ -513,8 +513,8 @@ pop_read_stack(int cons)  		ao_lisp_read_cons_tail = 0;  		ao_lisp_read_stack = 0;  	} -	DBG_OUT(); -	DBGI("pop read stack %p %d\n", ao_lisp_read_cons, read_state); +	RDBG_OUT(); +	RDBGI("pop read stack %p %d\n", ao_lisp_read_cons, read_state);  	return read_state;  } | 
