/usr/lib/gambc4/_std#.scm is in libgambc4 4.2.8-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | ;;;============================================================================
;;; File: "_std#.scm", Time-stamp: <2008-02-08 22:44:13 feeley>
;;; Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved.
;;;============================================================================
;;; Representation of exceptions.
(define-library-type-of-exception improper-length-list-exception
id: 15d36810-b4bf-4609-83cc-761a8868e4a0
constructor: #f
opaque:
(procedure unprintable: read-only:)
(arguments unprintable: read-only:)
(arg-num unprintable: read-only:)
)
;;;----------------------------------------------------------------------------
;;; Define type checking macros.
(define-check-type string 'string
##string?)
(define-check-type string-list 'string-list
##string?)
(define-check-type vector 'vector
##vector?)
(define-check-type vector-list 'vector-list
##vector?)
(define-check-type s8vector 's8vector
##s8vector?)
(define-check-type s8vector-list 's8vector-list
##s8vector?)
(define-check-type u8vector 'u8vector
##u8vector?)
(define-check-type u8vector-list 'u8vector-list
##u8vector?)
(define-check-type s16vector 's16vector
##s16vector?)
(define-check-type s16vector-list 's16vector-list
##s16vector?)
(define-check-type u16vector 'u16vector
##u16vector?)
(define-check-type u16vector-list 'u16vector-list
##u16vector?)
(define-check-type s32vector 's32vector
##s32vector?)
(define-check-type s32vector-list 's32vector-list
##s32vector?)
(define-check-type u32vector 'u32vector
##u32vector?)
(define-check-type u32vector-list 'u32vector-list
##u32vector?)
(define-check-type s64vector 's64vector
##s64vector?)
(define-check-type s64vector-list 's64vector-list
##s64vector?)
(define-check-type u64vector 'u64vector
##u64vector?)
(define-check-type u64vector-list 'u64vector-list
##u64vector?)
(define-check-type f32vector 'f32vector
##f32vector?)
(define-check-type f32vector-list 'f32vector-list
##f32vector?)
(define-check-type f64vector 'f64vector
##f64vector?)
(define-check-type f64vector-list 'f64vector-list
##f64vector?)
(define-check-type pair-mutable 'mutable
##pair-mutable?)
(define-check-type subtyped-mutable 'mutable
##subtyped-mutable?)
(define-check-type pair 'pair
##pair?)
(define-check-type pair-list 'pair-list
##pair?)
(define-check-type list 'list
##null?)
(define-check-type symbol 'symbol
##symbol?)
(define-check-type char 'char
##char?)
(define-check-type char-list 'char-list
##char?)
(define-check-type procedure 'procedure
##procedure?)
(define-check-type keyword 'keyword
##keyword?)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(##define-macro (macro-fail-check-list arg-num form)
(define (rest-param x)
(if (pair? x)
(rest-param (cdr x))
x))
(define (nonrest-params x)
(if (pair? x)
(cons (car x) (nonrest-params (cdr x)))
'()))
(define (key-params x)
(if (pair? x)
(if (keyword? (car x))
(cons (car x) (cons (cadr x) (key-params (cddr x))))
(key-params (cdr x)))
'()))
(define (prekey-params x)
(if (or (not (pair? x)) (keyword? (car x)))
'()
(cons (car x) (prekey-params (cdr x)))))
(define (failure name)
(let* ((k (key-params (cdr form)))
(r (rest-param (cdr form)))
(nr (nonrest-params (cdr form)))
(pk (prekey-params nr)))
(if (and (null? k) (not (null? r)))
`(,name ,arg-num '() ,(car form) ,@pk ,r)
`(,name
,arg-num
,(if (and (null? k) (null? r))
(car form)
`(##list ,(car form) ,@k ,@(if (null? r) '() (list r))))
,@pk))))
(failure '##fail-check-list))
;;;============================================================================
|