diff options
author | Per Bothner <bothner@gcc.gnu.org> | 2003-12-05 12:52:39 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-12-05 12:52:39 -0800 |
commit | 7d40b45fcb203d60c6d116d814016a0abe814825 (patch) | |
tree | 3e0094e148de1aa5e175fe54517ab279436e1fba /gcc/line-map.c | |
parent | 5849d27c78186fafec6b265c67806d643bb67c88 (diff) | |
download | gcc-7d40b45fcb203d60c6d116d814016a0abe814825.zip gcc-7d40b45fcb203d60c6d116d814016a0abe814825.tar.gz gcc-7d40b45fcb203d60c6d116d814016a0abe814825.tar.bz2 |
line-map.h (source_location): New typedef.
* line-map.h (source_location): New typedef.
(fileline): Redefined as source_location.
(struct line_map, linemap_add, linemap_lookup): Replace filefile
by source_location.
* line-map.c (linemap_add, linemap_lookup): Use source_location.
From-SVN: r74344
Diffstat (limited to 'gcc/line-map.c')
-rw-r--r-- | gcc/line-map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/line-map.c b/gcc/line-map.c index f04350d7..521c4e5 100644 --- a/gcc/line-map.c +++ b/gcc/line-map.c @@ -1,5 +1,5 @@ /* Map logical line numbers to (source file, line number) pairs. - Copyright (C) 2001 + Copyright (C) 2001, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -75,7 +75,7 @@ linemap_free (struct line_maps *set) const struct line_map * linemap_add (struct line_maps *set, enum lc_reason reason, - unsigned int sysp, unsigned int from_line, + unsigned int sysp, source_location from_line, const char *to_file, unsigned int to_line) { struct line_map *map; @@ -166,7 +166,7 @@ linemap_add (struct line_maps *set, enum lc_reason reason, the list is sorted and we can use a binary search. */ const struct line_map * -linemap_lookup (struct line_maps *set, unsigned int line) +linemap_lookup (struct line_maps *set, source_location line) { unsigned int md, mn = 0, mx = set->used; |