aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRot127 <45763064+Rot127@users.noreply.github.com>2024-05-16 12:31:44 +0000
committerGitHub <noreply@github.com>2024-05-16 20:31:44 +0800
commit5f11d3c1fec756cf04bfaf6bded9e5c5ccc3adc6 (patch)
treeb73fdc6fdac2be4de8edab510577f9a4e454694c
parent9987b86aa49a04ec01e854270799407e34f292cc (diff)
downloadcapstone-upstream-next.tar.gz
Typo and tree-sitter init fix (#2358)upstream-next
-rw-r--r--arch/HPPA/HPPAInstPrinter.c4
-rw-r--r--cstool/cstool_powerpc.c2
-rw-r--r--include/capstone/cs_operand.h2
-rw-r--r--suite/auto-sync/src/autosync/cpptranslator/Configurator.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/arch/HPPA/HPPAInstPrinter.c b/arch/HPPA/HPPAInstPrinter.c
index 3cea32e1..69e248cc 100644
--- a/arch/HPPA/HPPAInstPrinter.c
+++ b/arch/HPPA/HPPAInstPrinter.c
@@ -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 \ No newline at end of file
+#endif
diff --git a/cstool/cstool_powerpc.c b/cstool/cstool_powerpc.c
index bb63efbb..6addb220 100644
--- a/cstool/cstool_powerpc.c
+++ b/cstool/cstool_powerpc.c
@@ -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;
}
diff --git a/include/capstone/cs_operand.h b/include/capstone/cs_operand.h
index 81f2697c..237a9f59 100644
--- a/include/capstone/cs_operand.h
+++ b/include/capstone/cs_operand.h
@@ -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;
diff --git a/suite/auto-sync/src/autosync/cpptranslator/Configurator.py b/suite/auto-sync/src/autosync/cpptranslator/Configurator.py
index 72b729e3..f50e9d69 100644
--- a/suite/auto-sync/src/autosync/cpptranslator/Configurator.py
+++ b/suite/auto-sync/src/autosync/cpptranslator/Configurator.py
@@ -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")