[comp.sys.mac] Bug in Glue for wordbreak routines

singer@endor.UUCP (10/02/87)

Dennis Cohen of Ashton-Tate reported the following to me today:

	There is a bug in the glue (provided by Apple) that is responsible
for calling the user's custom word-break routine in TextEdit; D1 and D2
need to be preserved, and the glue is not doing so.

Since all (with few exceptions) Macintosh development systems use the 
glue supplied by Apple, all (with few exceptions) development systems,
such as MPW, Lightspeed C, Turbo Pascal, TML Pascal, and Lightspeed Pascal,
exhibit this bug.

The fix in the glue is simply to preserve the registers...

------

And now a personal note:

	This is Apple's problem. Period. The need to preserve these two
registers isn't documented anywhere (according to Dennis), so there's no
way anyone could have known about it -- including (but not limited to) us.
I guess it's possible to fix the glue, and I've sent a copy of Dennis' bug
report to our compiler writers, and they'll deal with it appropriately.

-----

Dennis: Thanks for bringing this bug to my attention; I trust that if I've
misquoted you that you'll set me straight, one way or another. :-)

		--Rich




**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies, Inc).

Richard M. Siegel
Customer Support Representative
THINK Technologies, Inc.

Uucp: {decvax, ucbvax, sun}!harvard!endor!singer
Internet/Arpanet: singer@harvard.harvard.edu

No one writes programs that work right the first time. If they did,
I'd be out of a job.