diff options
author | midipix <writeonce@midipix.org> | 2016-11-19 18:44:06 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-19 18:44:06 -0500 |
commit | 22d1575133aef057f6a62a2709500033e9df58a4 (patch) | |
tree | ee9e921bf3c2c58c5af374fcdea1662064a8394c /src/meta | |
parent | 84e888aef13528b63677d6da080ff6a9922680f2 (diff) | |
download | pemagine-22d1575133aef057f6a62a2709500033e9df58a4.tar.bz2 pemagine-22d1575133aef057f6a62a2709500033e9df58a4.tar.xz |
pe_get_symbol_name(), pe_get_import_symbol_info(): code maintenance.
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/pe_get_symbol_name.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/meta/pe_get_symbol_name.c b/src/meta/pe_get_symbol_name.c index 9b4d11d..63a0fff 100644 --- a/src/meta/pe_get_symbol_name.c +++ b/src/meta/pe_get_symbol_name.c @@ -7,13 +7,12 @@ #include <psxtypes/psxtypes.h> #include <pemagine/pemagine.h> -/* private args structure */ + struct pe_symbol_name_ctx { const void * addr; char * name; }; -/* private forward declarations */ static int pe_enum_exports_callback( const void * base, struct pe_raw_export_hdr * exp_hdr, @@ -33,7 +32,7 @@ static char * pe_get_imported_symbol_info_64( struct pe_ldr_tbl_entry ** ldr_tbl_entry); #endif -pe_api + char * pe_get_symbol_name(const void * base, const void * sym_addr) { struct pe_export_sym exp_item; @@ -52,7 +51,6 @@ char * pe_get_symbol_name(const void * base, const void * sym_addr) } -pe_api char * pe_get_import_symbol_info( const void * sym_addr, struct pe_ldr_tbl_entry ** ldr_tbl_entry) |