This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] GCC caret diagnostics


On 08/03/2008, Tom Tromey <tromey@redhat.com> wrote:
>
>  Perhaps I was mistaken to state an implementation preference this
>  early, anyway.  It would be fine by me to have an implementation that
>  works in any reasonable way.  If the "don't free" approach proves too
>  costly, with sane API design we will know we can always rip it out and
>  go with "reopen and seek".
>

Well, like Jan said, there is no much API design going on here because
we just need to pass an extra "offset" every time we put a new line in
the line_map and retrieve a pointer to a string from a source
location. I think all potential implementations will work with such
API.

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]