diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-04 21:54:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-05 15:43:35 +0100 |
commit | cb9a99f3bb883e319e674a45f906fd3a85c235f7 (patch) | |
tree | 300c5941f57084df52e953875978f79a625702b8 | |
parent | 7d62801db938c72ee629ebe133768e41ba3e4667 (diff) | |
download | busybox-w32-cb9a99f3bb883e319e674a45f906fd3a85c235f7.tar.gz busybox-w32-cb9a99f3bb883e319e674a45f906fd3a85c235f7.tar.bz2 busybox-w32-cb9a99f3bb883e319e674a45f906fd3a85c235f7.zip |
bc: drop bc_map_init() macro
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index e05700fb6..7a11e63de 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -189,8 +189,6 @@ typedef struct BcVec { | |||
189 | #define bc_vec_pop(v) (bc_vec_npop((v), 1)) | 189 | #define bc_vec_pop(v) (bc_vec_npop((v), 1)) |
190 | #define bc_vec_top(v) (bc_vec_item_rev((v), 0)) | 190 | #define bc_vec_top(v) (bc_vec_item_rev((v), 0)) |
191 | 191 | ||
192 | #define bc_map_init(v) (bc_vec_init((v), sizeof(BcId), bc_id_free)) | ||
193 | |||
194 | typedef signed char BcDig; | 192 | typedef signed char BcDig; |
195 | 193 | ||
196 | typedef struct BcNum { | 194 | typedef struct BcNum { |
@@ -7083,16 +7081,16 @@ static void bc_program_init(size_t line_len) | |||
7083 | bc_num_one(&G.prog.one); | 7081 | bc_num_one(&G.prog.one); |
7084 | 7082 | ||
7085 | bc_vec_init(&G.prog.fns, sizeof(BcFunc), bc_func_free); | 7083 | bc_vec_init(&G.prog.fns, sizeof(BcFunc), bc_func_free); |
7086 | bc_map_init(&G.prog.fn_map); | 7084 | bc_vec_init(&G.prog.fn_map, sizeof(BcId), bc_id_free); |
7087 | 7085 | ||
7088 | bc_program_addFunc(xstrdup("(main)"), &idx); | 7086 | bc_program_addFunc(xstrdup("(main)"), &idx); |
7089 | bc_program_addFunc(xstrdup("(read)"), &idx); | 7087 | bc_program_addFunc(xstrdup("(read)"), &idx); |
7090 | 7088 | ||
7091 | bc_vec_init(&G.prog.vars, sizeof(BcVec), bc_vec_free); | 7089 | bc_vec_init(&G.prog.vars, sizeof(BcVec), bc_vec_free); |
7092 | bc_map_init(&G.prog.var_map); | 7090 | bc_vec_init(&G.prog.var_map, sizeof(BcId), bc_id_free); |
7093 | 7091 | ||
7094 | bc_vec_init(&G.prog.arrs, sizeof(BcVec), bc_vec_free); | 7092 | bc_vec_init(&G.prog.arrs, sizeof(BcVec), bc_vec_free); |
7095 | bc_map_init(&G.prog.arr_map); | 7093 | bc_vec_init(&G.prog.arr_map, sizeof(BcId), bc_id_free); |
7096 | 7094 | ||
7097 | bc_vec_init(&G.prog.strs, sizeof(char *), bc_string_free); | 7095 | bc_vec_init(&G.prog.strs, sizeof(char *), bc_string_free); |
7098 | bc_vec_init(&G.prog.consts, sizeof(char *), bc_string_free); | 7096 | bc_vec_init(&G.prog.consts, sizeof(char *), bc_string_free); |