diff options
| author | Keith Packard <keithp@keithp.com> | 2016-11-09 16:22:43 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-02-20 11:16:50 -0800 | 
| commit | 417161dbb36323b5a6572859dedad02ca92fc65c (patch) | |
| tree | e8d8476ec82339bb655dbd0c9d1f95cba90caadc /src/lisp/ao_lisp_mem.c | |
| parent | 0ee44c8e4bf5dabe6a97bf76b366c8b767c387f8 (diff) | |
altos/lisp: Clean up OS integration bits, add defun
Provide an abstraction for the OS interface so that it
can build more cleanly on Linux and AltOS. Add defun macro.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_mem.c')
| -rw-r--r-- | src/lisp/ao_lisp_mem.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/lisp/ao_lisp_mem.c b/src/lisp/ao_lisp_mem.c index 476843d8..66e09db0 100644 --- a/src/lisp/ao_lisp_mem.c +++ b/src/lisp/ao_lisp_mem.c @@ -331,7 +331,7 @@ ao_lisp_collect(void)  			move_object();  			DBG("\tbusy size %d\n", move_size);  			if (move_size == 0) -				abort(); +				ao_lisp_abort();  			clear_object(ao_lisp_busy, move_old, move_size);  			mark_object(ao_lisp_busy, move_new, move_size);  			if (busy_object(ao_lisp_cons, move_old)) { @@ -431,7 +431,7 @@ ao_lisp_move(const struct ao_lisp_type *type, void **ref)  #endif  	DBG_MOVE("object %d\n", DBG_OFFSET(addr));  	if (!AO_LISP_IS_POOL(a)) -		abort(); +		ao_lisp_abort();  	DBG_MOVE_IN();  	addr = check_move(addr, size);  	if (addr != *ref) @@ -495,7 +495,7 @@ ao_lisp_poly_move(ao_poly *ref, uint8_t do_note_cons)  			type = ao_lisp_other_type(ao_lisp_move_map(ao_lisp_poly_other(p)));  		if (type >= AO_LISP_NUM_TYPE) -			abort(); +			ao_lisp_abort();  		lisp_type = ao_lisp_types[type];  		if (!lisp_type) @@ -601,7 +601,7 @@ ao_lisp_root_add(const struct ao_lisp_type *type, void *addr)  			return 1;  		}  	} -	abort(); +	ao_lisp_abort();  	return 0;  } | 
