I am working on automatic cropping for picts. Here automatic means the
pict will be cropped (or extended) to include what will be inked when the pict is drawn.
The function crop/inked seems to work fine (see attached file), but the
functions in draw/unsage/cairo uses the following for outputs:
(define-fun-syntax _ptr/immobile
(syntax-id-rules (_ptr/immobile o)
[(_ptr/immobile o t) (type: _pointer
pre: (malloc t 'atomic-interior)
post: (x => (ptr-ref x t)))]))
Since I need both input and output I have used
(_ptr io _double)but maybe I need to use a version of _ptr/immobile that also handles io arguments?
If so how can I change the definition of _ptr/immobile.
See attached file for `crop/inked`.
/Jens Axel