Removes unused types, f16/f32/f64.

This commit is contained in:
falsycat 2021-01-03 00:00:00 +00:00
parent c5cf9aa530
commit 601b6fc0d4
4 changed files with 1 additions and 10 deletions

View File

@ -1,4 +1,4 @@
X resolve all TODO in source codes
remove f16/f32/f64 types
X remove f16/f32/f64 types
partial code generation for C (divide decls and functions)
release v1.0.1

View File

@ -34,9 +34,6 @@ static const struct_member_type_name_meta_t struct_member_type_name_meta_map_
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI16] = {"b16", "int16_t"},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI32] = {"b32", "int32_t"},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI64] = {"b64", "int64_t"},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F16] = {"f16", "float"},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F32] = {"f32", "float"},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F64] = {"f64", "double"},
};
static const char* const expr_operator_string_map_

3
tree.c
View File

@ -31,9 +31,6 @@ biner_tree_struct_member_type_name_meta_map
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI16] = {"bi16", 2},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI32] = {"bi32", 4},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI64] = {"bi64", 8},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F16] = {"f16", 2},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F32] = {"f32", 4},
[BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F64] = {"f64", 8},
};
biner_tree_parse_context_t biner_tree_parse_context_ = {0};

3
tree.h
View File

@ -70,9 +70,6 @@ typedef enum biner_tree_struct_member_type_name_t {
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI16,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI32,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_BI64,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F16,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F32,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_F64,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_USER_DECL,
BINER_TREE_STRUCT_MEMBER_TYPE_NAME_MAX_,