aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/ocda_obj_setter.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-03-12 22:39:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-03-12 22:56:34 -0400
commite9e17be24eba558c30fcdc41ea5bb9a1da7fd4e7 (patch)
tree1ed3c4b528b0a8e54d0eb9babc391e562578c7b4 /org/ocda_obj_setter.org
parentnix flake & env upkeep (diff)
mark modules as @safe: (& identify what is not)
Diffstat (limited to 'org/ocda_obj_setter.org')
-rw-r--r--org/ocda_obj_setter.org19
1 files changed, 10 insertions, 9 deletions
diff --git a/org/ocda_obj_setter.org b/org/ocda_obj_setter.org
index 4791dcf..e009a67 100644
--- a/org/ocda_obj_setter.org
+++ b/org/ocda_obj_setter.org
@@ -33,6 +33,7 @@ set abstracted objects for downstream processing
metadoc_object_setter.d
+/
module doc_reform.meta.metadoc_object_setter;
+@safe:
template ObjectSetter() {
/+ structs +/
<<meta_structs_docObjects>>
@@ -66,25 +67,25 @@ struct DocObj_MetaInfo_ {
int o_n_bibliography = 0;
int o_n_book_index = 0;
int o_n_blurb = 0;
- @safe string object_number_substantive() const @property {
+ string object_number_substantive() const @property {
return (o_n_substantive == 0) ? "" : o_n_substantive.to!string;
}
- @safe string object_number_non_substantive() const @property {
+ string object_number_non_substantive() const @property {
return (o_n_non_substantive == 0) ? "" : o_n_non_substantive.to!string;
}
- @safe string object_number_glossary() const @property {
+ string object_number_glossary() const @property {
return (o_n_glossary == 0) ? "" : o_n_glossary.to!string;
}
- @safe string object_number_bibliography() const @property {
+ string object_number_bibliography() const @property {
return (o_n_bibliography == 0) ? "" : o_n_bibliography.to!string;
}
- @safe string object_number_book_index() const @property {
+ string object_number_book_index() const @property {
return (o_n_book_index == 0) ? "" : o_n_book_index.to!string;
}
- @safe string object_number_blurb() const @property {
+ string object_number_blurb() const @property {
return (o_n_blurb == 0) ? "" : o_n_blurb.to!string;
}
- @safe string marked_up_level() const @property {
+ string marked_up_level() const @property {
string _out;
switch (heading_lev_markup) {
case 0 : _out = "A"; break;
@@ -99,7 +100,7 @@ struct DocObj_MetaInfo_ {
}
return _out;
}
- @safe string object_number() const @property {
+ string object_number() const @property {
return (ocn == 0) ? "" : ocn.to!string;
}
bool object_number_off = false;
@@ -387,7 +388,7 @@ enum Status { off, on, }
enum OCNtype { ocn, non, bkidx, }
enum DomTags { none, open, close, close_and_open, open_still, }
enum Substitute { match, markup, }
-@safe static auto eN() {
+static auto eN() {
struct _e {
enum bi {
off,