;; Check the port property list for the name, and then the
;; environment. This way a port can override the default.
(let* ((nope "no-overridden-value")
- (v (textual-port-property port name nope)))
+ (v (port-property port name nope)))
(if (eq? v nope)
default-value
v)))
(if file-attribute-alist
(begin
;; Disable further attributes parsing.
- (set-textual-port-property! port
- '*PARSER-ENABLE-FILE-ATTRIBUTES-PARSING?*
- #f)
+ (set-port-property! port
+ '*PARSER-ENABLE-FILE-ATTRIBUTES-PARSING?*
+ #f)
(process-keyword-attribute file-attribute-alist port)
(process-mode-attribute file-attribute-alist port)
(process-studly-case-attribute file-attribute-alist port))))
(cond ((and (symbol? value)
(or (string-ci=? (symbol-name value) "none")
(string-ci=? (symbol-name value) "false")))
- (set-textual-port-property! port '*PARSER-KEYWORD-STYLE* #f))
+ (set-port-property! port '*PARSER-KEYWORD-STYLE* #f))
((and (symbol? value)
(string-ci=? (symbol-name value) "prefix"))
- (set-textual-port-property! port '*PARSER-KEYWORD-STYLE*
- 'PREFIX))
+ (set-port-property! port '*PARSER-KEYWORD-STYLE* 'PREFIX))
((and (symbol? value)
(string-ci=? (symbol-name value) "suffix"))
- (set-textual-port-property! port '*PARSER-KEYWORD-STYLE*
- 'SUFFIX))
+ (set-port-property! port '*PARSER-KEYWORD-STYLE* 'SUFFIX))
(else
(warn "Unrecognized value for keyword-style" value)))))))
(warn "Attribute value mismatch. Expected True.")
#f)
(else
- (set-textual-port-property!
- port '*PARSER-CANONICALIZE-SYMBOLS?* #f))))
+ (set-port-property! port '*PARSER-CANONICALIZE-SYMBOLS?*
+ #f))))
((or (not value)
(and (symbol? value)
(string-ci=? (symbol-name value) "false")))
- (set-textual-port-property! port
- '*PARSER-CANONICALIZE-SYMBOLS?*
- #t))
+ (set-port-property! port '*PARSER-CANONICALIZE-SYMBOLS?* #t))
(else (warn "Unrecognized value for sTuDly-case" value)))))))
\f
(define-syntax define-parse-error
(define-port-operation flush-output)
(define-port-operation discretionary-flush-output)
-(define (textual-port-property port name #!optional default-value)
+(define (port-property port name #!optional default-value)
(guarantee symbol? name 'port-property)
(((port-metadata port) 'get) name default-value))
-(define (set-textual-port-property! port name value)
+(define (set-port-property! port name value)
(guarantee symbol? name 'set-port-property!)
(((port-metadata port) 'put!) name value))
-(define (intern-textual-port-property! port name get-value)
+(define (intern-port-property! port name get-value)
(guarantee symbol? name 'intern-port-property!)
(((port-metadata port) 'intern!) name get-value))
-(define (remove-textual-port-property! port name)
+(define (remove-port-property! port name)
(guarantee symbol? name 'remove-port-property!)
(((port-metadata port) 'delete!) name))
input-port-terminal-mode
input-port?
interaction-i/o-port
- intern-textual-port-property!
+ intern-port-property!
make-textual-port
make-textual-port-type
notification-output-port
output-port-open?
output-port-terminal-mode
output-port?
+ port-property
port/coding
port/known-coding?
port/known-codings
port/set-line-ending
port/supports-coding?
port?
- remove-textual-port-property!
+ remove-port-property!
set-input-port-blocking-mode!
set-input-port-terminal-mode!
set-output-port-blocking-mode!
set-output-port-terminal-mode!
- set-textual-port-property!
+ set-port-property!
textual-i/o-port?
textual-input-port?
textual-output-port?
textual-port-open?
textual-port-operation
textual-port-operation-names
- textual-port-property
textual-port-thread-mutex
textual-port-type
textual-port?
(define (with-rdf-input-port port thunk)
(fluid-let ((*rdf-bnode-registry*
- (intern-textual-port-property! port 'RDF-BNODE-REGISTRY
- make-string-hash-table)))
+ (intern-port-property! port 'RDF-BNODE-REGISTRY
+ make-string-hash-table)))
(thunk)))
(define *rdf-bnode-registry*)
(if registry
(begin
(guarantee-rdf-prefix-registry registry 'PORT/SET-RDF-PREFIX-REGISTRY!)
- (set-textual-port-property! port 'RDF-PREFIX-REGISTRY registry))
- (remove-textual-port-property! port 'RDF-PREFIX-REGISTRY)))
+ (set-port-property! port 'RDF-PREFIX-REGISTRY registry))
+ (remove-port-property! port 'RDF-PREFIX-REGISTRY)))
(define (port/rdf-prefix-registry port)
- (or (textual-port-property port 'RDF-PREFIX-REGISTRY #f)
+ (or (port-property port 'RDF-PREFIX-REGISTRY #f)
*default-rdf-prefix-registry*))
\ No newline at end of file