[comp.sys.mac.programmer] THINK C v.3.01p4 & SetStylScrap

oster@dewey.soe.berkeley.edu (David Phillip Oster) (07/05/89)

Tech note #207 describes a new call: 
SetStylScrap(long start, long end, StScrpHandle newStyles, TEHandle TE);

THINK C v. 3.01p4 knows about this call, but if I give it arguments of the
above type, I get "pascal argument wrong size".

If I define my own glue, that pushes the arguments, the function selector
(11) and calls to TEDispatch(), it behaves as a no-op.

Any insights?

siegel@endor.harvard.edu (Rich Siegel) (07/05/89)

In article <29953@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes:
>Tech note #207 describes a new call: 
>SetStylScrap(long start, long end, StScrpHandle newStyles, TEHandle TE);
	
	The Tech Note is incorrect, and was used to produce the TLSC interface.
The MPW 3.0 interfaces have this call listed as

PROCEDURE SetStylScrap(rangeStart: LONGINT;rangeEnd: LONGINT;newStyles:
StScrpHandle; redraw: BOOLEAN;hTE: TEHandle);
INLINE $3F3C,$000B,$A83D;

	Note the extra "redraw" parameter.

The THINK C 3.02 patcher fixes this (and other) problems in 3.01px.

		--Rich




~~~~~~~~~~~~~~~
 Rich Siegel
 Staff Software Developer
 Symantec Corporation, Language Products Group
 Internet: siegel@endor.harvard.edu
 UUCP: ..harvard!endor!siegel

 I classify myself as a real developer because my desk is hip-deep in
 assembly-language listings and I spend more than 50% of my time in TMON.

~~~~~~~~~~~~~~~