]> sourceware.org Git - libabigail.git/commitdiff
Fix some style nits in the native reader and writer
authorDodji Seketeli <dodji@redhat.com>
Sun, 7 Dec 2014 22:39:18 +0000 (23:39 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sun, 7 Dec 2014 22:42:26 +0000 (23:42 +0100)
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>
src/abg-reader.cc
src/abg-writer.cc

index fb9bbac74746d266e15767f982d0185711fbea29..f150090bc0515ea6233b8a020b808ca05023c0dd 100644 (file)
@@ -864,15 +864,16 @@ read_translation_unit_from_input(read_context&    ctxt,
 ///
 /// @return true upon successful parsing, false otherwise.
 static bool
-read_symbol_db_from_input(read_context& ctxt,
-                         bool function_symbols,
-                         string_elf_symbols_map_sptr& symdb)
+read_symbol_db_from_input(read_context&                ctxt,
+                         bool                          function_symbols,
+                         string_elf_symbols_map_sptr&  symdb)
 {
-    xml::reader_sptr reader = ctxt.get_reader();
+  xml::reader_sptr reader = ctxt.get_reader();
   if (!reader)
     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;
   while (status == 1
         && XML_READER_GET_NODE_TYPE(reader) != XML_READER_TYPE_ELEMENT)
index d1fee8de1162cc91298e679aa5a06aff70cb7d45..d21d355a0bde5212321f56dc69d28122db638226 100644 (file)
@@ -1470,9 +1470,9 @@ write_elf_symbol(const shared_ptr<elf_symbol>     sym,
 ///
 /// @return true upon successful completion.
 static bool
-write_elf_symbols_table(const elf_symbols& syms,
-                       write_context& ctxt,
-                       unsigned indent)
+write_elf_symbols_table(const elf_symbols&     syms,
+                       write_context&          ctxt,
+                       unsigned                indent)
 {
   if (syms.empty())
     return false;
This page took 0.046317 seconds and 5 git commands to generate.