aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-07-25 04:02:26 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit737b165990168fdfc3911d542ec741e6a8b7a1c3 (patch)
tree0a6a58dc0db314f7c83faed2086515afc7073aea /org
parentmeta_abstraction, reduce side effect (diff)
meta_abstraction, mark some functions pure
Diffstat (limited to 'org')
-rw-r--r--org/meta_abstraction.org12
1 files changed, 6 insertions, 6 deletions
diff --git a/org/meta_abstraction.org b/org/meta_abstraction.org
index 1050db7..678462b 100644
--- a/org/meta_abstraction.org
+++ b/org/meta_abstraction.org
@@ -231,7 +231,7 @@ enum DomTags { none, open, close, close_and_open, open_still, }
#+name: abs_top_init_struct
#+BEGIN_SRC d
-auto obj_heading_ancestors(O)(
+pure auto obj_heading_ancestors(O)(
O obj,
string[] lv_ancestors_txt,
) {
@@ -290,7 +290,7 @@ auto obj_heading_ancestors(O)(
#+name: abs_top_init_struct
#+BEGIN_SRC d
-auto obj_dom_set_markup_tags(O)(
+pure auto obj_dom_set_markup_tags(O)(
O obj,
int[] dom,
int lev
@@ -340,7 +340,7 @@ auto obj_dom_set_markup_tags(O)(
#+name: abs_top_init_struct
#+BEGIN_SRC d
-auto obj_dom_set_collapsed_tags(O)(
+pure auto obj_dom_set_collapsed_tags(O)(
O obj,
int[] dom,
int lev
@@ -4398,7 +4398,7 @@ auto table_substantive_munge_special(O,T)(
#+name: meta_emitters_ocn
#+BEGIN_SRC d
-struct OCNemitter {
+pure struct OCNemitter {
int obj_cite_number, obj_cite_number_;
int ocn_emitter(int ocn_status_flag)
in { assert(ocn_status_flag <= 3); }
@@ -6668,7 +6668,7 @@ struct NodeStructureMetadata {
#+name: abs_functions_assertions
#+BEGIN_SRC d
-auto assertions_doc_structure(O,Lv)(
+pure void assertions_doc_structure(O,Lv)(
O an_object,
Lv lv
) {
@@ -6853,7 +6853,7 @@ auto assertions_doc_structure(O,Lv)(
#+name: abs_functions_assertions
#+BEGIN_SRC d
-auto assertions_flag_types_block_status_none_or_closed(T)(T type) {
+pure void assertions_flag_types_block_status_none_or_closed(T)(T type) {
debug(asserts) {
static assert(is(typeof(type) == int[string]));
}