From 8b47484919d61d389dfdefb07fe1b168021696e7 Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 18 Oct 2022 14:50:48 +0800 Subject: Add yaml.h, hostinfod bug fix, compilation setting - Add yaml helper functions - Add yaml test tool proone-yamlls - Add yaml test doc - Refactor hostinfod with yaml.h - Fix bug in hostinfod where specifying verbosity results in config error - Add C flag '-Werror=implicit-function-declaration' - Update doxygen template --- src/data/yaml/prne_yaml-test.yaml | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/data/yaml/prne_yaml-test.yaml (limited to 'src/data') diff --git a/src/data/yaml/prne_yaml-test.yaml b/src/data/yaml/prne_yaml-test.yaml new file mode 100644 index 0000000..8b8d012 --- /dev/null +++ b/src/data/yaml/prne_yaml-test.yaml @@ -0,0 +1,52 @@ +--- +- + - + - a + - b + - + - 1 + - 2 + - "b" +--- +main-doc: + mapping-0: + apple: fruit + cabbage: veg + orange: fruit + lettuce: veg + mapping-1: + persons: &the_alias + - name: John Doe + email: john.d@example.com + extra-data: + address: | + 137 Example St + Example City EX 0000 + Example Country + vehicles: + - ABC123 + - EXAMPLE + - name: Jane Doe + email: jane.d@example.com + members: *the_alias +--- +override_dot: + a.b: 1 + a: + b: 2 +--- +override_slash: + a/b: 1 + a: + b: 2 +--- +lone_text_scalar +--- +123 +--- +- "root" +- "text" +- "array" +- 3.14 +--- +last-doc: hello -- cgit