summaryrefslogtreecommitdiffstats
path: root/libdwfl/dwfl_module_getsrc_file.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-08-09 10:31:08 +0000
committerRoland McGrath <[email protected]>2005-08-09 10:31:08 +0000
commit4959bf89d92b59ba72bea5786d7b3f9b5564f750 (patch)
tree57b548db476db9ba4e16d00c185e35574d4d3f32 /libdwfl/dwfl_module_getsrc_file.c
parent8f31c2c6f18323daf2a6ce30a24fa4dfe0a70fb3 (diff)
libdw/
2005-08-09 Roland McGrath <[email protected]> * dwarf_end.c: Add INTDEF. * dwarf_error.c (dwarf_errmsg): Likewise. * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs. libdwfl/ 2005-08-09 Roland McGrath <[email protected]> * libdwflP.h: Include ../libdw/libdwP.h for its INTDECLs. * cu.c: Use INTUSE on dwarf_* calls. * dwfl_error.c: Likewise. * dwfl_module.c: Likewise. * dwfl_module_getdwarf.c: Likewise. * dwfl_module_getsrc_file.c: Likewise. * lines.c: Likewise.
Diffstat (limited to 'libdwfl/dwfl_module_getsrc_file.c')
-rw-r--r--libdwfl/dwfl_module_getsrc_file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdwfl/dwfl_module_getsrc_file.c b/libdwfl/dwfl_module_getsrc_file.c
index 81f57ed6..7c617dd8 100644
--- a/libdwfl/dwfl_module_getsrc_file.c
+++ b/libdwfl/dwfl_module_getsrc_file.c
@@ -36,7 +36,7 @@ dwfl_module_getsrc_file (Dwfl_Module *mod,
&& cu != NULL
&& (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
{
- inline const char *dwarf_line_file (const Dwarf_Line *line)
+ inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
{
return line->files->info[line->file].name;
}
@@ -46,7 +46,7 @@ dwfl_module_getsrc_file (Dwfl_Module *mod,
}
inline const char *dwfl_line_file (const Dwfl_Line *line)
{
- return dwarf_line_file (dwfl_line (line));
+ return INTUSE(dwarf_line_file) (dwfl_line (line));
}
/* Search through all the line number records for a matching
@@ -65,7 +65,7 @@ dwfl_module_getsrc_file (Dwfl_Module *mod,
}
else
{
- const char *file = dwarf_line_file (line);
+ const char *file = INTUSE(dwarf_line_file) (line);
if (file != lastfile)
{
/* Match the name with the name the user provided. */
@@ -87,7 +87,8 @@ dwfl_module_getsrc_file (Dwfl_Module *mod,
/* Determine whether this is the best match so far. */
size_t inner;
for (inner = 0; inner < cur_match; ++inner)
- if (dwfl_line_file (match[inner]) == dwarf_line_file (line))
+ if (dwfl_line_file (match[inner])
+ == INTUSE(dwarf_line_file) (line))
break;
if (inner < cur_match
&& (dwfl_line (match[inner])->line != line->line