aboutsummaryrefslogtreecommitdiff
path: root/gcc/line-map.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-07-22 16:24:53 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-07-22 16:24:53 +0000
commita2f7be91fc5f7347408fb24fe132194be4860bec (patch)
treef17d769828f9016a03c5e139b2664c5e6bed6bec /gcc/line-map.c
parentbef89e9e0929d4c17cfa23c0ab8c8cc3315a88c9 (diff)
downloadgcc-a2f7be91fc5f7347408fb24fe132194be4860bec.zip
gcc-a2f7be91fc5f7347408fb24fe132194be4860bec.tar.gz
gcc-a2f7be91fc5f7347408fb24fe132194be4860bec.tar.bz2
hashtable.c (approx_sqrt): Make static.
* hashtable.c (approx_sqrt): Make static. * hashtable.h: Don't prototype approx_sqrt. * line-map.c (init_line_maps): Rename linemap_init. (free_line_maps): Rename linemap_free. (add_line_map): Rename linemap_add. (lookup_line): Rename linemap_lookup. (print_containing_files): Rename linemap_print_containing_files. * linemap.h: Update to match. * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to linemap routines to use new names. From-SVN: r69672
Diffstat (limited to 'gcc/line-map.c')
-rw-r--r--gcc/line-map.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/line-map.c b/gcc/line-map.c
index 897af21..f3c2369 100644
--- a/gcc/line-map.c
+++ b/gcc/line-map.c
@@ -30,7 +30,7 @@ static void trace_include (const struct line_maps *, const struct line_map *);
/* Initialize a line map set. */
void
-init_line_maps (struct line_maps *set)
+linemap_init (struct line_maps *set)
{
set->maps = 0;
set->allocated = 0;
@@ -43,7 +43,7 @@ init_line_maps (struct line_maps *set)
/* Free a line map set. */
void
-free_line_maps (struct line_maps *set)
+linemap_free (struct line_maps *set)
{
if (set->maps)
{
@@ -68,9 +68,9 @@ free_line_maps (struct line_maps *set)
function. */
const struct line_map *
-add_line_map (struct line_maps *set, enum lc_reason reason,
- unsigned int sysp, unsigned int from_line,
- const char *to_file, unsigned int to_line)
+linemap_add (struct line_maps *set, enum lc_reason reason,
+ unsigned int sysp, unsigned int from_line,
+ const char *to_file, unsigned int to_line)
{
struct line_map *map;
@@ -151,7 +151,7 @@ add_line_map (struct line_maps *set, enum lc_reason reason,
the list is sorted and we can use a binary search. */
const struct line_map *
-lookup_line (struct line_maps *set, unsigned int line)
+linemap_lookup (struct line_maps *set, unsigned int line)
{
unsigned int md, mn = 0, mx = set->used;
@@ -175,7 +175,8 @@ lookup_line (struct line_maps *set, unsigned int line)
the most recently listed stack is the same as the current one. */
void
-print_containing_files (struct line_maps *set, const struct line_map *map)
+linemap_print_containing_files (struct line_maps *set,
+ const struct line_map *map)
{
if (MAIN_FILE_P (map) || set->last_listed == map->included_from)
return;