Fix spelling errors

This commit is contained in:
Benjamin Levy 2020-01-26 22:39:18 -05:00
parent 4361f39fe2
commit a5efecea84
78 changed files with 95 additions and 95 deletions

View file

@ -60,7 +60,7 @@ when generating Java source. There are two benefits: 1) I can keep most Java sou
source files instead of the grammar source, 2) The code is no longer duplicated among many parsers
can lexers.
Second, I've split each sub-grammar into separate lexer and parser. This is required becuase ANTLR
Second, I've split each sub-grammar into separate lexer and parser. This is required because ANTLR
does not allow a "combined lexer/parser" to be imported by another lexer, parser, or combination.
Aside from avoiding situations that are difficult to define, ANTLR's restriction also enforces the
practice of separating components out. Note that BooleanExpression.g is unaffected by all of this,

View file

@ -70,7 +70,7 @@ public class VarnodeData {
// Build this VarnodeData from an \b \<addr\> tag
// \param el is the parsed tag
// \param trans is the relevent processor translator
// \param trans is the relevant processor translator
public void restoreXml( Element el, Translate trans ) {
String name = el.getAttributeValue( "name" );
if (name != null) {

View file

@ -36,7 +36,7 @@ abstract class CategoryDBAdapter {
/**
* Gets the category record for the given ID.
* @param categoryID the key into the catagory table
* @param categoryID the key into the category table
* @return the record for the given ID or null if no record with that id exists.
*/
abstract Record getRecord(long categoryID) throws IOException;
@ -53,7 +53,7 @@ abstract class CategoryDBAdapter {
/**
* Returns a list of categoryIDs that have the given parent ID.
* @param categoryID the key into the catagory table
* @param categoryID the key into the category table
* @return an array of categoryIDs that have the specified parent
*/
abstract long[] getRecordIdsWithParent(long categoryID) throws IOException;
@ -61,7 +61,7 @@ abstract class CategoryDBAdapter {
/**
* Creates a new category with the given name and parent ID.
* @param name the name of the new category.
* @param categoryID the key into the catagory table
* @param categoryID the key into the category table
* @return a new record for the new category.
*/
abstract Record createCategory(String name, long parentID) throws IOException;

View file

@ -1313,7 +1313,7 @@ public class Disassembler implements DisassemblerConflictHandler {
disassemblerContext.getRegisterValue(disassemblerContext.getBaseContextRegister()),
instAddr, e.getMessage());
}
return null; // error occured
return null; // error occurred
}
/**

View file

@ -879,7 +879,7 @@ public class DisassemblerContextImpl implements DisassemblerContext {
}
/**
* Returns the future register value at the specified address that occured because of a flow
* Returns the future register value at the specified address that occurred because of a flow
* from the fromAddr. If no future value is stored, it will return the value stored in the program.
*
* @param register the register to get a value for.
@ -914,7 +914,7 @@ public class DisassemblerContextImpl implements DisassemblerContext {
}
/**
* Returns the future RegisterValue at the specified address that occured because of a flow from
* Returns the future RegisterValue at the specified address that occurred because of a flow from
* the fromAddr. If no future value is stored, it will return the value stored in the program.
* The value returned may not have a complete value for the requested register.
*

View file

@ -109,7 +109,7 @@ public interface CodeBlock extends AddressSetView {
* Get an Iterator over the CodeBlocks that are flowed to from this
* CodeBlock.
* @param monitor task monitor which allows user to cancel operation.
* @return An iterator over CodeBlocks refered to by this Block.
* @return An iterator over CodeBlocks referred to by this Block.
* @throws CancelledException if the monitor cancels the operation.
*/
public CodeBlockReferenceIterator getDestinations(TaskMonitor monitor) throws CancelledException;

View file

@ -599,7 +599,7 @@ public class SimpleBlockModel implements CodeBlockModel {
// return FlowType.INVALID;
// }
//
// // look at all refs to symbol, if not refered to by fallthrough
// // look at all refs to symbol, if not referred to by fallthrough
// // instruction, must be flow, so return true.
// Referent refs[] = sym.getReferences();
// if (refs == null) {

View file

@ -29,7 +29,7 @@ import ghidra.util.Msg;
*
* Base abstract data type for a Dynamic structure data type that contains
* some number of repeated data types. After each data type, including the header
* there is a terminator value which specifies wether there are any more data structures
* there is a terminator value which specifies weather there are any more data structures
* following. TerminatorValue can be 1,2,4,or 8 bytes.
*
* The dynamic structure looks like this:

View file

@ -323,7 +323,7 @@ public interface ReferenceManager {
/**
* Return true if a memory reference exists with the given "to" address.
* @param toAddr address being refered to.
* @param toAddr address being referred to.
*/
public boolean hasReferencesTo(Address toAddr);

View file

@ -35,7 +35,7 @@ import ghidra.util.prop.PropertyVisitor;
* For any long the property
* manager can be used to tell if the property exists there and
* what its value is. It also maintains information that allows it
* to efficiently search for the next and previous occurence of the
* to efficiently search for the next and previous occurrence of the
* property relative to a given address.
* The subclass provides the createPage() method that dictates
* the type of PropertyPage that will be managed.

View file

@ -307,7 +307,7 @@ abstract public class AbstractStoredProgramContext extends AbstractProgramContex
if (space.isOverlaySpace()) {
address = ((OverlayAddressSpace) space).translateAddress(address, true);
}
// there is a wierd deleted overlay case that the following code handles - sortof
// there is a weird deleted overlay case that the following code handles - sortof
else if (space.getType() == AddressSpace.TYPE_UNKNOWN) {
return new RegisterValue(register);
}