From e9e17be24eba558c30fcdc41ea5bb9a1da7fd4e7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 12 Mar 2024 22:39:09 -0400 Subject: mark modules as @safe: (& identify what is not) --- org/meta_conf_make_meta.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'org/meta_conf_make_meta.org') diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index e3fe678..8b5fc12 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -237,6 +237,7 @@ import doc_reform.meta.conf_make_meta_structs; #+BEGIN_SRC d <> module doc_reform.meta.conf_make_meta_structs; +@safe: <> <> <> @@ -276,7 +277,7 @@ static auto mkup = InlineMarkup(); #+NAME: meta_defaults_template_structs_setup #+BEGIN_SRC d -@safe string url_markup(string line) { +string url_markup(string line) { string line_ = line .replaceAll( rgx.smid_inline_link_markup_regular, @@ -318,7 +319,7 @@ struct ConfCompositeMakeStr { string[][] substitute; string texpdf_font; } -struct confCompositeMakeBuild { +@trusted struct confCompositeMakeBuild { string[] bold(string _mk) { string[] _out; if (_mk) { @@ -568,6 +569,7 @@ JSONValue config_jsonstr = `{ extract yaml header return struct +/ module doc_reform.meta.conf_make_meta_yaml; +@safe: template contentYAMLtoSpineStruct() { import std.algorithm, @@ -1746,6 +1748,7 @@ if ("rights" in _yaml extract json header return json +/ module doc_reform.meta.conf_make_meta_json; +@safe: static template contentJSONtoSpineStruct() { import std.algorithm, @@ -1763,7 +1766,7 @@ static template contentJSONtoSpineStruct() { doc_reform.meta.defaults, doc_reform.meta.rgx; ConfComposite _struct_composite; - @safe auto contentJSONtoSpineStruct(C,J,M)(C _struct_composite, J _json, M _manifested, string _identifier) { + auto contentJSONtoSpineStruct(C,J,M)(C _struct_composite, J _json, M _manifested, string _identifier) { mixin spineRgxIn; static auto rgx = RgxI(); debug (json) { -- cgit v1.2.3