[prev in list] [next in list] [prev in thread] [next in thread]
List: pdf-devel
Subject: Re: [pdf-devel] Re: Modifications on pdf_token_read to get
From: jemarch () gnu ! org
Date: 2009-06-17 22:17:32
Message-ID: 874oueqzcz.wl%jemarch () gnu ! org
[Download RAW message or body]
> The easiest way to implement it in the token reader would probably
> be to replace the "reader->state = X" statements with calls to a
> private function (e.g. enter_state) that would also store the
> token's starting position. Then in flush_token, store this value
> when emitting a token.
>
> Many thanks for the hints :)
>
> I just merged the type4+tokeniser patch in the trunk. All the unit
> tests for the type 4 functions are passing.
The code you committed changes beg_pos in flush_token even if no token
is emitted, which could leave it pointing at an unexpected position
after an error like EAGAIN. I think that line of code belongs between
"*token = new_tok;" and "finish:".
Right. Fixed.
--
Jose E. Marchesi <jemarch@gnu.org>
http://www.jemarch.net
GNU Project http://www.gnu.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic