]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Make it explicit in comments that dwarf_macro_paramN fetche (N-1)th param pmachata/macro
authorPetr Machata <pmachata@redhat.com>
Fri, 7 Nov 2014 19:15:31 +0000 (20:15 +0100)
committerPetr Machata <pmachata@redhat.com>
Fri, 7 Nov 2014 19:15:31 +0000 (20:15 +0100)
libdw/libdw.h

index 9ac8ea493af3ee1952d3ff8ccd16621c18558656..ca15cc266b947d964219cbafab3a23b5dc92ebb9 100644 (file)
@@ -896,13 +896,13 @@ extern int dwarf_macro_getparamcnt (Dwarf_Macro *macro, size_t *paramcntp);
 extern int dwarf_macro_param (Dwarf_Macro *macro, size_t idx,
                              Dwarf_Attribute *attribute);
 
-/* Return first macro parameter.  This will return -1 if the parameter
-   is not an integral value.  Use dwarf_macro_param for more general
-   access.  */
+/* Return macro parameter with index 0.  This will return -1 if the
+   parameter is not an integral value.  Use dwarf_macro_param for more
+   general access.  */
 extern int dwarf_macro_param1 (Dwarf_Macro *macro, Dwarf_Word *paramp)
      __nonnull_attribute__ (2);
 
-/* Return second macro parameter.  This will return -1 if the
+/* Return macro parameter with index 1.  This will return -1 if the
    parameter is not an integral or string value.  Use
    dwarf_macro_param for more general access.  */
 extern int dwarf_macro_param2 (Dwarf_Macro *macro, Dwarf_Word *paramp,