[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Another Text edit ? Answer.
- To: info-macl@cambridge.apple.com
- Subject: RE: Another Text edit ? Answer.
- From: cornell@unix1.cs.umass.edu (Matthew Cornell)
- Date: Sat, 21 Jul 90 06:48:05 EDT
- In-reply-to: Matthew Cornell's message of Fri, 20 Jul 90 20:18:46 EDT <9007210018.AA29617@unix1.CS.UMASS.EDU>
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]
==================================================