Loading src/clx/README-CMUCL +7 −38 Original line number Diff line number Diff line $Id: README-CMUCL,v 1.2 2009/06/11 16:03:56 rtoy Rel $ This is an import of Telent-CLX from the fork https://github.com/sharplispers/clx, version 6e39a0df2a0a1d083166f405d4b8bbc463d54d85. This is an import of Telent-CLX as of 0.7.3. All (almost?) files are included. A few changes to fix bugs related to CMUCL have been added, as well as the CVS id. I've tried to make few changes so it will be easy to merge again when desired. All files are included. A few changes to fix bugs related to CMUCL have been added, as well as the CVS id. I've tried to make few changes so it will be easy to merge again when desired. The following files from this directory are compiled and loaded by CMUCL when it builds utilities: clx-library.lisp package.lisp depdefs.lisp clx.lisp dependent.lisp macros.lisp bufmac.lisp buffer.lisp display.lisp gcontext.lisp input.lisp requests.lisp fonts.lisp graphics.lisp text.lisp attributes.lisp translate.lisp keysyms.lisp manager.lisp image.lisp resource.lisp shape.lisp big-requests.lisp xvidmode.lisp xrender.lisp glx.lisp gl.lisp dpms.lisp provide.lisp See src/tools/clxcom.lisp to see what files are compiled. src/clx/attributes.lisp +1 −6 Original line number Diff line number Diff line Loading @@ -40,9 +40,6 @@ ;;; All WITH-STATE has to do (re)bind *Window-attributes* to a list including ;;; the new drawable. The caches are initialized to NIL and allocated as needed. #+cmu (ext:file-comment "$Id: attributes.lisp,v 1.8 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) (eval-when (:compile-toplevel :load-toplevel :execute) Loading Loading @@ -519,13 +516,11 @@ window (error "~S can only be set" 'window-cursor)) (defun set-window-cursor (window cursor) (defun (setf window-cursor) (cursor window) (change-window-attribute window 14 (encode-type (or (member :none) cursor) cursor)) cursor) (defsetf window-cursor set-window-cursor) (defun window-colormap-installed-p (window) (declare (type window window)) (declare (clx-values generalized-boolean)) Loading src/clx/buffer.lisp +28 −98 Original line number Diff line number Diff line Loading @@ -49,9 +49,6 @@ ;; a point after a complete request. This is to ensure that a partial ;; request won't be left after aborts (e.g. control-abort on a lispm). #+cmu (ext:file-comment "$Id: buffer.lisp,v 1.10 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) (defconstant +requestsize+ 160) ;; Max request size (excluding variable length requests) Loading @@ -71,7 +68,6 @@ ,@body))) ,(if (and (null inline) (macroexpand '(use-closures) env)) `(flet ((.with-buffer-body. () ,@body)) #+clx-ansi-common-lisp (declare (dynamic-extent #'.with-buffer-body.)) (with-buffer-function ,buffer ,timeout #'.with-buffer-body.)) (let ((buf (if (or (symbolp buffer) (constantp buffer)) Loading @@ -90,13 +86,10 @@ (declare (type display buffer) (type (or null number) timeout) (type function function) #+clx-ansi-common-lisp (dynamic-extent function) ;; FIXME: This is probably more a bug in SBCL (logged as ;; bug #243) (ignorable timeout) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg function)) (ignorable timeout)) (with-buffer (buffer :timeout timeout :inline t) (funcall function))) Loading Loading @@ -288,10 +281,7 @@ (declare (type display display) (type (or null gcontext) gc-force)) (declare (type function request-function) #+clx-ansi-common-lisp (dynamic-extent request-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function)) (dynamic-extent request-function)) (with-buffer (display :inline t) (multiple-value-prog1 (progn Loading @@ -303,10 +293,7 @@ (declare (type display display) (type (or null gcontext) gc-force)) (declare (type function request-function) #+clx-ansi-common-lisp (dynamic-extent request-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function)) (dynamic-extent request-function)) (multiple-value-prog1 (progn (when gc-force (force-gcontext-changes-internal gc-force)) Loading @@ -324,10 +311,7 @@ (declare (type display display) (type generalized-boolean multiple-reply)) (declare (type function request-function reply-function) #+clx-ansi-common-lisp (dynamic-extent request-function reply-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function reply-function)) (dynamic-extent request-function reply-function)) (let ((pending-command nil) (reply-buffer nil)) (declare (type (or null pending-command) pending-command) Loading Loading @@ -498,11 +482,10 @@ (type array-index nitems start index) (type (or null sequence) data) (type (or null (function (,totype) t)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (if transform (flet ((,ntrans (v) (funcall transform (,transformer v)))) #+clx-ansi-common-lisp (declare (dynamic-extent #',ntrans)) (declare (dynamic-extent #',ntrans)) (,reader reply-buffer result-type nitems #',ntrans data start index)) (,reader reply-buffer result-type nitems #',transformer data start index))))) Loading @@ -529,8 +512,7 @@ (type array-index nitems start index) (type list data) (type (function (,type) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-buffer-input (reply-buffer :sizes (,size) :index index) (do* ((j nitems (index- j 1)) (list (nthcdr start data) (cdr list)) Loading @@ -557,10 +539,7 @@ (type array-index nitems start index) (type (simple-array card8 (*)) data)) (declare (type (function (card8) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card8 (*))) (with-buffer-input (reply-buffer :sizes (8) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -590,10 +569,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card8) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (8) :index index) (do* ((j start (index+ j 1)) Loading @@ -611,8 +587,7 @@ (type array-index nitems start index) (type (or null sequence) data) (type (or null (function (,type) t)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (let ((result (or data (make-sequence result-type nitems)))) (typecase result (list Loading Loading @@ -667,10 +642,7 @@ (type array-index nitems start index) (type (simple-array card16 (*)) data)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (with-buffer-input (reply-buffer :sizes (16) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -703,10 +675,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card16) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (16) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -752,10 +721,7 @@ (type array-index nitems start index) (type (simple-array card32 (*)) data)) (declare (type (function (card32) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card32 (*))) (with-buffer-input (reply-buffer :sizes (32) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -788,10 +754,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card32) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (32) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -819,11 +782,10 @@ (type sequence data) (type array-index boffset start end) (type (or null (function (t) ,fromtype)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (if transform (flet ((,ntrans (x) (,transformer (the ,fromtype (funcall transform x))))) #+clx-ansi-common-lisp (declare (dynamic-extent #',ntrans)) (declare (dynamic-extent #',ntrans)) (,writer buffer boffset data start end #',ntrans)) (,writer buffer boffset data start end #',transformer))))) Loading Loading @@ -852,8 +814,7 @@ (type list data) (type array-index boffset start end) (type (function (t) ,type) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (writing-buffer-chunks ,type ((list (nthcdr start data))) ((type list list)) Loading Loading @@ -905,10 +866,7 @@ (type (simple-array card8 (*)) data) (type array-index boffset start end)) (declare (type (function (card8) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card8 (*))) (writing-buffer-chunks card8 ((index start)) Loading Loading @@ -939,10 +897,7 @@ (type vector data) (type array-index boffset start end)) (declare (type (function (t) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card8 ((index start)) Loading @@ -960,8 +915,7 @@ (type sequence data) (type array-index boffset start end) (type (or null (function (t) ,type)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (typecase data (list (if transform Loading Loading @@ -1020,10 +974,7 @@ (type (simple-array card16 (*)) data) (type array-index boffset start end)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1066,10 +1017,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1122,10 +1070,7 @@ (type (simple-array int16 (*)) data) (type array-index boffset start end)) (declare (type (function (int16) int16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array int16 (*))) (writing-buffer-chunks int16 ((index start)) Loading Loading @@ -1168,10 +1113,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) int16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks int16 ((index start)) Loading Loading @@ -1224,10 +1166,7 @@ (type (simple-array card32 (*)) data) (type array-index boffset start end)) (declare (type (function (card32) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card32 (*))) (writing-buffer-chunks card32 ((index start)) Loading Loading @@ -1270,10 +1209,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card32 ((index start)) Loading Loading @@ -1362,10 +1298,7 @@ (type (simple-array card16 (*)) data) (type array-index boffset start end)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1399,10 +1332,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card16 ((index start)) Loading src/clx/bufmac.lisp +0 −3 Original line number Diff line number Diff line Loading @@ -19,9 +19,6 @@ ;;; express or implied warranty. ;;; #+cmu (ext:file-comment "$Id: bufmac.lisp,v 1.6 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) ;;; The read- macros are in buffer.lisp, because event-case depends on (most of) them. Loading src/clx/build-clx.lisp +0 −3 Original line number Diff line number Diff line ;;; -*- Mode: Lisp; Package: Xlib; Log: clx.log -*- #+cmu (ext:file-comment "$Id: build-clx.lisp,v 1.5 2009/06/17 18:22:45 rtoy Rel $") ;;; Load this file if you want to compile CLX in its entirety. (proclaim '(optimize (speed 3) (safety 1) (space 1) (compilation-speed 0))) Loading Loading
src/clx/README-CMUCL +7 −38 Original line number Diff line number Diff line $Id: README-CMUCL,v 1.2 2009/06/11 16:03:56 rtoy Rel $ This is an import of Telent-CLX from the fork https://github.com/sharplispers/clx, version 6e39a0df2a0a1d083166f405d4b8bbc463d54d85. This is an import of Telent-CLX as of 0.7.3. All (almost?) files are included. A few changes to fix bugs related to CMUCL have been added, as well as the CVS id. I've tried to make few changes so it will be easy to merge again when desired. All files are included. A few changes to fix bugs related to CMUCL have been added, as well as the CVS id. I've tried to make few changes so it will be easy to merge again when desired. The following files from this directory are compiled and loaded by CMUCL when it builds utilities: clx-library.lisp package.lisp depdefs.lisp clx.lisp dependent.lisp macros.lisp bufmac.lisp buffer.lisp display.lisp gcontext.lisp input.lisp requests.lisp fonts.lisp graphics.lisp text.lisp attributes.lisp translate.lisp keysyms.lisp manager.lisp image.lisp resource.lisp shape.lisp big-requests.lisp xvidmode.lisp xrender.lisp glx.lisp gl.lisp dpms.lisp provide.lisp See src/tools/clxcom.lisp to see what files are compiled.
src/clx/attributes.lisp +1 −6 Original line number Diff line number Diff line Loading @@ -40,9 +40,6 @@ ;;; All WITH-STATE has to do (re)bind *Window-attributes* to a list including ;;; the new drawable. The caches are initialized to NIL and allocated as needed. #+cmu (ext:file-comment "$Id: attributes.lisp,v 1.8 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) (eval-when (:compile-toplevel :load-toplevel :execute) Loading Loading @@ -519,13 +516,11 @@ window (error "~S can only be set" 'window-cursor)) (defun set-window-cursor (window cursor) (defun (setf window-cursor) (cursor window) (change-window-attribute window 14 (encode-type (or (member :none) cursor) cursor)) cursor) (defsetf window-cursor set-window-cursor) (defun window-colormap-installed-p (window) (declare (type window window)) (declare (clx-values generalized-boolean)) Loading
src/clx/buffer.lisp +28 −98 Original line number Diff line number Diff line Loading @@ -49,9 +49,6 @@ ;; a point after a complete request. This is to ensure that a partial ;; request won't be left after aborts (e.g. control-abort on a lispm). #+cmu (ext:file-comment "$Id: buffer.lisp,v 1.10 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) (defconstant +requestsize+ 160) ;; Max request size (excluding variable length requests) Loading @@ -71,7 +68,6 @@ ,@body))) ,(if (and (null inline) (macroexpand '(use-closures) env)) `(flet ((.with-buffer-body. () ,@body)) #+clx-ansi-common-lisp (declare (dynamic-extent #'.with-buffer-body.)) (with-buffer-function ,buffer ,timeout #'.with-buffer-body.)) (let ((buf (if (or (symbolp buffer) (constantp buffer)) Loading @@ -90,13 +86,10 @@ (declare (type display buffer) (type (or null number) timeout) (type function function) #+clx-ansi-common-lisp (dynamic-extent function) ;; FIXME: This is probably more a bug in SBCL (logged as ;; bug #243) (ignorable timeout) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg function)) (ignorable timeout)) (with-buffer (buffer :timeout timeout :inline t) (funcall function))) Loading Loading @@ -288,10 +281,7 @@ (declare (type display display) (type (or null gcontext) gc-force)) (declare (type function request-function) #+clx-ansi-common-lisp (dynamic-extent request-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function)) (dynamic-extent request-function)) (with-buffer (display :inline t) (multiple-value-prog1 (progn Loading @@ -303,10 +293,7 @@ (declare (type display display) (type (or null gcontext) gc-force)) (declare (type function request-function) #+clx-ansi-common-lisp (dynamic-extent request-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function)) (dynamic-extent request-function)) (multiple-value-prog1 (progn (when gc-force (force-gcontext-changes-internal gc-force)) Loading @@ -324,10 +311,7 @@ (declare (type display display) (type generalized-boolean multiple-reply)) (declare (type function request-function reply-function) #+clx-ansi-common-lisp (dynamic-extent request-function reply-function) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg request-function reply-function)) (dynamic-extent request-function reply-function)) (let ((pending-command nil) (reply-buffer nil)) (declare (type (or null pending-command) pending-command) Loading Loading @@ -498,11 +482,10 @@ (type array-index nitems start index) (type (or null sequence) data) (type (or null (function (,totype) t)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (if transform (flet ((,ntrans (v) (funcall transform (,transformer v)))) #+clx-ansi-common-lisp (declare (dynamic-extent #',ntrans)) (declare (dynamic-extent #',ntrans)) (,reader reply-buffer result-type nitems #',ntrans data start index)) (,reader reply-buffer result-type nitems #',transformer data start index))))) Loading @@ -529,8 +512,7 @@ (type array-index nitems start index) (type list data) (type (function (,type) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-buffer-input (reply-buffer :sizes (,size) :index index) (do* ((j nitems (index- j 1)) (list (nthcdr start data) (cdr list)) Loading @@ -557,10 +539,7 @@ (type array-index nitems start index) (type (simple-array card8 (*)) data)) (declare (type (function (card8) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card8 (*))) (with-buffer-input (reply-buffer :sizes (8) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -590,10 +569,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card8) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (8) :index index) (do* ((j start (index+ j 1)) Loading @@ -611,8 +587,7 @@ (type array-index nitems start index) (type (or null sequence) data) (type (or null (function (,type) t)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (let ((result (or data (make-sequence result-type nitems)))) (typecase result (list Loading Loading @@ -667,10 +642,7 @@ (type array-index nitems start index) (type (simple-array card16 (*)) data)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (with-buffer-input (reply-buffer :sizes (16) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -703,10 +675,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card16) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (16) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -752,10 +721,7 @@ (type array-index nitems start index) (type (simple-array card32 (*)) data)) (declare (type (function (card32) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card32 (*))) (with-buffer-input (reply-buffer :sizes (32) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -788,10 +754,7 @@ (type vector data) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (card32) t) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (with-buffer-input (reply-buffer :sizes (32) :index index) (do* ((j start (index+ j 1)) Loading Loading @@ -819,11 +782,10 @@ (type sequence data) (type array-index boffset start end) (type (or null (function (t) ,fromtype)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (if transform (flet ((,ntrans (x) (,transformer (the ,fromtype (funcall transform x))))) #+clx-ansi-common-lisp (declare (dynamic-extent #',ntrans)) (declare (dynamic-extent #',ntrans)) (,writer buffer boffset data start end #',ntrans)) (,writer buffer boffset data start end #',transformer))))) Loading Loading @@ -852,8 +814,7 @@ (type list data) (type array-index boffset start end) (type (function (t) ,type) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (writing-buffer-chunks ,type ((list (nthcdr start data))) ((type list list)) Loading Loading @@ -905,10 +866,7 @@ (type (simple-array card8 (*)) data) (type array-index boffset start end)) (declare (type (function (card8) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card8 (*))) (writing-buffer-chunks card8 ((index start)) Loading Loading @@ -939,10 +897,7 @@ (type vector data) (type array-index boffset start end)) (declare (type (function (t) card8) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card8 ((index start)) Loading @@ -960,8 +915,7 @@ (type sequence data) (type array-index boffset start end) (type (or null (function (t) ,type)) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (typecase data (list (if transform Loading Loading @@ -1020,10 +974,7 @@ (type (simple-array card16 (*)) data) (type array-index boffset start end)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1066,10 +1017,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1122,10 +1070,7 @@ (type (simple-array int16 (*)) data) (type array-index boffset start end)) (declare (type (function (int16) int16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array int16 (*))) (writing-buffer-chunks int16 ((index start)) Loading Loading @@ -1168,10 +1113,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) int16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks int16 ((index start)) Loading Loading @@ -1224,10 +1166,7 @@ (type (simple-array card32 (*)) data) (type array-index boffset start end)) (declare (type (function (card32) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card32 (*))) (writing-buffer-chunks card32 ((index start)) Loading Loading @@ -1270,10 +1209,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card32) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card32 ((index start)) Loading Loading @@ -1362,10 +1298,7 @@ (type (simple-array card16 (*)) data) (type array-index boffset start end)) (declare (type (function (card16) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data (simple-array card16 (*))) (writing-buffer-chunks card16 ((index start)) Loading Loading @@ -1399,10 +1332,7 @@ (type array-index boffset start end) (optimize #+cmu(ext:inhibit-warnings 3))) (declare (type (function (t) card16) transform) #+clx-ansi-common-lisp (dynamic-extent transform) #+(and lispm (not clx-ansi-common-lisp)) (sys:downward-funarg transform)) (dynamic-extent transform)) (with-vector (data vector) (writing-buffer-chunks card16 ((index start)) Loading
src/clx/bufmac.lisp +0 −3 Original line number Diff line number Diff line Loading @@ -19,9 +19,6 @@ ;;; express or implied warranty. ;;; #+cmu (ext:file-comment "$Id: bufmac.lisp,v 1.6 2009/06/17 18:22:45 rtoy Rel $") (in-package :xlib) ;;; The read- macros are in buffer.lisp, because event-case depends on (most of) them. Loading
src/clx/build-clx.lisp +0 −3 Original line number Diff line number Diff line ;;; -*- Mode: Lisp; Package: Xlib; Log: clx.log -*- #+cmu (ext:file-comment "$Id: build-clx.lisp,v 1.5 2009/06/17 18:22:45 rtoy Rel $") ;;; Load this file if you want to compile CLX in its entirety. (proclaim '(optimize (speed 3) (safety 1) (space 1) (compilation-speed 0))) Loading