diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-22 16:24:53 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-22 16:24:53 +0000 |
commit | a2f7be91fc5f7347408fb24fe132194be4860bec (patch) | |
tree | f17d769828f9016a03c5e139b2664c5e6bed6bec /gcc/line-map.h | |
parent | bef89e9e0929d4c17cfa23c0ab8c8cc3315a88c9 (diff) | |
download | gcc-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.h')
-rw-r--r-- | gcc/line-map.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/line-map.h b/gcc/line-map.h index 8309f08..1176743 100644 --- a/gcc/line-map.h +++ b/gcc/line-map.h @@ -68,10 +68,10 @@ struct line_maps }; /* Initialize a line map set. */ -extern void init_line_maps (struct line_maps *); +extern void linemap_init (struct line_maps *); /* Free a line map set. */ -extern void free_line_maps (struct line_maps *); +extern void linemap_free (struct line_maps *); /* Add a mapping of logical source line to physical source file and line number. The text pointed to by TO_FILE must have a lifetime @@ -82,19 +82,20 @@ extern void free_line_maps (struct line_maps *); FROM_LINE should be monotonic increasing across calls to this function. A call to this function can relocate the previous set of maps, so any stored line_map pointers should not be used. */ -extern const struct line_map *add_line_map +extern const struct line_map *linemap_add (struct line_maps *, enum lc_reason, unsigned int sysp, unsigned int from_line, const char *to_file, unsigned int to_line); /* Given a logical line, returns the map from which the corresponding (source file, line) pair can be deduced. */ -extern const struct line_map *lookup_line (struct line_maps *, unsigned int); +extern const struct line_map *linemap_lookup (struct line_maps *, + unsigned int); /* Print the file names and line numbers of the #include commands which led to the map MAP, if any, to stderr. Nothing is output if the most recently listed stack is the same as the current one. */ -extern void print_containing_files (struct line_maps *, - const struct line_map *); +extern void linemap_print_containing_files (struct line_maps *, + const struct line_map *); /* Converts a map and logical line to source line. */ #define SOURCE_LINE(MAP, LINE) ((LINE) + (MAP)->to_line - (MAP)->from_line) |