Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #2346

Merged
merged 7 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MCInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct MCInst {
// operand access index for list of registers sharing the same access right (for ARM)
uint8_t ac_idx;
uint8_t popcode_adjust; // Pseudo X86 instruction adjust
char assembly[8]; // for special instruction, so that we dont need printer
char assembly[8]; // for special instruction, so that we don't need printer
unsigned char evm_data[32]; // for EVM PUSH operand
cs_wasm_op wasm_data; // for WASM operand
MCRegisterInfo *MRI;
Expand Down
2 changes: 1 addition & 1 deletion MCInstPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/// Returned by getMnemonic() of the AsmPrinters.
typedef struct {
const char *first; // Menmonic
const char *first; // Mnemonic
uint64_t second; // Bits
} MnemonicBitsInfo;

Expand Down
6 changes: 3 additions & 3 deletions arch/AArch64/AArch64Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void AArch64_add_vas(MCInst *MI, const SStream *OS) {
}
vl |= (num << 8);

// Determine op index by searching for trainling commata after op string
// Determine op index by searching for trailing commata after op string
uint32_t op_idx = 0;
const char *comma_ptr = strchr(OS->buffer, ',');;
while (comma_ptr && comma_ptr < vl_ptr) {
Expand Down Expand Up @@ -1084,7 +1084,7 @@ static void add_cs_detail_general(MCInst *MI, aarch64_op_group op_group,
const char *Dot = strstr(RegName, ".");
AArch64Layout_VectorLayout vas = AArch64Layout_Invalid;
if (!Dot) {
// The matrix dimensions are machine dependendent.
// The matrix dimensions are machine dependent.
// Currently we do not support differentiation of machines.
// So we just indicate the use of the complete matrix.
vas = sme_reg_to_vas(MCInst_getOpVal(MI, OpNum));
Expand Down Expand Up @@ -1353,7 +1353,7 @@ static void add_cs_detail_template_1(MCInst *MI, aarch64_op_group op_group,
const char *Dot = strstr(RegName, ".");
AArch64Layout_VectorLayout vas = AArch64Layout_Invalid;
if (!Dot) {
// The matrix dimensions are machine dependendent.
// The matrix dimensions are machine dependent.
// Currently we do not support differentiation of machines.
// So we just indicate the use of the complete matrix.
vas = sme_reg_to_vas(MCInst_getOpVal(MI, OpNum));
Expand Down
2 changes: 1 addition & 1 deletion arch/TriCore/TriCoreInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static void printOExtImm_4(MCInst *MI, int OpNum, SStream *O)

/// Returned by getMnemonic() of the AsmPrinters.
typedef struct {
const char *first; // Menmonic
const char *first; // Mnemonic
uint64_t second; // Bits
} MnemonicBitsInfo;

Expand Down
6 changes: 3 additions & 3 deletions arch/XCore/XCoreDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static DecodeStatus Decode3OpInstruction(unsigned Insn,
static DecodeStatus Decode2OpInstructionFail(MCInst *Inst, unsigned Insn, uint64_t Address,
const void *Decoder)
{
// Try and decode as a 3R instruction.
// Try to decode as a 3R instruction.
unsigned Opcode = fieldFromInstruction_4(Insn, 11, 5);
switch (Opcode) {
case 0x0:
Expand Down Expand Up @@ -409,7 +409,7 @@ static DecodeStatus DecodeRUSSrcDstBitpInstruction(MCInst *Inst, unsigned Insn,
static DecodeStatus DecodeL2OpInstructionFail(MCInst *Inst, unsigned Insn, uint64_t Address,
const void *Decoder)
{
// Try and decode as a L3R / L2RUS instruction.
// Try to decode as a L3R / L2RUS instruction.
unsigned Opcode = fieldFromInstruction_4(Insn, 16, 4) |
fieldFromInstruction_4(Insn, 27, 5) << 4;
switch (Opcode) {
Expand Down Expand Up @@ -650,7 +650,7 @@ static DecodeStatus DecodeL5RInstructionFail(MCInst *Inst, unsigned Insn, uint64
{
unsigned Opcode;

// Try and decode as a L6R instruction.
// Try to decode as a L6R instruction.
MCInst_clear(Inst);
Opcode = fieldFromInstruction_4(Insn, 27, 5);
switch (Opcode) {
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyx/ccapstone.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ cdef class Cs(object):
# unlike disasm(), disasm_lite() only return tuples of (address, size, mnemonic, op_str),
# rather than CsInsn objects.
def disasm_lite(self, code, addr, count=0):
# TODO: dont need detail, so we might turn off detail, then turn on again when done
# TODO: don't need detail, so we might turn off detail, then turn on again when done
cdef cc.cs_insn *allinsn

if _diet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
// a. CFG Checksum (a.k.a. function hash):
// !CFGChecksum: 12345
// b. CFG Checksum (see ContextAttributeMask):
// !Atribute: 1
// !Attribute: 1
//
//
// Binary format
Expand Down
2 changes: 1 addition & 1 deletion xcode/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Xcode Project for Capstone
================================================================================

The *Capstone.xcodeproj* project is an Xcode project that mimicks the Visual
The *Capstone.xcodeproj* project is an Xcode project that mimics the Visual
Studio solution for Capstone. It embeds nicely into Xcode workspaces. It has 13
targets, two of which are the most likely to be of interest:

Expand Down
Loading