1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:37:35 +00:00

Everywhere: Fix more typos

This commit is contained in:
Luke 2020-12-31 00:44:53 +00:00 committed by Andreas Kling
parent 22250780ff
commit 0f66589007
9 changed files with 12 additions and 12 deletions

View file

@ -315,7 +315,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
case R_386_NONE:
// Apparently most loaders will just skip these?
// Seems if the 'link editor' generates one something is funky with your code
VERBOSE("None relocation. No symbol, no nothin.\n");
VERBOSE("None relocation. No symbol, no nothing.\n");
break;
case R_386_32: {
auto symbol = relocation.symbol();
@ -356,7 +356,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
// The "__do_global_dtors_aux" function in libgcc_s.so needs this symbol,
// but we do not use that function so we don't actually need to resolve this symbol.
// The reason we can't resolve it here is that the symbol is defined in libc.so,
// but there's a circular dependecy between libgcc_s.so and libc.so,
// but there's a circular dependency between libgcc_s.so and libc.so,
// we deal with it by first loading libgcc_s and then libc.
// So we cannot find this symbol at this time (libc is not yet loaded).
if (m_filename == "libgcc_s.so" && !strcmp(symbol.name(), "__cxa_finalize")) {
@ -396,7 +396,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size)
case R_386_TLS_TPOFF: {
VERBOSE("Relocation type: R_386_TLS_TPOFF at offset %X\n", relocation.offset());
auto symbol = relocation.symbol();
// For some reason, LibC has a R_386_TLS_TPOFF that referes to the undefined symbol.. huh
// For some reason, LibC has a R_386_TLS_TPOFF that refers to the undefined symbol.. huh
if (relocation.symbol_index() == 0)
break;
VERBOSE("Symbol index: %d\n", symbol.index());

View file

@ -449,7 +449,7 @@ DynamicObject::SymbolLookupResult DynamicObject::lookup_symbol(const ELF::Dynami
{
VERBOSE("looking up symbol: %s\n", symbol.name());
if (!symbol.is_undefined()) {
VERBOSE("symbol is defiend in its object\n");
VERBOSE("symbol is defined in its object\n");
return { true, symbol.value(), (FlatPtr)symbol.address().as_ptr(), &symbol.object() };
}
ASSERT(m_global_symbol_lookup_func);

View file

@ -190,7 +190,7 @@ describe("Array.prototype.sort", () => {
expect(() => arr.sort()).toThrow(TestError);
});
test("that it does not use deleteProperty unnecesarily", () => {
test("that it does not use deleteProperty unnecessarily", () => {
var obj = new Proxy(
{ 0: 5, 1: 4, 2: 3, length: 3 },
{

View file

@ -239,7 +239,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_repetition_symbol(ByteCode& byteco
if (nongreedy)
consume();
// Note: dont touch match_length_minimum, it's already correct
// Note: don't touch match_length_minimum, it's already correct
bytecode_to_repeat.insert_bytecode_repetition_min_one(bytecode_to_repeat, !nongreedy);
return !has_error();

View file

@ -400,7 +400,7 @@ static void get_ttglyph_offsets(const ReadonlyBytes& slice, u32 num_points, u32
void Glyf::Glyph::raster_inner(Rasterizer& rasterizer, Gfx::AffineTransform& affine) const
{
// Get offets for flags, x, and y.
// Get offset for flags, x, and y.
u16 num_points = be_u16(m_slice.offset_pointer((m_num_contours - 1) * 2)) + 1;
u16 num_instructions = be_u16(m_slice.offset_pointer(m_num_contours * 2));
u32 flags_offset = m_num_contours * 2 + 2 + num_instructions;