replacing import-immutable with import (which is now immutable by default)

This commit is contained in:
Alex Shinn 2011-05-23 04:37:27 -07:00
parent 498ab5da3e
commit 955fc708e9
46 changed files with 48 additions and 74 deletions

View file

@ -32,7 +32,7 @@
type-name type-cpl type-parent type-slots type-name type-cpl type-parent type-slots
object-size integer->immediate gc object-size integer->immediate gc
string-contains) string-contains)
(import-immutable (scheme)) (import (scheme))
(include-shared "ast") (include-shared "ast")
(include "ast.scm")) (include "ast.scm"))

View file

@ -3,5 +3,5 @@
(export base64-encode base64-encode-string (export base64-encode base64-encode-string
base64-decode base64-decode-string base64-decode base64-decode-string
base64-encode-header) base64-encode-header)
(import-immutable (scheme) (srfi 33) (chibi io)) (import (scheme) (srfi 33) (chibi io))
(include "base64.scm")) (include "base64.scm"))

View file

@ -6,5 +6,5 @@
(module (chibi disasm) (module (chibi disasm)
(export disasm) (export disasm)
(import-immutable (scheme)) (import (scheme))
(include-shared "disasm")) (include-shared "disasm"))

View file

@ -1,6 +1,6 @@
(module (chibi equiv) (module (chibi equiv)
(export equiv?) (export equiv?)
(import-immutable (scheme)) (import (scheme))
(import (srfi 69)) (import (srfi 69))
(include "equiv.scm")) (include "equiv.scm"))

View file

@ -27,7 +27,7 @@
open/create open/exclusive open/truncate open/create open/exclusive open/truncate
open/append open/non-block open/append open/non-block
is-a-tty?) is-a-tty?)
(import-immutable (scheme)) (import (scheme))
(include-shared "filesystem") (include-shared "filesystem")
(include "filesystem.scm")) (include "filesystem.scm"))

View file

@ -3,5 +3,5 @@
(module (chibi generic) (module (chibi generic)
(export define-generic define-method make-generic generic-add!) (export define-generic define-method make-generic generic-add!)
(import-immutable (scheme)) (import (scheme))
(include "generic.scm")) (include "generic.scm"))

View file

@ -20,6 +20,5 @@
(module (chibi heap-stats) (module (chibi heap-stats)
(export heap-stats heap-dump) (export heap-stats heap-dump)
(import-immutable (scheme)) (import (scheme))
(include-shared "heap-stats")) (include-shared "heap-stats"))

View file

@ -2,6 +2,5 @@
(module (chibi highlight) (module (chibi highlight)
(export highlight highlight-detect-language highlighter-for highlight-style (export highlight highlight-detect-language highlighter-for highlight-style
highlight-scheme highlight-c highlight-assembly) highlight-scheme highlight-c highlight-assembly)
(import-immutable (scheme)) (import (scheme) (srfi 1) (chibi io))
(import (srfi 1) (chibi io))
(include "highlight.scm")) (include "highlight.scm"))

View file

@ -8,6 +8,6 @@
make-null-output-port make-broadcast-port make-concatenated-port make-null-output-port make-broadcast-port make-concatenated-port
make-generated-input-port make-filtered-output-port make-generated-input-port make-filtered-output-port
make-filtered-input-port) make-filtered-input-port)
(import-immutable (scheme) (chibi ast)) (import (scheme) (chibi ast))
(include-shared "io/io") (include-shared "io/io")
(include "io/io.scm")) (include "io/io.scm"))

View file

@ -4,6 +4,6 @@
listing listing-reverse appending appending-reverse listing listing-reverse appending appending-reverse
summing multiplying in-string in-string-reverse summing multiplying in-string in-string-reverse
in-vector in-vector-reverse) in-vector in-vector-reverse)
(import-immutable (scheme)) (import (scheme))
(include "loop/loop.scm")) (include "loop/loop.scm"))

View file

