diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-10-04 19:34:46 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-10-04 19:34:46 -0700 |
commit | 395d9ef9dc4caa47c3af209131022293f5e364f9 (patch) | |
tree | 588610077819c9889e6fdac422aa11d21fc30372 | |
parent | b7b24205fc2e88278bfc6477c9f3f2eb8c59f369 (diff) |
modules/asc: turn into a "built-in" module
This deviates from the established pattern of all built-in
modules being in til_builtins.c, but that's ok.
The main impetus for this is to just get asc out of rotation for
randomized compose layers, since it's so uninteresting. But it's
also valid as a built-in since it's primarily for diagnostic
purposes anyways.
-rw-r--r-- | src/modules/asc/asc.c | 4 | ||||
-rw-r--r-- | src/til.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/asc/asc.c b/src/modules/asc/asc.c index 98455a7..e359e62 100644 --- a/src/modules/asc/asc.c +++ b/src/modules/asc/asc.c @@ -182,9 +182,9 @@ til_module_t asc_module = { .render_fragment = asc_render_fragment, .setup = asc_setup, .name = "asc", - .description = "ASCII text", + .description = "ASCII text (built-in)", .author = "Vito Caputo <vcaputo@pengaru.com>", - .flags = TIL_MODULE_OVERLAYABLE, + .flags = TIL_MODULE_OVERLAYABLE | TIL_MODULE_BUILTIN, }; @@ -28,7 +28,6 @@ static til_threads_t *til_threads; static struct timeval til_start_tv; -extern til_module_t asc_module; extern til_module_t blinds_module; extern til_module_t checkers_module; extern til_module_t compose_module; @@ -59,14 +58,14 @@ extern til_module_t swab_module; extern til_module_t swarm_module; extern til_module_t voronoi_module; -/* built-ins (til_builtins.c) */ +/* built-ins (mostly in til_builtins.c) */ +extern til_module_t asc_module; extern til_module_t _blank_module; extern til_module_t _none_module; extern til_module_t _noop_module; extern til_module_t _ref_module; static const til_module_t *modules[] = { - &asc_module, &blinds_module, &checkers_module, &compose_module, @@ -98,6 +97,7 @@ static const til_module_t *modules[] = { &voronoi_module, /* built-ins at the end */ + &asc_module, &_blank_module, &_none_module, &_noop_module, |