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

RE: Another Text edit ? Answer.



I found my problem with accessing the lineStarts array. In
te-get-line-of-offset the sexp

(%get-long te-ptr (+ line-starts-offset offset)) 

should read

(%get-word te-ptr (+ line-starts-offset (* offset 2)))

as it's an array of (2byte) words. I still don't know why LineStarts
is declared as a longint in MACL's TERec record. Maybe it was
convenient and no one used it.


matt


Matthew Cornell
==================================================
Knowledge Communication Systems Group
Department of Computer and Information Science
University of Massachusetts/Amherst, MA 01002
cornell@cs.umass.edu
(413) 256-6664[home] (413) 545-0639, -0582[office]
==================================================