From 395d9ef9dc4caa47c3af209131022293f5e364f9 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 4 Oct 2023 19:34:46 -0700 Subject: 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. --- src/modules/asc/asc.c | 4 ++-- src/til.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 ", - .flags = TIL_MODULE_OVERLAYABLE, + .flags = TIL_MODULE_OVERLAYABLE | TIL_MODULE_BUILTIN, }; diff --git a/src/til.c b/src/til.c index 6b4fd99..016eada 100644 --- a/src/til.c +++ b/src/til.c @@ -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, -- cgit v1.2.3