-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadaptation.lisp
51 lines (44 loc) · 1.15 KB
/
adaptation.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(in-package #:harlie)
#+sbcl
(defun make-synchronized-hash-table (&key
(test 'eql)
(size 40)
(rehash-size 1.5)
(rehash-threshold 1))
(make-hash-table :test test
:size size
:rehash-size
rehash-size
:rehash-threshold rehash-threshold
:synchronized t))
#+ccl
(defun make-synchronized-hash-table (&key
(test 'eql)
(size 40)
(rehash-size 1.5)
(rehash-threshold 1))
(make-hash-table :test test
:size size
:rehash-size
rehash-size
:rehash-threshold rehash-threshold))
#+ecl
(defun make-synchronized-hash-table (&key
(test 'eql)
(size 40)
(rehash-size 1.5)
(rehash-threshold 1))
(make-hash-table :test test
:size size
:rehash-size
rehash-size
:rehash-threshold rehash-threshold
:synchronized t))
;; On SBCL, input must be NIL or it errors out.
;; On CCL, input must be a string or it errors out.
#+sbcl
(defun shell-out (pathname)
(trivial-shell:shell-command pathname))
#+ccl
(defun shell-out (pathname)
(trivial-shell:shell-command pathname :input ""))