From 4ded1ea6029dfd736f9197d119163705df85fcac Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 7 Nov 2014 20:15:31 +0100 Subject: [PATCH] Make it explicit in comments that dwarf_macro_paramN fetche (N-1)th param --- libdw/libdw.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libdw/libdw.h b/libdw/libdw.h index 9ac8ea493..ca15cc266 100644 --- a/libdw/libdw.h +++ b/libdw/libdw.h @@ -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, -- 2.47.2