runlisp
2 years agolib.c: Use the size of the element when allocating an array.
Mark Wooding [Thu, 13 May 2021 15:27:12 +0000 (16:27 +0100)]
lib.c: Use the size of the element when allocating an array.

Oops: a pure blunder.  Fortunately, these are actually the same size on
most current platforms, but that's not a good excuse.

Spotted by Coverity.

2 years agolib.c: Don't try pointer arithmetic on void pointers.
Mark Wooding [Thu, 13 May 2021 15:24:32 +0000 (16:24 +0100)]
lib.c: Don't try pointer arithmetic on void pointers.

Here, `av->o' is a count of array slots, not bytes, so this is wrong:
rewrite to use the correct kind of pointer.  Fortunately, nothing
actually uses this machinery.

It's honestly a bit vexing that GCC lets me get away with this.  Spotted
by Coverity.

2 years agotests.at: Use correct `m4_bpatsubst' instead of wrong `m4_bregexp'.
Mark Wooding [Thu, 13 May 2021 14:22:33 +0000 (15:22 +0100)]
tests.at: Use correct `m4_bpatsubst' instead of wrong `m4_bregexp'.

This was preventing tests for non-installed Lisps from being skipped.

2 years agoconfigure.ac: Don't sanity-check `$mdw_ecl_opts' if there's no `ecl' anwyay.
Mark Wooding [Thu, 13 May 2021 13:57:35 +0000 (14:57 +0100)]
configure.ac: Don't sanity-check `$mdw_ecl_opts' if there's no `ecl' anwyay.

In particular, it'll look crazy...

2 years agodump-runlisp-image.c: Initialize the random number generator a bit.
Mark Wooding [Thu, 13 May 2021 13:50:27 +0000 (14:50 +0100)]
dump-runlisp-image.c: Initialize the random number generator a bit.

This is only used to pick names for temporary directories, so it doesn't
matter that it's rather predictable.  Indeed, even using the same
sequence every time wasn't particularly bad, but we can do better, and
so we should.

2 years agolib.c (config_set_var_n): Return a pointer even if we don't change the var.
Mark Wooding [Thu, 13 May 2021 13:48:39 +0000 (14:48 +0100)]
lib.c (config_set_var_n): Return a pointer even if we don't change the var.

Spotted by old GCC; not sure why newer versions are silent here.

2 years agodump-ecl: Insert missing space before line-splicing `\'.
Mark Wooding [Thu, 13 May 2021 13:51:24 +0000 (14:51 +0100)]
dump-ecl: Insert missing space before line-splicing `\'.

2 years agoconfigure.ac: Don't try to dump Lisps which we couldn't find.
Mark Wooding [Thu, 13 May 2021 13:52:00 +0000 (14:52 +0100)]
configure.ac: Don't try to dump Lisps which we couldn't find.

2 years agoMakefile.am: Override `data-dir' in all `dump-runlisp-image' calls.
Mark Wooding [Thu, 13 May 2021 13:54:25 +0000 (14:54 +0100)]
Makefile.am: Override `data-dir' in all `dump-runlisp-image' calls.

... not just for `ecl'.  Nowadays we look for `eval.lisp' under
`${@data-dir}' by default in order to determine the Lisp version string.

2 years agoMakefile.am: Rearrange the `dump-runlisp-image' options.
Mark Wooding [Thu, 13 May 2021 13:53:32 +0000 (14:53 +0100)]
Makefile.am: Rearrange the `dump-runlisp-image' options.

No functional change yet.  This will make adding more big options look
less of a mess.

2 years agoMakefile.am: Delete build rules for nonexistent debris.
Mark Wooding [Thu, 13 May 2021 13:47:37 +0000 (14:47 +0100)]
Makefile.am: Delete build rules for nonexistent debris.

These were added as temporary hacks for trying things out, and should
never have been committed in the first place.

3 years ago@@@ version hash
Mark Wooding [Mon, 14 Sep 2020 00:31:01 +0000 (01:31 +0100)]
@@@ version hash

3 years ago@@@ more wip
Mark Wooding [Sun, 13 Sep 2020 09:36:27 +0000 (10:36 +0100)]
@@@ more wip

3 years ago@@@ more wip
Mark Wooding [Mon, 31 Aug 2020 03:13:52 +0000 (04:13 +0100)]
@@@ more wip

3 years ago@@@ work in progress
Mark Wooding [Wed, 26 Aug 2020 03:08:39 +0000 (04:08 +0100)]
@@@ work in progress

3 years agoNew version.
Mark Wooding [Sat, 15 Aug 2020 23:10:59 +0000 (00:10 +0100)]
New version.

This is a complete rewrite, and rather more competently done.