#181 Counting: use 'character_begin_p' when characters/buffer element size > 1

open
nobody
None
1
2014-03-08
2014-03-08
No

See file "quex/trunk/quex/engine/counter.py" in function
"__prepare(..)":

226         # When there is more than one chunk possibly involved, then it is
227         # possible that reload happens in between one character. I such cases
228         # the 'input_p' cannot be used as reference for delta-add. Here,
229         # we must rely on the 'character begin_p'.
230         if Setup.variable_character_sizes_f(): pointer = E_R.CharacterBeginP
231         else:                                  pointer = E_R.InputP

It is conceivable, that a codec as a constant character sizes of more
than one 'chunk', i.e. buffer element size. In this case, also, the
CharacterBeginP must be used as reference for column-count adding at reload.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks