diff --git a/GNUmakefile b/GNUmakefile index f6a7e704..ee72c6a3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -129,6 +129,7 @@ mescc-check: t-check build-aux/mes-snarf.scm $< mini-mes: mini-mes.h mini-mes.i mini-mes.environment.i mini-mes.symbols.i +mini-mes: vector.c mini-mes: mlibc.c mstart.c mini-mes: GNUmakefile mini-mes: module/mes/read-0-32.mo @@ -140,6 +141,7 @@ mini-mes: scaffold/mini-mes.c chmod +x $@ guile-mini-mes: mini-mes.h mini-mes.i mini-mes.environment.i mini-mes.symbols.i +guile-mini-mes: vector.c guile-mini-mes: module/mes/read-0-32.mo guile-mini-mes: scaffold/mini-mes.c guile/mescc.scm $< > $@ || rm -f $@ diff --git a/scaffold/mini-mes.c b/scaffold/mini-mes.c index d3b85db2..7ec9ba2e 100644 --- a/scaffold/mini-mes.c +++ b/scaffold/mini-mes.c @@ -223,9 +223,7 @@ SCM make_cell_ (SCM type, SCM car, SCM cdr) { SCM x = alloc (1); -#if __GNUC__ assert (TYPE (type) == TNUMBER); -#endif TYPE (x) = VALUE (type); if (VALUE (type) == TCHAR || VALUE (type) == TNUMBER) { if (car) CAR (x) = CAR (car); @@ -271,10 +269,8 @@ SCM list_of_char_equal_p (SCM a, SCM b) ///((internal)) { while (a != cell_nil && b != cell_nil && VALUE (car (a)) == VALUE (car (b))) { -#if __GNUC__ assert (TYPE (car (a)) == TCHAR); assert (TYPE (car (b)) == TCHAR); -#endif a = cdr (a); b = cdr (b); } @@ -512,9 +508,7 @@ SCM append2 (SCM x, SCM y) { if (x == cell_nil) return y; -#if __GNUC__ assert (TYPE (x) == TPAIR); -#endif return cons (car (x), append2 (cdr (x), y)); } @@ -573,9 +567,7 @@ assq_ref_env (SCM x, SCM a) SCM set_car_x (SCM x, SCM e) { -#if __GNUC__ assert (TYPE (x) == TPAIR); -#endif CAR (x) = e; return cell_unspecified; } diff --git a/vector.c b/vector.c index 5f433230..fc2fea5e 100644 --- a/vector.c +++ b/vector.c @@ -25,7 +25,23 @@ make_vector (SCM n) VALUE (tmp_num) = TVECTOR; SCM v = alloc (k); SCM x = make_cell_ (tmp_num, k, v); +#if 0 + //__GNUC__ for (int i=0; i