Rename bcode_dump -> bcode_print

This commit is contained in:
Lucas Gabriel Vuotto 2025-01-28 03:02:35 +00:00
parent 928b19b774
commit 7d77ac987d
3 changed files with 3 additions and 3 deletions

View File

@ -522,7 +522,7 @@ print_internal(const struct bcode *bcode, FILE *fp, size_t lvl)
} }
void void
bcode_dump(const struct bcode *bcode, FILE *fp) bcode_print(const struct bcode *bcode, FILE *fp)
{ {
print_internal(bcode, fp, 0); print_internal(bcode, fp, 0);
fputc('\n', fp); fputc('\n', fp);

View File

@ -23,4 +23,4 @@ struct bcode;
struct bcode * bcode_parse(const uint8_t *, size_t); struct bcode * bcode_parse(const uint8_t *, size_t);
void bcode_free(struct bcode *); void bcode_free(struct bcode *);
void bcode_dump(const struct bcode *, FILE *); void bcode_print(const struct bcode *, FILE *);

2
bt.c
View File

@ -41,7 +41,7 @@ main(int argc, char *argv[])
bcode = bcode_parse(buf, n); bcode = bcode_parse(buf, n);
if (bcode == NULL) if (bcode == NULL)
errx(1, "bcode_parse: parse error"); errx(1, "bcode_parse: parse error");
bcode_dump(bcode, stdout); bcode_print(bcode, stdout);
bcode_free(bcode); bcode_free(bcode);
(void)fclose(fp); (void)fclose(fp);