Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl
Commits:
-
7c9ffe2e
by Raymond Toy at 2025-03-27T14:57:58-07:00
1 changed file:
Changes:
... | ... | @@ -24,20 +24,9 @@ |
24 | 24 | (defmacro def-unix-error (name number &optional description)
|
25 | 25 | (declare (ignore description))
|
26 | 26 | `(progn
|
27 | - (eval-when (compile eval)
|
|
28 | - (push (cons ,number ,description) *compiler-unix-errors*))
|
|
29 | 27 | (defconstant ,name ,number)
|
30 | 28 | (export ',name)))
|
31 | 29 | |
32 | -(defmacro emit-unix-errors ()
|
|
33 | - (let* ((max (apply #'max (mapcar #'car *compiler-unix-errors*)))
|
|
34 | - (array (make-array (1+ max) :initial-element nil)))
|
|
35 | - (dolist (error *compiler-unix-errors*)
|
|
36 | - (setf (svref array (car error)) (cdr error)))
|
|
37 | - `(progn
|
|
38 | - (defvar *unix-errors* ',array)
|
|
39 | - (declaim (simple-vector *unix-errors*)))))
|
|
40 | - |
|
41 | 30 | ) ;eval-when
|
42 | 31 | |
43 | 32 | ;;;
|
... | ... | @@ -146,7 +135,3 @@ |
146 | 135 | ;;; Do NOT modify the line below. bin/create-errno.sh depends on it.
|
147 | 136 | |
148 | 137 | ;;; End of default def-unix-error forms |
149 | - |
|
150 | -;;; And now for something completely different ...
|
|
151 | -(emit-unix-errors)
|
|
152 | - |