mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-26 23:10:32 +00:00
Typo and tree-sitter init fix (#2358)
This commit is contained in:
parent
9987b86aa4
commit
5f11d3c1fe
@ -675,7 +675,7 @@ static void fill_operands(MCInst *MI, cs_hppa *hppa)
|
||||
|
||||
case 'w':
|
||||
set_op_reg(hppa, MCOperand_getReg(op),
|
||||
CS_AC_READ_WRTE);
|
||||
CS_AC_READ_WRITE);
|
||||
break;
|
||||
|
||||
case 'r':
|
||||
@ -834,4 +834,4 @@ void HPPA_printInst(MCInst *MI, SStream *O, void *Info)
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -130,7 +130,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
|
||||
case CS_AC_WRITE:
|
||||
printf("\t\toperands[%u].access: WRITE\n", i);
|
||||
break;
|
||||
case CS_AC_READ_WRTE:
|
||||
case CS_AC_READ_WRITE:
|
||||
printf("\t\toperands[%u].access: READ | WRITE\n", i);
|
||||
break;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ typedef enum cs_ac_type {
|
||||
CS_AC_INVALID = 0, ///< Uninitialized/invalid access type.
|
||||
CS_AC_READ = 1 << 0, ///< Operand read from memory or register.
|
||||
CS_AC_WRITE = 1 << 1, ///< Operand write to memory or register.
|
||||
CS_AC_READ_WRTE =
|
||||
CS_AC_READ_WRITE =
|
||||
CS_AC_READ |
|
||||
CS_AC_WRITE, ///< Operand reads and writes from/to memory or register.
|
||||
} cs_ac_type;
|
||||
|
@ -69,7 +69,7 @@ class Configurator:
|
||||
self.config = conf
|
||||
|
||||
def ts_set_cpp_language(self) -> None:
|
||||
self.ts_cpp_lang = Language(ts_cpp.language(), "cpp")
|
||||
self.ts_cpp_lang = Language(ts_cpp.language())
|
||||
|
||||
def init_parser(self) -> None:
|
||||
log.debug("Init parser")
|
||||
|
Loading…
Reference in New Issue
Block a user