Zack Rusin pisze: > On Tuesday 15 December 2009 09:21:05 michal wrote: > >> Zack Rusin pisze: >> >>> The attached patch makes the tgsi assembly parser report, in an >>> admittedly rather crude way, the line number at which a syntax error was >>> detected. What do you think about that? >>> >> I agree, that's a bit invasive. >> >> What about saving the starting pointer and, on error, scanning it again >> and counting newlines up to the current position? >> > > yea, good idea. also ugly but a lot less code =) > Thank you, looks good.
Note that the line and column numbers are going to be zero-based. This is against the conventions I see in my editor, but use whatever you see fit. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev