Re: Record types from 5.1 to 5.2

Terje Norderhaug <[email protected]> Mon, 16 Nov 2009 08:24:33 -0800
Newsgroups gmane.lisp.mcl.general
Message-ID <[email protected]>
See e.g. ccl:l1;l1-edfrec.lisp and functions like #'get-region-bounds- 
tlbr for examples of how the code should be upgraded for carbon  
compatibility.

On Nov 16, 2009, at 1:09 AM, Sandro Pedrazzini wrote:
> Trying to load a 5.1 application with 5.2, I encounter some problems
> with possibly changed record type names.
> Here a couple of examples:
>
> (rref (wptr *WMgr-View*) :grafport.txfont)
>
>> Error: :GRAFPORT is not a valid record type
>> While executing: FIND-RECORD-DESCRIPTOR
>
>
> (defun move-region-to (rgn-handle h &optional v)
>    (let* ((delta (make-point h v))
>           (dh (point-h delta))
>           (dv (point-v delta)))
>      (#_OffsetRgn rgn-handle (- dh (href rgn-
> handle :Region.rgnBBox.left))
>                              (- dv (href rgn-
> handle :Region.rgnBBox.top )))))
>
>
>> Error :REGION is not a valid record type
>> While executing: FIND-RECORD-DESCRIPTOR
>
>
>
> Those errors do not appear on 5.1
> I guess this is an old difference between MCL 5.1 and MCL 5.2, but
> because we never ported to MCL 5.2 we encounter the problem only now.
>
> Any hints?
>
>
> Best regards
> Sandro
>
> _______________________________________________
> info-mcl mailing list
> [email protected]
> http://clozure.com/mailman/listinfo/info-mcl

_______________________________________________
info-mcl mailing list
[email protected]
http://clozure.com/mailman/listinfo/info-mcl