aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/in_source_files.org55
-rw-r--r--org/spine.org2
-rw-r--r--org/spine_build_scaffold.org4
3 files changed, 32 insertions, 29 deletions
diff --git a/org/in_source_files.org b/org/in_source_files.org
index 05e9889..49c4a5e 100644
--- a/org/in_source_files.org
+++ b/org/in_source_files.org
@@ -516,7 +516,9 @@ split is on first match of level A~ (which is required)
#+NAME: meta_inserts_scan
#+BEGIN_SRC d
char[][] contents_insert;
-int[string] type1 = flags_type_init;
+int code_block_status = 0;
+enum codeBlock { off, curly, tic, }
+int[string] type = flags_type_init;
auto fn_pth_full = fn_src.match(rgx.src_pth_sst_or_ssm);
auto markup_src_file_path = fn_pth_full.captures[1];
#+END_SRC
@@ -525,33 +527,33 @@ auto markup_src_file_path = fn_pth_full.captures[1];
#+NAME: meta_inserts_scan_loop
#+BEGIN_SRC d
-if (type1["curly_code"] == 1) {
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+if (code_block_status == codeBlock.curly) {
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
if (line.matchFirst(rgx.block_curly_code_close)) {
- type1["curly_code"] = 0;
+ code_block_status = codeBlock.off;
}
contents_insert ~= line;
} else if (line.matchFirst(rgx.block_curly_code_open)) {
- type1["curly_code"] = 1;
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+ code_block_status = codeBlock.curly;
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
contents_insert ~= line;
-} else if (type1["tic_code"] == 1) {
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+} else if (code_block_status == codeBlock.tic) {
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
if (line.matchFirst(rgx.block_tic_close)) {
- type1["tic_code"] = 0;
+ code_block_status = codeBlock.off;
}
contents_insert ~= line;
} else if (line.matchFirst(rgx.block_tic_code_open)) {
- type1["tic_code"] = 1;
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+ code_block_status = codeBlock.tic;
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
contents_insert ~= line;
} else if (auto m = line.match(rgx.insert_src_fn_ssi_or_sst)) {
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
auto insert_fn = m.captures[2];
auto insert_sub_pth = m.captures[1];
auto fn_src_insert
@@ -582,8 +584,8 @@ if (type1["curly_code"] == 1) {
- build image list, search for any image files to add to image list
+/
} else {
- type1["header_make"] = 0;
- type1["header_meta"] = 0;
+ type["header_make"] = 0;
+ type["header_meta"] = 0;
contents_insert ~= line; // images to extract for image list?
if (_opt_action.source || _opt_action.pod) {
string[] _image_linelist = _extract_images(line);
@@ -611,7 +613,8 @@ return t;
#+NAME: meta_master_doc_scan_for_insert_filenames
#+BEGIN_SRC d
char[][] contents;
-int[string] type = flags_type_init;
+int code_block_status = 0;
+enum codeBlock { off, curly, tic, }
auto fn_pth_full = fn_src.match(rgx.src_pth_sst_or_ssm);
auto markup_src_file_path = fn_pth_full.captures[1];
char[][] contents_insert;
@@ -623,21 +626,21 @@ string[] insert_file_list =[];
#+NAME: meta_master_doc_scan_for_insert_filenames_loop
#+BEGIN_SRC d
-if (type["curly_code"] == 1) {
+if (code_block_status == codeBlock.curly) {
if (line.matchFirst(rgx.block_curly_code_close)) {
- type["curly_code"] = 0;
+ code_block_status = codeBlock.off;
}
contents ~= line;
} else if (line.matchFirst(rgx.block_curly_code_open)) {
- type["curly_code"] = 1;
+ code_block_status = codeBlock.curly;
contents ~= line;
-} else if (type["tic_code"] == 1) {
+} else if (code_block_status == codeBlock.tic) {
if (line.matchFirst(rgx.block_tic_close)) {
- type["tic_code"] = 0;
+ code_block_status = codeBlock.off;
}
contents ~= line;
} else if (line.matchFirst(rgx.block_tic_code_open)) {
- type["tic_code"] = 1;
+ code_block_status = codeBlock.tic;
contents ~= line;
} else if (auto m = line.match(rgx.insert_src_fn_ssi_or_sst)) {
auto insert_fn = m.captures[2];
diff --git a/org/spine.org b/org/spine.org
index 0f9b7a1..b8f6609 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -41,7 +41,7 @@ struct Version {
#+NAME: spine_version_current_set
#+BEGIN_SRC d
-enum _ver = Version(0, 10, 0);
+enum _ver = Version(0, 11, 0);
#+END_SRC
** compilation restrictions (supported compilers)
diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org
index 8842f52..0e06c4e 100644
--- a/org/spine_build_scaffold.org
+++ b/org/spine_build_scaffold.org
@@ -1030,8 +1030,8 @@ cat spine_sources.txt
#+BEGIN_SRC sh :tangle ../meson.build
project('spine', 'd',
- license: 'AGPL3',
- version: '0.9.2',
+ license: 'AGPL-3',
+ version: '0.11.0',
meson_version: '>=0.46'
)
#if meson.get_compiler('d').get_id() == 'gcc'