mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-10 00:27:48 +00:00
Fix some style nits in the native reader and writer
While working on the soname comparison support I stumbled across some small style issues. Fixed thus. * src/abg-reader.cc (read_symbol_db_from_input): Align parameter names. Fix indentation of the first line of the function. * src/abg-writer.cc (write_elf_symbols_table): Align parameter names. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
c0a31b48c7
commit
e518336d8a
@ -864,15 +864,16 @@ read_translation_unit_from_input(read_context& ctxt,
|
|||||||
///
|
///
|
||||||
/// @return true upon successful parsing, false otherwise.
|
/// @return true upon successful parsing, false otherwise.
|
||||||
static bool
|
static bool
|
||||||
read_symbol_db_from_input(read_context& ctxt,
|
read_symbol_db_from_input(read_context& ctxt,
|
||||||
bool function_symbols,
|
bool function_symbols,
|
||||||
string_elf_symbols_map_sptr& symdb)
|
string_elf_symbols_map_sptr& symdb)
|
||||||
{
|
{
|
||||||
xml::reader_sptr reader = ctxt.get_reader();
|
xml::reader_sptr reader = ctxt.get_reader();
|
||||||
if (!reader)
|
if (!reader)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// The symbol db node must start with the abi-instr node.
|
// The symbol db must start with the 'elf-function-symbols" or
|
||||||
|
// 'elf-variable-symbols' element node.
|
||||||
int status = 1;
|
int status = 1;
|
||||||
while (status == 1
|
while (status == 1
|
||||||
&& XML_READER_GET_NODE_TYPE(reader) != XML_READER_TYPE_ELEMENT)
|
&& XML_READER_GET_NODE_TYPE(reader) != XML_READER_TYPE_ELEMENT)
|
||||||
|
@ -1470,9 +1470,9 @@ write_elf_symbol(const shared_ptr<elf_symbol> sym,
|
|||||||
///
|
///
|
||||||
/// @return true upon successful completion.
|
/// @return true upon successful completion.
|
||||||
static bool
|
static bool
|
||||||
write_elf_symbols_table(const elf_symbols& syms,
|
write_elf_symbols_table(const elf_symbols& syms,
|
||||||
write_context& ctxt,
|
write_context& ctxt,
|
||||||
unsigned indent)
|
unsigned indent)
|
||||||
{
|
{
|
||||||
if (syms.empty())
|
if (syms.empty())
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user