@ -1,6 +1,6 @@
(module (chibi match) (module (chibi match)
(export match match-lambda match-lambda* match-let match-letrec match-let*) (export match match-lambda match-lambda* match-let match-letrec match-let*)
(import-immutable (scheme)) (import (scheme))
(include "match/match.scm")) (include "match/match.scm"))

View file

@ -3,5 +3,5 @@
(export mime-ref assoc-ref mime-header-fold mime-headers->list (export mime-ref assoc-ref mime-header-fold mime-headers->list
mime-parse-content-type mime-decode-header mime-parse-content-type mime-decode-header
mime-message-fold mime-message->sxml) mime-message-fold mime-message->sxml)
(import-immutable (scheme) (chibi base64) (chibi quoted-printable) (chibi io)) (import (scheme) (chibi base64) (chibi quoted-printable) (chibi io))
(include "mime.scm")) (include "mime.scm"))

View file

@ -4,6 +4,6 @@
module-ast module-ast-set! module-ref module-contains? module-ast module-ast-set! module-ref module-contains?
analyze-module containing-module load-module module-exports analyze-module containing-module load-module module-exports
module-name->file procedure-analysis) module-name->file procedure-analysis)
(import-immutable (scheme) (config)) (import (scheme) (config))
(import (chibi ast)) (import (chibi ast))
(include "modules.scm")) (include "modules.scm"))

View file

@ -5,7 +5,7 @@
with-net-io open-net-io with-net-io open-net-io
address-info-family address-info-socket-type address-info-protocol address-info-family address-info-socket-type address-info-protocol
address-info-address address-info-address-length address-info-next) address-info-address address-info-address-length address-info-next)
(import-immutable (scheme)) (import (scheme))
(import (chibi filesystem)) (import (chibi filesystem))
(include-shared "net") (include-shared "net")
(include "net.scm")) (include "net.scm"))

View file

@ -3,5 +3,5 @@
(export path-strip-directory path-directory ;; path-extension-pos (export path-strip-directory path-directory ;; path-extension-pos
path-extension path-strip-extension path-replace-extension path-extension path-strip-extension path-replace-extension
path-absolute? path-relative? path-normalize make-path) path-absolute? path-relative? path-normalize make-path)
(import-immutable (scheme)) (import (scheme))
(include "pathname.scm")) (include "pathname.scm"))

View file

