This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: integral location_t
On Mon, Sep 22, 2003 at 08:56:41AM +0100, Nathan Sidwell wrote:
> *) globally unique line-ids -- no context is needed for the
> line-id -> file:line mapping
Agreed.
> *) ability to obtain a line-id corresponding to filename without line
> number (whether this maps directly from line-id -> line_id or from
> filename to line-id, I'm not sure, I suspect the former might be better).
What purpose does this serve?
> *) ability to create new line-id's 'off the end' of the main input file(s)
> (so artificial functions such as static_initialization..., have unique
> line numbers)
Since the library won't have any notion of how many lines
are in the input files, it won't know what's off the end.
> *) the ability to map a line-id to a translation unit might already be
> needed for the multiple-translation unit mode, and probably would be when
> C++'s export is implemented
What purpose does this serve? I don't even know what mapping
line-id to "translation unit" means.
r~