Rename bcode_dump -> bcode_print
This commit is contained in:
parent
928b19b774
commit
7d77ac987d
2
bcode.c
2
bcode.c
@ -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);
|
||||||
|
2
bcode.h
2
bcode.h
@ -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
2
bt.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user