@ -13,7 +13,7 @@
signal/user2 signal/child signal/continue signal/user2 signal/child signal/continue
signal/stop signal/tty-stop signal/tty-input signal/stop signal/tty-stop signal/tty-input
signal/tty-output wait/no-hang) signal/tty-output wait/no-hang)
(import-immutable (scheme)) (import (scheme))
(cond-expand (threads (import (srfi 18))) (else #f)) (cond-expand (threads (import (srfi 18))) (else #f))
(include-shared "process") (include-shared "process")
(body (body

View file

@ -3,5 +3,5 @@
(export quoted-printable-encode quoted-printable-encode-string (export quoted-printable-encode quoted-printable-encode-string
quoted-printable-encode-header quoted-printable-encode-header
quoted-printable-decode quoted-printable-decode-string) quoted-printable-decode quoted-printable-decode-string)
(import-immutable (scheme) (srfi 33) (chibi io)) (import (scheme) (srfi 33) (chibi io))
(include "quoted-printable.scm")) (include "quoted-printable.scm"))

View file

@ -1,7 +1,7 @@
(module (chibi repl) (module (chibi repl)
(export repl) (export repl)
(import-immutable (scheme)) (import (scheme))
(import (chibi ast) (import (chibi ast)
(chibi io) (chibi io)
(chibi process) (chibi process)

View file

@ -1,5 +1,5 @@
(module (chibi scribble) (module (chibi scribble)
(export scribble-parse scribble-read) (export scribble-parse scribble-read)
(import-immutable (scheme)) (import (scheme))
(include "scribble.scm")) (include "scribble.scm"))

View file

@ -3,9 +3,7 @@
(export stty with-stty with-raw-io (export stty with-stty with-raw-io
get-terminal-width get-terminal-dimensions get-terminal-width get-terminal-dimensions
TCSANOW TCSADRAIN TCSAFLUSH) TCSANOW TCSADRAIN TCSAFLUSH)
(import-immutable (scheme) (import (scheme) (srfi 33) (srfi 69))
(srfi 33)
(srfi 69))
(include-shared "stty") (include-shared "stty")
(include "stty.scm")) (include "stty.scm"))

View file

@ -8,7 +8,7 @@
set-current-group-id! set-current-effective-group-id! set-current-group-id! set-current-effective-group-id!
current-session-id create-session current-session-id create-session
set-root-directory!) set-root-directory!)
(import-immutable (scheme)) (import (scheme))
(include-shared "system") (include-shared "system")
(body (body
(define (user-information user) (define (user-information user)

View file

@ -8,6 +8,5 @@
current-test-verbosity current-test-epsilon current-test-comparator current-test-verbosity current-test-epsilon current-test-comparator
current-test-applier current-test-handler current-test-skipper current-test-applier current-test-handler current-test-skipper
current-test-group-reporter test-failure-count) current-test-group-reporter test-failure-count)
(import-immutable (scheme)) (import (scheme) (srfi 39) (srfi 98) (chibi time) (chibi ast))
(import (srfi 39) (srfi 98) (chibi time) (chibi ast))
(include "test.scm")) (include "test.scm"))

View file

@ -7,6 +7,6 @@
time-second time-minute time-hour time-day time-month time-year time-second time-minute time-hour time-day time-month time-year
time-day-of-week time-day-of-year time-dst? time-day-of-week time-day-of-year time-dst?
tm? timeval? timezone?) tm? timeval? timezone?)
(import-immutable (scheme)) (import (scheme))
(include-shared "time")) (include-shared "time"))

View file

@ -1,7 +1,6 @@
(define-module (chibi type-inference) (define-module (chibi type-inference)
(export type-analyze-module type-analyze procedure-signature) (export type-analyze-module type-analyze procedure-signature)
(import-immutable (scheme)) (import (scheme) (srfi 1) (srfi 69) (chibi modules) (chibi ast) (chibi match))
(import (srfi 1) (srfi 69) (chibi modules) (chibi ast) (chibi match))
(include "type-inference.scm")) (include "type-inference.scm"))

View file

@ -5,6 +5,5 @@
uri-with-scheme uri-with-user uri-with-host uri-with-path uri-with-scheme uri-with-user uri-with-host uri-with-path
uri-with-query uri-with-fragment uri-with-query uri-with-fragment
uri-encode uri-decode uri-query->alist uri-alist->query) uri-encode uri-decode uri-query->alist uri-alist->query)
(import-immutable (scheme) (import (scheme) (srfi 9))
(srfi 9))
(include "uri.scm")) (include "uri.scm"))

View file

@ -1,7 +1,7 @@
(module (srfi 11) (module (srfi 11)
(export let-values let*-values) (export let-values let*-values)
(import-immutable (scheme)) (import (scheme))
(begin (begin
(define-syntax let*-values (define-syntax let*-values
(syntax-rules () (syntax-rules ()
@ -25,4 +25,3 @@
((let-values ((params expr) . rest) . body) ((let-values ((params expr) . rest) . body)
(let-values ("step") () () expr () params rest . body)) (let-values ("step") () () expr () params rest . body))
)))) ))))

View file

