Typo and tree-sitter init fix (#2358)

This commit is contained in:
Rot127 2024-05-16 12:31:44 +00:00 committed by GitHub
parent 9987b86aa4
commit 5f11d3c1fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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;

View File

@ -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")