From 9a91485c10e059dee1374e152e4b068cd9d3866c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 5 Dec 2019 11:41:09 -0500 Subject: 0.9.2 @safe & @trusted first pass --- org/spine.org | 110 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) (limited to 'org/spine.org') diff --git a/org/spine.org b/org/spine.org index 848dfcd..256311d 100644 --- a/org/spine.org +++ b/org/spine.org @@ -28,7 +28,7 @@ struct Version { int minor; int patch; } -enum _ver = Version(0, 9, 1); +enum _ver = Version(0, 9, 2); #+END_SRC ** compilation restrictions (supported compilers) @@ -60,7 +60,7 @@ version (Posix) { - process file - output -** 0. spine src/spine :template: +** 0. spine src/spine :template: - process files (act according to requirements of each type) - by sourcefilename @@ -458,16 +458,16 @@ if (helpInfo.helpWanted) { #+BEGIN_SRC d enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } struct OptActions { - bool assertions() { + bool assertions() @trusted { return opts["assertions"]; } - bool concordance() { + bool concordance() @trusted { return opts["concordance"]; } auto config_path_set() { return settings["config"]; } - bool css_theme_default() { + bool css_theme_default() @trusted { bool _is_light; if (opts["light"] || opts["theme-light"]) { _is_light = true; @@ -478,94 +478,94 @@ struct OptActions { } return _is_light; } - bool debug_do() { + bool debug_do() @trusted { return opts["debug"]; } - bool digest() { + bool digest() @trusted { return opts["digest"]; } - bool epub() { + bool epub() @trusted { return opts["epub"]; } - bool harvest_link() { + bool harvest_link() @trusted { return (opts["harvest-link"]) ? true : false; } - bool harvest() { + bool harvest() @trusted { return (opts["harvest"] || opts["harvest-authors"] || opts["harvest-topics"]) ? true : false; } - bool harvest_authors() { + bool harvest_authors() @trusted { return (opts["harvest"] || opts["harvest-authors"]) ? true : false; } - bool harvest_topics() { + bool harvest_topics() @trusted { return (opts["harvest"] || opts["harvest-topics"]) ? true : false; } - bool html() { + bool html() @trusted { return (opts["html"] || opts["html-seg"] || opts["html-scroll"]) ? true : false; } - bool html_seg() { + bool html_seg() @trusted { return (opts["html"] || opts["html-seg"]) ? true : false; } - bool html_scroll() { + bool html_scroll() @trusted { return (opts["html"] || opts["html-scroll"]) ? true : false; } - bool html_stuff() { + bool html_stuff() @trusted { return (opts["html"] || opts["html-scroll"] || opts["html-seg"]) ? true : false; } - bool latex() { + bool latex() @trusted { return (opts["latex"] || opts["pdf"]) ? true : false; } - bool odt() { + bool odt() @trusted { return (opts["odf"] || opts["odt"]) ? true : false; } - bool manifest() { + bool manifest() @trusted { return opts["manifest"]; } - bool ocn_hidden() { + bool ocn_hidden() @trusted { return opts["hide-ocn"]; } - bool ocn_off() { + bool ocn_off() @trusted { return opts["ocn-off"]; } - bool quiet() { + bool quiet() @trusted { return opts["quiet"]; } - bool pod() { + bool pod() @trusted { return opts["pod"]; } - bool show_summary() { + bool show_summary() @trusted { return opts["show-summary"]; } - bool show_make() { + bool show_make() @trusted { return opts["show-make"]; } - bool show_metadata() { + bool show_metadata() @trusted { return opts["show-metadata"]; } - bool show_config() { + bool show_config() @trusted { return opts["show-config"]; } - bool source() { + bool source() @trusted { return opts["source"]; } - bool source_or_pod() { + bool source_or_pod() @trusted { return (opts["pod"] || opts["source"]) ? true : false; } - bool sqlite_discrete() { + bool sqlite_discrete() @trusted { return opts["sqlite-discrete"]; } - bool sqlite_db_drop() { + bool sqlite_db_drop() @trusted { return (opts["sqlite-db-recreate"] || opts["sqlite-db-drop"]) ? true : false; } - bool sqlite_db_create() { + bool sqlite_db_create() @trusted { return (opts["sqlite-db-recreate"] || opts["sqlite-db-create"]) ? true : false; } - bool sqlite_delete() { + bool sqlite_delete() @trusted { return opts["sqlite-delete"]; } - bool sqlite_update() { + bool sqlite_update() @trusted { return (opts["sqlite-update"] || opts["sqlite-insert"]) ? true : false; } - bool sqlite_shared_db_action() { + bool sqlite_shared_db_action() @trusted { return ( opts["sqlite-db-recreate"] || opts["sqlite-db-create"] @@ -574,46 +574,46 @@ struct OptActions { || opts["sqlite-update"] ) ? true : false; } - bool text() { + bool text() @trusted { return opts["text"]; } - bool verbose() { + bool verbose() @trusted { return (opts["verbose"] || opts["very-verbose"]) ? true : false; } - bool very_verbose() { + bool very_verbose() @trusted { return opts["very-verbose"]; } - bool xhtml() { + bool xhtml() @trusted { return opts["xhtml"]; } - bool section_toc() { + bool section_toc() @trusted { return opts["section_toc"]; } - bool section_body() { + bool section_body() @trusted { return opts["section_body"]; } - bool section_endnotes() { + bool section_endnotes() @trusted { return opts["section_endnotes"]; } - bool section_glossary() { + bool section_glossary() @trusted { return opts["section_glossary"]; } - bool section_biblio() { + bool section_biblio() @trusted { return opts["section_biblio"]; } - bool section_bookindex() { + bool section_bookindex() @trusted { return opts["section_bookindex"]; } - bool section_blurb() { + bool section_blurb() @trusted { return opts["section_blurb"]; } - bool backmatter() { + bool backmatter() @trusted { return opts["backmatter"]; } - bool skip_output() { + bool skip_output() @trusted { return opts["skip-output"]; } - bool workon() { + bool workon() @trusted { return opts["workon"]; } auto languages_set() { @@ -625,7 +625,7 @@ struct OptActions { auto sqlite_filename() { return settings["sqlite-filename"]; } - bool parallelise() { + bool parallelise() @trusted { bool _is; if (opts["parallel"] == true) { _is = true; @@ -649,7 +649,7 @@ struct OptActions { } else { _is = false; } return _is; } - bool parallelise_subprocesses() { + bool parallelise_subprocesses() @trusted { return opts["parallel-subprocesses"]; } auto output_task_scheduler() { @@ -680,7 +680,7 @@ struct OptActions { } return schedule.sort().uniq; } - bool abstraction() { + bool abstraction() @trusted { return ( opts["abstraction"] || concordance @@ -696,7 +696,7 @@ struct OptActions { || sqlite_update ) ? true : false; } - bool meta_processing_general() { + bool meta_processing_general() @trusted { return ( opts["abstraction"] || html @@ -707,7 +707,7 @@ struct OptActions { || sqlite_update ) ? true :false; } - bool meta_processing_xml_dom() { + bool meta_processing_xml_dom() @trusted { return ( opts["abstraction"] || html @@ -1354,7 +1354,7 @@ struct DocumentMatters { string ver() { return program_info.ver; } - string name_and_version() { + string name_and_version() @trusted { return format( "%s-%s", name, -- cgit v1.2.3