@ -1,7 +1,7 @@
(module (srfi 16) (module (srfi 16)
(export case-lambda) (export case-lambda)
(import-immutable (scheme)) (import (scheme))
(begin (begin
(define-syntax %case (define-syntax %case
(syntax-rules () (syntax-rules ()
@ -21,4 +21,3 @@
(syntax-rules () (syntax-rules ()
((case-lambda . clauses) ((case-lambda . clauses)
(lambda args (let ((len (length args))) (%case args len 0 () . clauses)))))))) (lambda args (let ((len (length args))) (%case args len 0 () . clauses))))))))

View file

@ -15,11 +15,7 @@
join-timeout-exception? abandoned-mutex-exception? join-timeout-exception? abandoned-mutex-exception?
terminated-thread-exception? uncaught-exception? terminated-thread-exception? uncaught-exception?
uncaught-exception-reason) uncaught-exception-reason)
(import-immutable (scheme) (import (scheme) (srfi 9) (chibi ast) (chibi time))
(srfi 9)
(chibi ast)
(chibi time))
(include "18/types.scm") (include "18/types.scm")
(include-shared "18/threads") (include-shared "18/threads")
(include "18/interface.scm")) (include "18/interface.scm"))

View file

@ -1,7 +1,7 @@
(module (srfi 2) (module (srfi 2)
(export and-let*) (export and-let*)
(import-immutable (scheme)) (import (scheme))
(begin (begin
(define-syntax and-let* (define-syntax and-let*
(syntax-rules () (syntax-rules ()
@ -13,4 +13,3 @@
((and-let* ((expr) . rest) . body) ((and-let* ((expr) . rest) . body)
(let ((tmp expr)) (let ((tmp expr))
(and tmp (and-let* rest . body)))))))) (and tmp (and-let* rest . body))))))))

View file

