Skip to content

Commit

Permalink
Move cl21.core.util -> cl21.internal.util.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Aug 26, 2014
1 parent 4bb691c commit 536fce8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
11 changes: 7 additions & 4 deletions cl21.asd
Expand Up @@ -30,6 +30,7 @@
(:file "asdf" :depends-on ("cl21" "core-subpackages"))
(:module "core-subpackages"
:pathname "core"
:depends-on ("internal")
:components
((:file "types")
(:file "condition")
Expand All @@ -43,15 +44,17 @@
(:file "cons" :depends-on ("generic" "sequence" "array"))
(:file "array" :depends-on ("generic"))
(:file "string")
(:file "sequence" :depends-on ("generic" "condition" "environment" "util"))
(:file "hash-table" :depends-on ("generic" "condition" "package" "sequence" "util"))
(:file "sequence" :depends-on ("generic" "condition" "environment"))
(:file "hash-table" :depends-on ("generic" "condition" "package" "sequence"))
(:file "file")
(:file "stream")
(:file "generic" :depends-on ("types"))
(:file "repl")
(:file "readtable" :depends-on ("function" "array" "sequence" "cons"))
(:file "environment")
(:file "util" :depends-on ("environment"))))
(:file "environment")))
(:module "internal"
:components
((:file "util")))
(:module "stdlib"
:depends-on ("core")
:components
Expand Down
2 changes: 1 addition & 1 deletion src/core/cons.lisp
Expand Up @@ -66,7 +66,7 @@
:coerce)
(:shadowing-import-from :cl21.core.array
:vector)
(:import-from :cl21.core.util
(:import-from :cl21.internal.util
:define-typecase-compiler-macro)
(:import-from :alexandria
:iota
Expand Down
2 changes: 1 addition & 1 deletion src/core/hash-table.lisp
Expand Up @@ -27,7 +27,7 @@
:iterator-endp)
(:shadowing-import-from :cl21.core.sequence
:map)
(:import-from :cl21.core.util
(:import-from :cl21.internal.util
:define-typecase-compiler-macro)
(:import-from :alexandria
:alist-hash-table
Expand Down
2 changes: 1 addition & 1 deletion src/core/sequence.lisp
Expand Up @@ -66,7 +66,7 @@
:method-unimplemented-error)
(:import-from :cl21.core.environment
:variable-information)
(:import-from :cl21.core.util
(:import-from :cl21.internal.util
:define-typecase-compiler-macro)
#+nil
(:import-from :split-sequence
Expand Down
11 changes: 8 additions & 3 deletions src/core/util.lisp → src/internal/util.lisp
@@ -1,12 +1,17 @@
(in-package :cl-user)
(defpackage cl21.core.util
(defpackage cl21.internal.util
(:use :cl)
(:import-from :cl21.core.environment
(:import-from #+sbcl :sb-cltl2
#+openmcl :ccl
#+cmu :ext
#+allegro :sys
#+ecl :si
#+abcl :lisp
:variable-information)
(:import-from :alexandria
:ensure-list)
(:export :define-typecase-compiler-macro))
(in-package :cl21.core.util)
(in-package :cl21.internal.util)

(defmacro define-typecase-compiler-macro (name lambda-list typecase)
(flet ((remove-from-lambda-list (target lambda-list)
Expand Down

0 comments on commit 536fce8

Please sign in to comment.