From 90efcb0b905753a2eac864bc1a869781d7c31919 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Sun, 12 Aug 2018 15:08:26 +0200 Subject: [PATCH] reorganize sources --- lib/Makefile => Makefile | 0 lib/main-readline.c => examples/readline/main.c | 0 {lib => examples/yaml}/parse-yaml.c | 0 examples/yaml/test.yaml | 16 ++++++++++++++++ {lib => libecoli}/ecoli_assert.c | 0 {lib => libecoli}/ecoli_assert.h | 0 {lib => libecoli}/ecoli_complete.c | 0 {lib => libecoli}/ecoli_complete.h | 0 {lib => libecoli}/ecoli_config.c | 0 {lib => libecoli}/ecoli_config.h | 0 {lib => libecoli}/ecoli_init.c | 0 {lib => libecoli}/ecoli_init.h | 0 {lib => libecoli}/ecoli_keyval.c | 0 {lib => libecoli}/ecoli_keyval.h | 0 {lib => libecoli}/ecoli_log.c | 0 {lib => libecoli}/ecoli_log.h | 0 {lib => libecoli}/ecoli_malloc.c | 0 {lib => libecoli}/ecoli_malloc.h | 0 {lib => libecoli}/ecoli_murmurhash.c | 0 {lib => libecoli}/ecoli_murmurhash.h | 0 {lib => libecoli}/ecoli_node.c | 0 {lib => libecoli}/ecoli_node.h | 0 {lib => libecoli}/ecoli_node_any.c | 0 {lib => libecoli}/ecoli_node_any.h | 0 {lib => libecoli}/ecoli_node_cmd.c | 0 {lib => libecoli}/ecoli_node_cmd.h | 0 {lib => libecoli}/ecoli_node_dynamic.c | 0 {lib => libecoli}/ecoli_node_dynamic.h | 0 {lib => libecoli}/ecoli_node_empty.c | 0 {lib => libecoli}/ecoli_node_empty.h | 0 {lib => libecoli}/ecoli_node_expr.c | 0 {lib => libecoli}/ecoli_node_expr.h | 0 {lib => libecoli}/ecoli_node_expr_test.c | 0 {lib => libecoli}/ecoli_node_file.c | 0 {lib => libecoli}/ecoli_node_file.h | 0 {lib => libecoli}/ecoli_node_helper.c | 0 {lib => libecoli}/ecoli_node_helper.h | 0 {lib => libecoli}/ecoli_node_int.c | 0 {lib => libecoli}/ecoli_node_int.h | 0 {lib => libecoli}/ecoli_node_many.c | 0 {lib => libecoli}/ecoli_node_many.h | 0 {lib => libecoli}/ecoli_node_none.c | 0 {lib => libecoli}/ecoli_node_none.h | 0 {lib => libecoli}/ecoli_node_once.c | 0 {lib => libecoli}/ecoli_node_once.h | 0 {lib => libecoli}/ecoli_node_option.c | 0 {lib => libecoli}/ecoli_node_option.h | 0 {lib => libecoli}/ecoli_node_or.c | 0 {lib => libecoli}/ecoli_node_or.h | 0 {lib => libecoli}/ecoli_node_re.c | 0 {lib => libecoli}/ecoli_node_re.h | 0 {lib => libecoli}/ecoli_node_re_lex.c | 0 {lib => libecoli}/ecoli_node_re_lex.h | 0 {lib => libecoli}/ecoli_node_seq.c | 0 {lib => libecoli}/ecoli_node_seq.h | 0 {lib => libecoli}/ecoli_node_sh_lex.c | 0 {lib => libecoli}/ecoli_node_sh_lex.h | 0 {lib => libecoli}/ecoli_node_space.c | 0 {lib => libecoli}/ecoli_node_space.h | 0 {lib => libecoli}/ecoli_node_str.c | 0 {lib => libecoli}/ecoli_node_str.h | 0 {lib => libecoli}/ecoli_node_subset.c | 0 {lib => libecoli}/ecoli_node_subset.h | 0 {lib => libecoli}/ecoli_parse.c | 0 {lib => libecoli}/ecoli_parse.h | 0 {lib => libecoli}/ecoli_string.c | 0 {lib => libecoli}/ecoli_string.h | 0 {lib => libecoli}/ecoli_strvec.c | 0 {lib => libecoli}/ecoli_strvec.h | 0 {lib => libecoli}/ecoli_test.c | 0 {lib => libecoli}/ecoli_test.h | 0 {lib => libecoli}/ecoli_vec.c | 0 {lib => libecoli}/ecoli_vec.h | 0 lib/main.c => test/test.c | 0 {lib => test}/test.sh | 0 lib/todo.txt => todo.txt | 0 76 files changed, 16 insertions(+) rename lib/Makefile => Makefile (100%) rename lib/main-readline.c => examples/readline/main.c (100%) rename {lib => examples/yaml}/parse-yaml.c (100%) create mode 100644 examples/yaml/test.yaml rename {lib => libecoli}/ecoli_assert.c (100%) rename {lib => libecoli}/ecoli_assert.h (100%) rename {lib => libecoli}/ecoli_complete.c (100%) rename {lib => libecoli}/ecoli_complete.h (100%) rename {lib => libecoli}/ecoli_config.c (100%) rename {lib => libecoli}/ecoli_config.h (100%) rename {lib => libecoli}/ecoli_init.c (100%) rename {lib => libecoli}/ecoli_init.h (100%) rename {lib => libecoli}/ecoli_keyval.c (100%) rename {lib => libecoli}/ecoli_keyval.h (100%) rename {lib => libecoli}/ecoli_log.c (100%) rename {lib => libecoli}/ecoli_log.h (100%) rename {lib => libecoli}/ecoli_malloc.c (100%) rename {lib => libecoli}/ecoli_malloc.h (100%) rename {lib => libecoli}/ecoli_murmurhash.c (100%) rename {lib => libecoli}/ecoli_murmurhash.h (100%) rename {lib => libecoli}/ecoli_node.c (100%) rename {lib => libecoli}/ecoli_node.h (100%) rename {lib => libecoli}/ecoli_node_any.c (100%) rename {lib => libecoli}/ecoli_node_any.h (100%) rename {lib => libecoli}/ecoli_node_cmd.c (100%) rename {lib => libecoli}/ecoli_node_cmd.h (100%) rename {lib => libecoli}/ecoli_node_dynamic.c (100%) rename {lib => libecoli}/ecoli_node_dynamic.h (100%) rename {lib => libecoli}/ecoli_node_empty.c (100%) rename {lib => libecoli}/ecoli_node_empty.h (100%) rename {lib => libecoli}/ecoli_node_expr.c (100%) rename {lib => libecoli}/ecoli_node_expr.h (100%) rename {lib => libecoli}/ecoli_node_expr_test.c (100%) rename {lib => libecoli}/ecoli_node_file.c (100%) rename {lib => libecoli}/ecoli_node_file.h (100%) rename {lib => libecoli}/ecoli_node_helper.c (100%) rename {lib => libecoli}/ecoli_node_helper.h (100%) rename {lib => libecoli}/ecoli_node_int.c (100%) rename {lib => libecoli}/ecoli_node_int.h (100%) rename {lib => libecoli}/ecoli_node_many.c (100%) rename {lib => libecoli}/ecoli_node_many.h (100%) rename {lib => libecoli}/ecoli_node_none.c (100%) rename {lib => libecoli}/ecoli_node_none.h (100%) rename {lib => libecoli}/ecoli_node_once.c (100%) rename {lib => libecoli}/ecoli_node_once.h (100%) rename {lib => libecoli}/ecoli_node_option.c (100%) rename {lib => libecoli}/ecoli_node_option.h (100%) rename {lib => libecoli}/ecoli_node_or.c (100%) rename {lib => libecoli}/ecoli_node_or.h (100%) rename {lib => libecoli}/ecoli_node_re.c (100%) rename {lib => libecoli}/ecoli_node_re.h (100%) rename {lib => libecoli}/ecoli_node_re_lex.c (100%) rename {lib => libecoli}/ecoli_node_re_lex.h (100%) rename {lib => libecoli}/ecoli_node_seq.c (100%) rename {lib => libecoli}/ecoli_node_seq.h (100%) rename {lib => libecoli}/ecoli_node_sh_lex.c (100%) rename {lib => libecoli}/ecoli_node_sh_lex.h (100%) rename {lib => libecoli}/ecoli_node_space.c (100%) rename {lib => libecoli}/ecoli_node_space.h (100%) rename {lib => libecoli}/ecoli_node_str.c (100%) rename {lib => libecoli}/ecoli_node_str.h (100%) rename {lib => libecoli}/ecoli_node_subset.c (100%) rename {lib => libecoli}/ecoli_node_subset.h (100%) rename {lib => libecoli}/ecoli_parse.c (100%) rename {lib => libecoli}/ecoli_parse.h (100%) rename {lib => libecoli}/ecoli_string.c (100%) rename {lib => libecoli}/ecoli_string.h (100%) rename {lib => libecoli}/ecoli_strvec.c (100%) rename {lib => libecoli}/ecoli_strvec.h (100%) rename {lib => libecoli}/ecoli_test.c (100%) rename {lib => libecoli}/ecoli_test.h (100%) rename {lib => libecoli}/ecoli_vec.c (100%) rename {lib => libecoli}/ecoli_vec.h (100%) rename lib/main.c => test/test.c (100%) rename {lib => test}/test.sh (100%) rename lib/todo.txt => todo.txt (100%) diff --git a/lib/Makefile b/Makefile similarity index 100% rename from lib/Makefile rename to Makefile diff --git a/lib/main-readline.c b/examples/readline/main.c similarity index 100% rename from lib/main-readline.c rename to examples/readline/main.c diff --git a/lib/parse-yaml.c b/examples/yaml/parse-yaml.c similarity index 100% rename from lib/parse-yaml.c rename to examples/yaml/parse-yaml.c diff --git a/examples/yaml/test.yaml b/examples/yaml/test.yaml new file mode 100644 index 0000000..072fbce --- /dev/null +++ b/examples/yaml/test.yaml @@ -0,0 +1,16 @@ +type: seq +attrs: + toto: 1 + titi: 2 +help: Say hello to someone +children: +- type: str + string: hello +- type: or + id: name + help: Name of the person to greet + children: + - type: str + string: john + - type: str + string: mike diff --git a/lib/ecoli_assert.c b/libecoli/ecoli_assert.c similarity index 100% rename from lib/ecoli_assert.c rename to libecoli/ecoli_assert.c diff --git a/lib/ecoli_assert.h b/libecoli/ecoli_assert.h similarity index 100% rename from lib/ecoli_assert.h rename to libecoli/ecoli_assert.h diff --git a/lib/ecoli_complete.c b/libecoli/ecoli_complete.c similarity index 100% rename from lib/ecoli_complete.c rename to libecoli/ecoli_complete.c diff --git a/lib/ecoli_complete.h b/libecoli/ecoli_complete.h similarity index 100% rename from lib/ecoli_complete.h rename to libecoli/ecoli_complete.h diff --git a/lib/ecoli_config.c b/libecoli/ecoli_config.c similarity index 100% rename from lib/ecoli_config.c rename to libecoli/ecoli_config.c diff --git a/lib/ecoli_config.h b/libecoli/ecoli_config.h similarity index 100% rename from lib/ecoli_config.h rename to libecoli/ecoli_config.h diff --git a/lib/ecoli_init.c b/libecoli/ecoli_init.c similarity index 100% rename from lib/ecoli_init.c rename to libecoli/ecoli_init.c diff --git a/lib/ecoli_init.h b/libecoli/ecoli_init.h similarity index 100% rename from lib/ecoli_init.h rename to libecoli/ecoli_init.h diff --git a/lib/ecoli_keyval.c b/libecoli/ecoli_keyval.c similarity index 100% rename from lib/ecoli_keyval.c rename to libecoli/ecoli_keyval.c diff --git a/lib/ecoli_keyval.h b/libecoli/ecoli_keyval.h similarity index 100% rename from lib/ecoli_keyval.h rename to libecoli/ecoli_keyval.h diff --git a/lib/ecoli_log.c b/libecoli/ecoli_log.c similarity index 100% rename from lib/ecoli_log.c rename to libecoli/ecoli_log.c diff --git a/lib/ecoli_log.h b/libecoli/ecoli_log.h similarity index 100% rename from lib/ecoli_log.h rename to libecoli/ecoli_log.h diff --git a/lib/ecoli_malloc.c b/libecoli/ecoli_malloc.c similarity index 100% rename from lib/ecoli_malloc.c rename to libecoli/ecoli_malloc.c diff --git a/lib/ecoli_malloc.h b/libecoli/ecoli_malloc.h similarity index 100% rename from lib/ecoli_malloc.h rename to libecoli/ecoli_malloc.h diff --git a/lib/ecoli_murmurhash.c b/libecoli/ecoli_murmurhash.c similarity index 100% rename from lib/ecoli_murmurhash.c rename to libecoli/ecoli_murmurhash.c diff --git a/lib/ecoli_murmurhash.h b/libecoli/ecoli_murmurhash.h similarity index 100% rename from lib/ecoli_murmurhash.h rename to libecoli/ecoli_murmurhash.h diff --git a/lib/ecoli_node.c b/libecoli/ecoli_node.c similarity index 100% rename from lib/ecoli_node.c rename to libecoli/ecoli_node.c diff --git a/lib/ecoli_node.h b/libecoli/ecoli_node.h similarity index 100% rename from lib/ecoli_node.h rename to libecoli/ecoli_node.h diff --git a/lib/ecoli_node_any.c b/libecoli/ecoli_node_any.c similarity index 100% rename from lib/ecoli_node_any.c rename to libecoli/ecoli_node_any.c diff --git a/lib/ecoli_node_any.h b/libecoli/ecoli_node_any.h similarity index 100% rename from lib/ecoli_node_any.h rename to libecoli/ecoli_node_any.h diff --git a/lib/ecoli_node_cmd.c b/libecoli/ecoli_node_cmd.c similarity index 100% rename from lib/ecoli_node_cmd.c rename to libecoli/ecoli_node_cmd.c diff --git a/lib/ecoli_node_cmd.h b/libecoli/ecoli_node_cmd.h similarity index 100% rename from lib/ecoli_node_cmd.h rename to libecoli/ecoli_node_cmd.h diff --git a/lib/ecoli_node_dynamic.c b/libecoli/ecoli_node_dynamic.c similarity index 100% rename from lib/ecoli_node_dynamic.c rename to libecoli/ecoli_node_dynamic.c diff --git a/lib/ecoli_node_dynamic.h b/libecoli/ecoli_node_dynamic.h similarity index 100% rename from lib/ecoli_node_dynamic.h rename to libecoli/ecoli_node_dynamic.h diff --git a/lib/ecoli_node_empty.c b/libecoli/ecoli_node_empty.c similarity index 100% rename from lib/ecoli_node_empty.c rename to libecoli/ecoli_node_empty.c diff --git a/lib/ecoli_node_empty.h b/libecoli/ecoli_node_empty.h similarity index 100% rename from lib/ecoli_node_empty.h rename to libecoli/ecoli_node_empty.h diff --git a/lib/ecoli_node_expr.c b/libecoli/ecoli_node_expr.c similarity index 100% rename from lib/ecoli_node_expr.c rename to libecoli/ecoli_node_expr.c diff --git a/lib/ecoli_node_expr.h b/libecoli/ecoli_node_expr.h similarity index 100% rename from lib/ecoli_node_expr.h rename to libecoli/ecoli_node_expr.h diff --git a/lib/ecoli_node_expr_test.c b/libecoli/ecoli_node_expr_test.c similarity index 100% rename from lib/ecoli_node_expr_test.c rename to libecoli/ecoli_node_expr_test.c diff --git a/lib/ecoli_node_file.c b/libecoli/ecoli_node_file.c similarity index 100% rename from lib/ecoli_node_file.c rename to libecoli/ecoli_node_file.c diff --git a/lib/ecoli_node_file.h b/libecoli/ecoli_node_file.h similarity index 100% rename from lib/ecoli_node_file.h rename to libecoli/ecoli_node_file.h diff --git a/lib/ecoli_node_helper.c b/libecoli/ecoli_node_helper.c similarity index 100% rename from lib/ecoli_node_helper.c rename to libecoli/ecoli_node_helper.c diff --git a/lib/ecoli_node_helper.h b/libecoli/ecoli_node_helper.h similarity index 100% rename from lib/ecoli_node_helper.h rename to libecoli/ecoli_node_helper.h diff --git a/lib/ecoli_node_int.c b/libecoli/ecoli_node_int.c similarity index 100% rename from lib/ecoli_node_int.c rename to libecoli/ecoli_node_int.c diff --git a/lib/ecoli_node_int.h b/libecoli/ecoli_node_int.h similarity index 100% rename from lib/ecoli_node_int.h rename to libecoli/ecoli_node_int.h diff --git a/lib/ecoli_node_many.c b/libecoli/ecoli_node_many.c similarity index 100% rename from lib/ecoli_node_many.c rename to libecoli/ecoli_node_many.c diff --git a/lib/ecoli_node_many.h b/libecoli/ecoli_node_many.h similarity index 100% rename from lib/ecoli_node_many.h rename to libecoli/ecoli_node_many.h diff --git a/lib/ecoli_node_none.c b/libecoli/ecoli_node_none.c similarity index 100% rename from lib/ecoli_node_none.c rename to libecoli/ecoli_node_none.c diff --git a/lib/ecoli_node_none.h b/libecoli/ecoli_node_none.h similarity index 100% rename from lib/ecoli_node_none.h rename to libecoli/ecoli_node_none.h diff --git a/lib/ecoli_node_once.c b/libecoli/ecoli_node_once.c similarity index 100% rename from lib/ecoli_node_once.c rename to libecoli/ecoli_node_once.c diff --git a/lib/ecoli_node_once.h b/libecoli/ecoli_node_once.h similarity index 100% rename from lib/ecoli_node_once.h rename to libecoli/ecoli_node_once.h diff --git a/lib/ecoli_node_option.c b/libecoli/ecoli_node_option.c similarity index 100% rename from lib/ecoli_node_option.c rename to libecoli/ecoli_node_option.c diff --git a/lib/ecoli_node_option.h b/libecoli/ecoli_node_option.h similarity index 100% rename from lib/ecoli_node_option.h rename to libecoli/ecoli_node_option.h diff --git a/lib/ecoli_node_or.c b/libecoli/ecoli_node_or.c similarity index 100% rename from lib/ecoli_node_or.c rename to libecoli/ecoli_node_or.c diff --git a/lib/ecoli_node_or.h b/libecoli/ecoli_node_or.h similarity index 100% rename from lib/ecoli_node_or.h rename to libecoli/ecoli_node_or.h diff --git a/lib/ecoli_node_re.c b/libecoli/ecoli_node_re.c similarity index 100% rename from lib/ecoli_node_re.c rename to libecoli/ecoli_node_re.c diff --git a/lib/ecoli_node_re.h b/libecoli/ecoli_node_re.h similarity index 100% rename from lib/ecoli_node_re.h rename to libecoli/ecoli_node_re.h diff --git a/lib/ecoli_node_re_lex.c b/libecoli/ecoli_node_re_lex.c similarity index 100% rename from lib/ecoli_node_re_lex.c rename to libecoli/ecoli_node_re_lex.c diff --git a/lib/ecoli_node_re_lex.h b/libecoli/ecoli_node_re_lex.h similarity index 100% rename from lib/ecoli_node_re_lex.h rename to libecoli/ecoli_node_re_lex.h diff --git a/lib/ecoli_node_seq.c b/libecoli/ecoli_node_seq.c similarity index 100% rename from lib/ecoli_node_seq.c rename to libecoli/ecoli_node_seq.c diff --git a/lib/ecoli_node_seq.h b/libecoli/ecoli_node_seq.h similarity index 100% rename from lib/ecoli_node_seq.h rename to libecoli/ecoli_node_seq.h diff --git a/lib/ecoli_node_sh_lex.c b/libecoli/ecoli_node_sh_lex.c similarity index 100% rename from lib/ecoli_node_sh_lex.c rename to libecoli/ecoli_node_sh_lex.c diff --git a/lib/ecoli_node_sh_lex.h b/libecoli/ecoli_node_sh_lex.h similarity index 100% rename from lib/ecoli_node_sh_lex.h rename to libecoli/ecoli_node_sh_lex.h diff --git a/lib/ecoli_node_space.c b/libecoli/ecoli_node_space.c similarity index 100% rename from lib/ecoli_node_space.c rename to libecoli/ecoli_node_space.c diff --git a/lib/ecoli_node_space.h b/libecoli/ecoli_node_space.h similarity index 100% rename from lib/ecoli_node_space.h rename to libecoli/ecoli_node_space.h diff --git a/lib/ecoli_node_str.c b/libecoli/ecoli_node_str.c similarity index 100% rename from lib/ecoli_node_str.c rename to libecoli/ecoli_node_str.c diff --git a/lib/ecoli_node_str.h b/libecoli/ecoli_node_str.h similarity index 100% rename from lib/ecoli_node_str.h rename to libecoli/ecoli_node_str.h diff --git a/lib/ecoli_node_subset.c b/libecoli/ecoli_node_subset.c similarity index 100% rename from lib/ecoli_node_subset.c rename to libecoli/ecoli_node_subset.c diff --git a/lib/ecoli_node_subset.h b/libecoli/ecoli_node_subset.h similarity index 100% rename from lib/ecoli_node_subset.h rename to libecoli/ecoli_node_subset.h diff --git a/lib/ecoli_parse.c b/libecoli/ecoli_parse.c similarity index 100% rename from lib/ecoli_parse.c rename to libecoli/ecoli_parse.c diff --git a/lib/ecoli_parse.h b/libecoli/ecoli_parse.h similarity index 100% rename from lib/ecoli_parse.h rename to libecoli/ecoli_parse.h diff --git a/lib/ecoli_string.c b/libecoli/ecoli_string.c similarity index 100% rename from lib/ecoli_string.c rename to libecoli/ecoli_string.c diff --git a/lib/ecoli_string.h b/libecoli/ecoli_string.h similarity index 100% rename from lib/ecoli_string.h rename to libecoli/ecoli_string.h diff --git a/lib/ecoli_strvec.c b/libecoli/ecoli_strvec.c similarity index 100% rename from lib/ecoli_strvec.c rename to libecoli/ecoli_strvec.c diff --git a/lib/ecoli_strvec.h b/libecoli/ecoli_strvec.h similarity index 100% rename from lib/ecoli_strvec.h rename to libecoli/ecoli_strvec.h diff --git a/lib/ecoli_test.c b/libecoli/ecoli_test.c similarity index 100% rename from lib/ecoli_test.c rename to libecoli/ecoli_test.c diff --git a/lib/ecoli_test.h b/libecoli/ecoli_test.h similarity index 100% rename from lib/ecoli_test.h rename to libecoli/ecoli_test.h diff --git a/lib/ecoli_vec.c b/libecoli/ecoli_vec.c similarity index 100% rename from lib/ecoli_vec.c rename to libecoli/ecoli_vec.c diff --git a/lib/ecoli_vec.h b/libecoli/ecoli_vec.h similarity index 100% rename from lib/ecoli_vec.h rename to libecoli/ecoli_vec.h diff --git a/lib/main.c b/test/test.c similarity index 100% rename from lib/main.c rename to test/test.c diff --git a/lib/test.sh b/test/test.sh similarity index 100% rename from lib/test.sh rename to test/test.sh diff --git a/lib/todo.txt b/todo.txt similarity index 100% rename from lib/todo.txt rename to todo.txt -- 2.39.5