@ -1,7 +1,7 @@
(module (srfi 26) (module (srfi 26)
(export cut cute) (export cut cute)
(import-immutable (scheme)) (import (scheme))
(begin (begin
(define-syntax %cut (define-syntax %cut
(syntax-rules (<> <...>) (syntax-rules (<> <...>)
@ -21,4 +21,3 @@
(syntax-rules () ((cut args ...) (%cut #f () () args ...)))) (syntax-rules () ((cut args ...) (%cut #f () () args ...))))
(define-syntax cute (define-syntax cute
(syntax-rules () ((cute args ...) (%cut #t () () args ...)))))) (syntax-rules () ((cute args ...) (%cut #t () () args ...))))))

View file

@ -5,7 +5,6 @@
random-source-state-ref random-source-state-set! random-source-state-ref random-source-state-set!
random-source-randomize! random-source-pseudo-randomize! random-source-randomize! random-source-pseudo-randomize!
random-source-make-integers random-source-make-reals) random-source-make-integers random-source-make-reals)
(import-immutable (scheme)) (import (scheme))
(include-shared "27/rand") (include-shared "27/rand")
(include "27/constructors.scm")) (include "27/constructors.scm"))

View file

@ -12,6 +12,6 @@
first-set-bit first-set-bit
extract-bit-field test-bit-field? clear-bit-field extract-bit-field test-bit-field? clear-bit-field
replace-bit-field copy-bit-field) replace-bit-field copy-bit-field)
(import-immutable (scheme)) (import (scheme))
(include-shared "33/bit") (include-shared "33/bit")
(include "33/bitwise.scm")) (include "33/bitwise.scm"))

View file

@ -1,6 +1,6 @@
(module (srfi 38) (module (srfi 38)
(import-immutable (scheme)) (import (scheme))
(export write-with-shared-structure write/ss (export write-with-shared-structure write/ss
read-with-shared-structure read/ss) read-with-shared-structure read/ss)
(include "38.scm")) (include "38.scm"))

View file

@ -1,6 +1,6 @@
(module (srfi 39) (module (srfi 39)
(export make-parameter parameterize) (export make-parameter parameterize)
(import-immutable (scheme)) (import (scheme))
(include-shared "39/param") (include-shared "39/param")
(include "39/syntax.scm")) (include "39/syntax.scm"))

View file

@ -1,7 +1,7 @@
(module (srfi 55) (module (srfi 55)
(export require-extension) (export require-extension)
(import-immutable (scheme)) (import (scheme))
(begin (begin
(define-syntax require-extension (define-syntax require-extension
(syntax-rules () (syntax-rules ()

View file

@ -1,5 +1,4 @@
(module (srfi 6) (module (srfi 6)
(export open-input-string open-output-string get-output-string) (export open-input-string open-output-string get-output-string)
(import-immutable (scheme))) (import (scheme)))

View file

@ -10,8 +10,6 @@
hash-table-walk hash-table-fold hash-table->alist hash-table-walk hash-table-fold hash-table->alist
hash-table-copy hash-table-merge! hash-table-copy hash-table-merge!
hash string-hash string-ci-hash hash-by-identity) hash string-hash string-ci-hash hash-by-identity)
(import-immutable (scheme) (import (scheme) (srfi 9))
(srfi 9))
(include-shared "69/hash") (include-shared "69/hash")
(include "69/type.scm" "69/interface.scm")) (include "69/type.scm" "69/interface.scm"))

View file

@ -1,10 +1,9 @@
(module (srfi 8) (module (srfi 8)
(export receive) (export receive)
(import-immutable (scheme)) (import (scheme))
(body (body
(define-syntax receive (define-syntax receive
(syntax-rules () (syntax-rules ()
((receive params expr . body) ((receive params expr . body)
(call-with-values (lambda () expr) (lambda params . body))))))) (call-with-values (lambda () expr) (lambda params . body)))))))

View file

@ -1,6 +1,5 @@
(module (srfi 9) (module (srfi 9)
(export define-record-type) (export define-record-type)
(import-immutable (scheme)) (import (scheme))
(include "9.scm")) (include "9.scm"))

View file

@ -1,7 +1,6 @@
(module (srfi 95) (module (srfi 95)
(export sorted? merge merge! sort sort! object-cmp) (export sorted? merge merge! sort sort! object-cmp)
(import-immutable (scheme)) (import (scheme))
(include-shared "95/qsort") (include-shared "95/qsort")
(include "95/sort.scm")) (include "95/sort.scm"))

View file

@ -2,4 +2,3 @@
(module (srfi 98) (module (srfi 98)
(export get-environment-variable get-environment-variables) (export get-environment-variable get-environment-variables)
(include-shared "98/env")) (include-shared "98/env"))

View file

@ -1,5 +1,5 @@
(define-module (srfi 99 records) (module (srfi 99 records)
(import (srfi 99 records procedural) (import (srfi 99 records procedural)
(srfi 99 records inspection) (srfi 99 records inspection)
(srfi 99 records syntactic)) (srfi 99 records syntactic))

View file

@ -1,7 +1,6 @@
(define-module (srfi 99 records inspection) (module (srfi 99 records inspection)
(export record? record-rtd rtd-name rtd-parent (export record? record-rtd rtd-name rtd-parent
rtd-field-names rtd-all-field-names rtd-field-mutable?) rtd-field-names rtd-all-field-names rtd-field-mutable?)
(import-immutable (scheme)) (import (scheme) (chibi ast))
(import (chibi ast))
(include "inspection.scm")) (include "inspection.scm"))

View file

@ -1,6 +1,5 @@
(define-module (srfi 99 records procedural) (module (srfi 99 records procedural)
(export make-rtd rtd? rtd-constructor rtd-predicate rtd-accessor rtd-mutator) (export make-rtd rtd? rtd-constructor rtd-predicate rtd-accessor rtd-mutator)
(import-immutable (scheme)) (import (scheme) (chibi ast) (srfi 99 records inspection))
(import (chibi ast) (srfi 99 records inspection))
(include "procedural.scm")) (include "procedural.scm"))

View file

@ -1,6 +1,5 @@
(define-module (srfi 99 records syntactic) (module (srfi 99 records syntactic)
(export define-record-type) (export define-record-type)
(import-immutable (scheme)) (import (scheme) (srfi 99 records inspection))
(import (srfi 99 records inspection))
(include "syntactic.scm")) (include "syntactic.scm"))