mes/src
Jan Nieuwenhuizen 99ac7b59c4
core: Remove struct definitions for builtins, drop snarfing.
After making a change to the list of builtin functions, run

    cat src/*.i

and move the into

    src/mes.c:mes_builtins ()

and, or also after changing the list of fixed symbols in src/mes.c:mes_symbols (), do

    cat src/*.h > src/builtins.h

* build-aux/build.sh.in: Remove snarfing.
* build-aux/bootstrap.sh.in: Likewise.
* mes/module/mes/display.mes (display):
* mes/module/mes/type-0.mes (cell:type-alist): Remove <cell:function>.
(function?, builtin?): Remove.
* src/builtins.h: New file.
* src/mes.c (TFUNCTION): Remove.
(struct function): Remove.
(apply_builtin): Rewrite from call.
(mes_builtins): Rewrite.
(init_builtin, make_builtin_type, make_builtin, builtin_name,
builtin_arity, builtin, builtin_p, builtin_printer): New function.
2019-01-04 09:55:16 +01:00
..
builtins.h core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
gc.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
hash.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
lib.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
math.c core: Avoid 64bit zero divide. 2018-10-07 00:25:33 +02:00
mes.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
module.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
posix.c core: Remove string debugging. 2018-12-27 16:48:45 +01:00
reader.c core: Remove --dump, --load. 2018-12-27 16:47:56 +01:00
strings.c core: Remove string debugging. 2018-12-27 16:48:45 +01:00
struct.c core: Remove struct definitions for builtins, drop snarfing. 2019-01-04 09:55:16 +01:00
vector.c core: Add module-define! 2018-10-14 09:10:30 +02:00