opcodes/riscv-dis.c: Use bool type whenever possible
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 27 Aug 2022 13:09:06 +0000 (13:09 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Fri, 14 Oct 2022 05:21:41 +0000 (05:21 +0000)
commit354c1c098abe2b5cbc9da9751d29c5e5a0072376
treefed127cf231fc94486f050d38928d1eb0c2c552b
parent1469f944d1d3f6c0f94c15716fdb74f9240a5136
opcodes/riscv-dis.c: Use bool type whenever possible

Before changing the core disassembler, we take care of minor code clarity
issues and improve readability.

This commit replaces uses of int with bool whenever possible.

opcodes/ChangeLog:

* riscv-dis.c (no_aliases) Change type to bool.
(set_default_riscv_dis_options): Use boolean.
(parse_riscv_dis_option_without_args): Likewise.
(riscv_disassemble_insn): Use boolean keywords.
opcodes/riscv-dis.c