Skip to content

Commit b7718cf

Browse files
committed
add :aarch64
1 parent c13a3ce commit b7718cf

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

lisp/l/string.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@
136136
(if (numberp val)
137137
(sys:poke val self pos type)
138138
(let ((offset (cdr (assoc type
139-
#-(or :alpha :irix6 :x86_64)
139+
#-(or :alpha :irix6 :x86_64 :aarch64)
140140
'((:short . 2) (:long . 4) (:byte . 1) (:char . 1)
141141
(:int . 4) (:integer . 4) (:float . 4) (:double . 8))
142-
#+(or :alpha :irix6 :x86_64)
142+
#+(or :alpha :irix6 :x86_64 :aarch64)
143143
'((:short . 2) (:long . 8) (:byte . 1) (:char . 1)
144144
(:int . 4) (:integer . 4) (:float . 4) (:double . 8))
145145
))))

lisp/xwindow/Xeus.l

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,23 @@
170170
(:GetImage (&key (xy nil) (x 0) (y 0)
171171
(width (- (send self :width) x))
172172
(height (- (send self :height) y))
173-
#-(or :alpha :irix6 :x86_64)
173+
#-(or :alpha :irix6 :x86_64 :aarch64)
174174
(mask #xffffffff)
175-
#+(or :alpha :irix6 :x86_64)
175+
#+(or :alpha :irix6 :x86_64 :aarch64)
176176
(mask #xfffffffffffffff)
177177
(format 2))
178178
;; #define XYBitmap 0 /* depth 1, XYFormat */
179179
;; #define XYPixmap 1 /* depth == drawable depth */
180180
;; #define ZPixmap 2 /* depth == drawable depth */
181181
(if xy (setq x (aref xy 0) y (aref xy 1)))
182182
(let* ((ximg (getimage *display* drawable x y width height mask format))
183-
#-(or :alpha :irix6 :x86_64)
183+
#-(or :alpha :irix6 :x86_64 :aarch64)
184184
(pixsize (/ (sys:peek (+ ximg #x2c) :integer) 8))
185-
#+(or :alpha :irix6 :x86_64)
185+
#+(or :alpha :irix6 :x86_64 :aarch64)
186186
(pixsize (/ (sys:peek (+ ximg #x30) :integer) 8))
187-
#-(or :alpha :irix6 :x86_64)
187+
#-(or :alpha :irix6 :x86_64 :aarch64)
188188
(rowsize (sys:peek (+ ximg #x28) :integer))
189-
#+(or :alpha :irix6 :x86_64)
189+
#+(or :alpha :irix6 :x86_64 :aarch64)
190190
(rowsize (sys:peek (+ ximg #x2c) :integer))
191191
(xoffset (sys:peek (+ ximg 8) :integer))
192192
(ximgdata (sys:peek (+ ximg #x10) :long))

lisp/xwindow/Xevent.l

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@
107107
(same-screen :integer) ;14
108108
(focus :integer) ;15
109109
(alt-state :integer) ;16
110-
#-(or :alpha :irix6 :x86_64)
110+
#-(or :alpha :irix6 :x86_64 :aarch64)
111111
(pad :char 28) ;xevent is required to hold 24 longs
112112
#+:irix6
113113
(pad :char 84)
114114
#+:alpha
115115
(pad :char 88)
116-
#+:x86_64
116+
#+(or :x86_64 :aarch64)
117117
(pad :char 92) ;xevent is required to hold xx longs at x86-64
118118
)
119119

@@ -179,14 +179,14 @@
179179
(defun event-root-pos (e)
180180
(integer-vector (XEvent-x-root e) (XEvent-y-root e)))
181181

182-
#-:x86_64
182+
#-(or :x86_64 :aarch64)
183183
(defun event-width (e) (XEvent-x e))
184-
#-:x86_64
184+
#-(or :x86_64 :aarch64)
185185
(defun event-height (e) (XEvent-y e))
186-
#+:x86_64
186+
#+(or :x86_64 :aarch64)
187187
(defun event-width (e) (sys::peek ;; for width of XConfigureEvent
188188
(+ (sys::address e) 16 (* 4 14)) :integer))
189-
#+:x86_64
189+
#+(or :x86_64 :aarch64)
190190
(defun event-height (e) (sys::peek ;; for height of XConfigureEvent
191191
(+ (sys::address e) 16 (* 4 15)) :integer))
192192

@@ -442,11 +442,11 @@ instead of 12th of motoinNotify events."
442442
(defun window-main-thread ()
443443
(sys::thread-no-wait #'window-main-thread2)))
444444

445-
#-(or :alpha :irix6 :x86_64)
445+
#-(or :alpha :irix6 :x86_64 :aarch64)
446446
(defun display-fd (&optional (disp *display*))
447447
(if disp
448448
(sys:peek (+ disp 8) :long)))
449-
#+(or :alpha :irix6 :x86_64)
449+
#+(or :alpha :irix6 :x86_64 :aarch64)
450450
(defun display-fd (&optional (disp *display*))
451451
(if disp
452452
(sys:peek (+ disp 16) :integer)))

lisp/xwindow/Xgraphics.l

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@
185185
(setq id (LoadQueryFont *display* font))
186186
(if (= id 0)
187187
(prog1 0 (warn "can't load font ~S" font))
188-
#-(or :alpha :irix6 :x86_64)
188+
#-(or :alpha :irix6 :x86_64 :aarch64)
189189
(sys:peek (+ id 4) :long)
190-
#+(or :alpha :irix6 :x86_64)
190+
#+(or :alpha :irix6 :x86_64 :aarch64)
191191
(sys:peek (+ id 8) :long)
192192
))))
193193

@@ -228,9 +228,9 @@
228228
bitunit ; bitmap_mad 32?
229229
(* width (/ bitunit 8) ; bytes_per_line 'width'?
230230
)))
231-
#-:x86_64
231+
#-(or :x86_64 :aarch64)
232232
(make-foreign-string addr 64)
233-
#+:x86_64
233+
#+(or :x86_64 :aarch64)
234234
(make-foreign-string addr 88)
235235
))
236236

@@ -257,7 +257,7 @@
257257
(defparameter *blue-mask* #x00ff0000)
258258

259259

260-
#-(or :alpha :irix6 :x86_64)
260+
#-(or :alpha :irix6 :x86_64 :aarch64)
261261
(defun set-ximage (ximage data width height
262262
&optional (visual *visual*)
263263
(depth (visual-depth visual))
@@ -279,7 +279,7 @@
279279
(sys:poke *blue-mask* ximage 48 :long)
280280
ximage)
281281

282-
#+:x86_64
282+
#+(or :x86_64 :aarch64)
283283
(defun set-ximage (ximage data width height
284284
&optional (visual *visual*)
285285
(depth (visual-depth visual))
@@ -358,9 +358,9 @@
358358
(:gc () gcid)
359359
(:copy ()
360360
(let ((newgc (instance gcontext :create)))
361-
#-(or :alpha :irix6 :x86_64)
361+
#-(or :alpha :irix6 :x86_64 :aarch64)
362362
(CopyGC *display* gcid #xffffffff (send newgc :gc))
363-
#+(or :alpha :irix6 :x86_64)
363+
#+(or :alpha :irix6 :x86_64 :aarch64)
364364
(CopyGC *display* gcid #xffffffffffffffff (send newgc :gc))
365365
newgc))
366366
(:function-to-value (f)

0 commit comments

Comments
 (0)