Skip to content

Commit

Permalink
fix name to Shstrtab
Browse files Browse the repository at this point in the history
  • Loading branch information
katsyoshi committed Oct 3, 2023
1 parent 3294c24 commit 32b9f23
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sig/vaporware/compiler/assembler/elf/section.rbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Vaporware::Compiler::Assembler::ELF::Section
@header: Vaporware::Compiler::Assembler::ELF::SectionHeader
@body: Vaporware::Compiler::Assembler::ELF::Section::Text | Vaporware::Compiler::Assembler::ELF::Section | Vaporware::Compiler::Assembler::ELF::Section::Data | Vaporware::Compiler::Assembler::ELF::Section::BSS | Vaporware::Compiler::Assembler::ELF::Section::Symtab | Vaporware::Compiler::Assembler::ELF::Section::Shsymtab | Vaporware::Compiler::Assembler::ELF::Section::Strtab | Vaporware::Compiler::Assembler::ELF::Section::Note
@body: Vaporware::Compiler::Assembler::ELF::Section::Text | Vaporware::Compiler::Assembler::ELF::Section::Null | Vaporware::Compiler::Assembler::ELF::Section::Data | Vaporware::Compiler::Assembler::ELF::Section::BSS | Vaporware::Compiler::Assembler::ELF::Section::Symtab | Vaporware::Compiler::Assembler::ELF::Section::Shstrtab | Vaporware::Compiler::Assembler::ELF::Section::Strtab | Vaporware::Compiler::Assembler::ELF::Section::Note

def initialize: (type: (String | Symbol)) -> void
end
8 changes: 8 additions & 0 deletions sig/vaporware/compiler/assembler/elf/section/shstrtab.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Vaporware::Compiler::Assembler::ELF::Section::Shstrtab
@strtab: Array[Integer]

def build: () -> String
def set!: (name: String | Array[Integer]) -> self
private def bytes: () -> Array[Array[Integer]?]
private def set_name: (String | Array[Integer]) -> Array[Integer]?
end
8 changes: 0 additions & 8 deletions sig/vaporware/compiler/assembler/elf/section/shsymtab.rbs

This file was deleted.

4 changes: 3 additions & 1 deletion sig/vaporware/compiler/assembler/elf/sections.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ class Vaporware::Compiler::Assembler::ELF::Sections
attr_reader note: Vaporware::Compiler::Assembler::ELF::Section
attr_reader symtab: Vaporware::Compiler::Assembler::ELF::Section
attr_reader strtab: Vaporware::Compiler::Assembler::ELF::Section
attr_reader shsymtab: Vaporware::Compiler::Assembler::ELF::Section
attr_reader shstrtab: Vaporware::Compiler::Assembler::ELF::Section

def each: (){ (Vaporware::Compiler::Assembler::ELF::Section) -> void } -> void
end

0 comments on commit 32b9f23

Please sign in to comment.