diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-22 16:24:53 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-22 16:24:53 +0000 |
commit | 196ce2be08fd069883a729ae364646eb4ea67452 (patch) | |
tree | f17d769828f9016a03c5e139b2664c5e6bed6bec /gcc/line-map.h | |
parent | 670f67e2c31c89185002062d58b2e14b046cd1b8 (diff) | |
download | gcc-196ce2be08fd069883a729ae364646eb4ea67452.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69672 138bc75d-0d04-0410-961f-82ee72b054a4
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 8309f080242..1176743eede 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) |