libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 298bfeb03d20ae02fab389ff932d4d99f53fd245
parent d68210a0a0cc069dfa278d044595940a7c9ec17b
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu,  1 Aug 2024 15:27:02 +0200

-fix comments

Diffstat:
Msrc/plugins/elf_extractor.c | 110++++++++++++++++++++++++++++++++++++++++----------------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)

diff --git a/src/plugins/elf_extractor.c b/src/plugins/elf_extractor.c @@ -18,8 +18,8 @@ Boston, MA 02110-1301, USA. */ /** - * @file plugins/gif_extractor.c - * @brief plugin to support GIF files + * @file plugins/elf_extractor.c + * @brief plugin to support ELF files * @author Christian Grothoff */ #include "platform.h" @@ -69,19 +69,19 @@ typedef struct #define ELF_HEADER_SIZE sizeof (Elf32_Ehdr) #define ELF_HEADER_FIELDS(p) \ - & (p)->e_type, \ - &(p)->e_machine, \ - &(p)->e_version, \ - &(p)->e_entry, \ - &(p)->e_phoff, \ - &(p)->e_shoff, \ - &(p)->e_flags, \ - &(p)->e_ehsize, \ - &(p)->e_phensize, \ - &(p)->e_phnum, \ - &(p)->e_shentsize, \ - &(p)->e_shnum, \ - &(p)->e_shstrndx + & (p)->e_type, \ + &(p)->e_machine, \ + &(p)->e_version, \ + &(p)->e_entry, \ + &(p)->e_phoff, \ + &(p)->e_shoff, \ + &(p)->e_flags, \ + &(p)->e_ehsize, \ + &(p)->e_phensize, \ + &(p)->e_phnum, \ + &(p)->e_shentsize, \ + &(p)->e_shnum, \ + &(p)->e_shstrndx static char *ELF_HEADER_SPECS[] = { "hhwwwwwhhhhhh", "HHWWWWWHHHHHH", @@ -108,19 +108,19 @@ typedef struct #define ELF64_HEADER_SIZE sizeof (Elf64_Ehdr) #define ELF64_HEADER_FIELDS(p) \ - & (p)->e_type, \ - &(p)->e_machine, \ - &(p)->e_version, \ - &(p)->e_entry, \ - &(p)->e_phoff, \ - &(p)->e_shoff, \ - &(p)->e_flags, \ - &(p)->e_ehsize, \ - &(p)->e_phensize, \ - &(p)->e_phnum, \ - &(p)->e_shentsize, \ - &(p)->e_shnum, \ - &(p)->e_shstrndx + & (p)->e_type, \ + &(p)->e_machine, \ + &(p)->e_version, \ + &(p)->e_entry, \ + &(p)->e_phoff, \ + &(p)->e_shoff, \ + &(p)->e_flags, \ + &(p)->e_ehsize, \ + &(p)->e_phensize, \ + &(p)->e_phnum, \ + &(p)->e_shentsize, \ + &(p)->e_shnum, \ + &(p)->e_shstrndx static char *ELF64_HEADER_SPECS[] = { "hhwxxxwhhhhhh", "HHWXXXWHHHHHH", @@ -143,16 +143,16 @@ typedef struct #define ELF_SECTION_SIZE 40 #define ELF_SECTION_FIELDS(p) \ - & (p)->sh_name, \ - &(p)->sh_type, \ - &(p)->sh_flags, \ - &(p)->sh_addr, \ - &(p)->sh_offset, \ - &(p)->sh_size, \ - &(p)->sh_link, \ - &(p)->sh_info, \ - &(p)->sh_addralign, \ - &(p)->sh_entsize + & (p)->sh_name, \ + &(p)->sh_type, \ + &(p)->sh_flags, \ + &(p)->sh_addr, \ + &(p)->sh_offset, \ + &(p)->sh_size, \ + &(p)->sh_link, \ + &(p)->sh_info, \ + &(p)->sh_addralign, \ + &(p)->sh_entsize static char *ELF_SECTION_SPECS[] = { "wwwwwwwwww", "WWWWWWWWWW", @@ -171,14 +171,14 @@ typedef struct } Elf32_Phdr; #define ELF_PDHR_SIZE 32 #define ELF_PHDR_FIELDS(p) \ - & (p)->p_type, \ - &(p)->p_offset, \ - &(p)->p_vaddr, \ - &(p)->p_paddr, \ - &(p)->p_filesz, \ - &(p)->p_memsz, \ - &(p)->p_flags, \ - &(p)->p_align + & (p)->p_type, \ + &(p)->p_offset, \ + &(p)->p_vaddr, \ + &(p)->p_paddr, \ + &(p)->p_filesz, \ + &(p)->p_memsz, \ + &(p)->p_flags, \ + &(p)->p_align static char *ELF_PHDR_SPECS[] = { "wwwwwwww", "WWWWWWWW", @@ -195,8 +195,8 @@ typedef struct } Elf32_Dyn; #define ELF_DYN_SIZE 8 #define ELF_DYN_FIELDS(p) \ - & (p)->d_tag, \ - &(p)->d_un + & (p)->d_tag, \ + &(p)->d_un static char *ELF_DYN_SPECS[] = { "ww", "WW", @@ -488,12 +488,12 @@ readStringTable (struct EXTRACTOR_ExtractContext *ec, #define ADD(s, type) do { \ - if (0!=ec->proc (ec->cls, "elf", type, \ - EXTRACTOR_METAFORMAT_UTF8, "text/plain", \ - s, strlen (s) + 1)) \ - { \ - return; \ - } \ + if (0!=ec->proc (ec->cls, "elf", type, \ + EXTRACTOR_METAFORMAT_UTF8, "text/plain", \ + s, strlen (s) + 1)) \ + { \ + return; \ + } \ } while (0) @@ -799,4 +799,4 @@ EXTRACTOR_elf_extract_method (struct EXTRACTOR_ExtractContext *ec) } -/* end of gif_extractor.c */ +/* end of elf_extractor.c */