Re: xvidmode extension

Christophe Rhodes <[email protected]> Tue, 29 Apr 2003 22:27:40 +0100
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
Iban Hatchondo <[email protected]> writes:

> I want to submit to your aprobation this implementation of the non
> standard extension XF86-VidMode. I was needing part of it for probable
> use in Eclipse, and I though you may be interest to include it in CLX ?

I tried playing with this a little, and I couldn't entirely make it
work, but I'm not sure that this is your fault.

The error I get, from SBCL, is: NIL is bad for sequence functions.
Essentially, it seems to be executing (MAKE-SEQUENCE NIL 0), which is
an error, from READ-SEQUENCE-CARD32, in executing (for instance)
XFREE86-VIDMODE-GET-MODE-LINE.  XFREE86-VIDMODE-QUERY-VERSION seems to
work fine on xfree86-4.2.1.

I'm no clx expert, so I can't really say what's going on.  The only
other thing that I probably should note at this point is that I got
some slightly suspicious-looking optimization notes:

;   (+ XLIB::OFFSET (* 4 XLIB::SIZE))
; 
; note: forced to do GENERIC-+ (cost 10)
;     unable to do inline fixnum arithmetic (cost 2) because:
;     The second argument is a (MOD 17179869181), not a FIXNUM.
;     unable to do inline (signed-byte 32) arithmetic (cost 5) because:
;     The second argument is a (MOD 17179869181), not a (SIGNED-BYTE 32).
;     etc.

(MOD 17179869181) looks like a fairly odd type to end up here.

Cheers,

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)