help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locations suggest


From: John W. Millaway
Subject: Re: Locations suggest
Date: Thu, 3 Jan 2002 17:25:53 -0800 (PST)

> The idea was otherwise just that if the file C/C++ file structure already
> keeps track of the position, one can use that, and compute the column
> number from that. This might be faster than trying to keep track of the
> column number.

Probably the same speed. This:

    col = ftell(yyin) - last_newline;

compared to this:

    col = last_column + last_yyleng;

The benefit of the second one is that it works for string buffers without
conditional code.



__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]