diff options
author | Per Bothner <per@bothner.com> | 2004-09-15 12:39:22 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-09-15 12:39:22 -0700 |
commit | a2981930a80e57cb4531d4b06303fb6008a6ef34 (patch) | |
tree | ebc3101d0b3f19f88936fde0371d7c4641a67818 /libcpp | |
parent | c18a5b6cadf88275078d4b72249c8174cf079041 (diff) | |
download | gcc-a2981930a80e57cb4531d4b06303fb6008a6ef34.zip gcc-a2981930a80e57cb4531d4b06303fb6008a6ef34.tar.gz gcc-a2981930a80e57cb4531d4b06303fb6008a6ef34.tar.bz2 |
line-map.h (line_map_start): Add parameter names so preceding comment makes sense.
* include/line-map.h (line_map_start): Add parameter names so
preceding comment makes sense.
(linemap_add): Remove from comment mention of non-existing parameter.
From-SVN: r87561
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 6 | ||||
-rw-r--r-- | libcpp/include/line-map.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 7090249..b9aac7b 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2004-09-15 Per Bothner <per@bothner.com> + + * include/line-map.h (line_map_start): Add parameter names so + preceding comment makes sense. + (linemap_add): Remove from comment mention of non-existing parameter. + 2004-09-09 Matt Austern <austern@apple.com> Zack Weinberg <zack@codesourcery.com> diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 5b4ac1e..871bacc 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -108,7 +108,7 @@ extern void linemap_check_files_exited (struct line_maps *); the highest_location). */ extern source_location linemap_line_start -(struct line_maps *, unsigned int, unsigned int); +(struct line_maps *set, unsigned int to_line, unsigned int max_column_hint); /* Add a mapping of logical source line to physical source file and line number. @@ -119,8 +119,7 @@ extern source_location linemap_line_start TO_FILE is NULL, then TO_FILE, TO_LINE and SYSP are given their natural values considering the file we are returning to. - START_LOCATION should be monotonic increasing across calls to this - function. A call to this function can relocate the previous set of + 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 *linemap_add (struct line_maps *, enum lc_reason, unsigned int sysp, |