diff --git a/lib/chibi/show/c.scm b/lib/chibi/show/c.scm index 395ed073..6d5538b6 100644 --- a/lib/chibi/show/c.scm +++ b/lib/chibi/show/c.scm @@ -7,7 +7,7 @@ ((define-state-variables var ...) (begin (define var - (make-computation-environment-variable 'var #f #f)) + (make-state-variable 'var #f #f)) ...)))) (define-state-variables diff --git a/lib/chibi/show/c.sld b/lib/chibi/show/c.sld index 4c33160f..3cd3d19d 100644 --- a/lib/chibi/show/c.sld +++ b/lib/chibi/show/c.sld @@ -21,5 +21,5 @@ cpp-error cpp-warning cpp-stringify cpp-sym-cat c-comment c-block-comment c-attribute) (import (chibi) (chibi string) (chibi show) (chibi show pretty) - (srfi 1) (srfi 165) (scheme cxr)) + (srfi 1) (scheme cxr)) (include "c.scm")) diff --git a/lib/srfi/166/base.sld b/lib/srfi/166/base.sld index c27fa593..07151ed4 100644 --- a/lib/srfi/166/base.sld +++ b/lib/srfi/166/base.sld @@ -12,7 +12,8 @@ (rename (srfi 165) (computation-each sequence) (computation-with! with!) - (computation-forked forked)) + (computation-forked forked) + (make-computation-environment-variable make-state-variable)) (chibi show shared)) (cond-expand (chibi @@ -45,6 +46,7 @@ ;; computations fn with with! forked call-with-output ;; state variables + make-state-variable port row col width output writer pad-char ellipsis string-width substring/width substring/preserve radix precision decimal-sep decimal-align sign-rule diff --git a/lib/srfi/166/color.sld b/lib/srfi/166/color.sld index 98cda3b5..b093b473 100644 --- a/lib/srfi/166/color.sld +++ b/lib/srfi/166/color.sld @@ -1,6 +1,6 @@ (define-library (srfi 166 color) - (import (scheme base) (srfi 130) (srfi 165) (srfi 166 base)) + (import (scheme base) (srfi 130) (srfi 166 base)) (export ;; foreground as-red as-blue as-green as-cyan as-yellow @@ -14,5 +14,5 @@ ) (begin (define color - (make-computation-environment-variable 'color #f #f))) + (make-state-variable 'color #f #f))) (include "color.scm"))