Changeset 39722 in project
- Timestamp:
- 03/16/21 17:47:02 (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/5/mailbox/trunk/inline-queue.scm
r39721 r39722 21 21 22 22 (define-inline (%queue-unlimited-limit q) most-positive-fixnum) 23 24 (define-inline (%queue-unlimited-room q) (%queue-unlimited-limit q)) 23 25 24 26 (define-inline (%queue-unlimited-limit-set! q v) … … 97 99 (%->boolean (%queue-unlimited-cursor-prev-pair c)) ) 98 100 99 (define (%queue-unlimited-cursor-unwound? q c)101 (define-inline (%queue-unlimited-cursor-unwound? q c) 100 102 (null? (%queue-unlimited-cursor-next-pair c)) ) 101 103 … … 201 203 (error '%queue-limited-cursor-winding? "unsupported" q c) ) 202 204 203 (define (%queue-limited-cursor-unwound? q c)205 (define-inline (%queue-limited-cursor-unwound? q c) 204 206 (error '%queue-limited-cursor-unwound? "unsupported" q c) ) 205 207 … … 267 269 (error '%queue-unbuffered-cursor-winding? "unsupported" q c) ) 268 270 269 (define (%queue-unbuffered-cursor-unwound? q c)271 (define-inline (%queue-unbuffered-cursor-unwound? q c) 270 272 (error '%queue-unbuffered-cursor-unwound? "unsupported" q c) ) 271 273 … … 300 302 (define-inline (%queue? x) 301 303 (or 302 (%queue-unlimited? q)303 (%queue-limited? q)304 (%queue-unbuffered? q) ) )305 306 (define (%queue-limit q)304 (%queue-unlimited? x) 305 (%queue-limited? x) 306 (%queue-unbuffered? x) ) ) 307 308 (define-inline (%queue-limit q) 307 309 (cond 308 310 ((%queue-unlimited? q) (%queue-unlimited-limit q)) … … 310 312 (else (%queue-unbuffered-limit q)) ) ) 311 313 312 (define (%queue-limit-set! q v)314 (define-inline (%queue-limit-set! q v) 313 315 (cond 314 316 ((%queue-unlimited? q) (%queue-unlimited-limit-set! q v)) … … 316 318 (else (%queue-unbuffered-limit-set! q v)) ) ) 317 319 318 (define (%queue-count q)320 (define-inline (%queue-count q) 319 321 (cond 320 322 ((%queue-unlimited? q) (%queue-unlimited-count q)) … … 322 324 (else (%queue-unbuffered-count q)) ) ) 323 325 324 (define (%queue-count-set! q v)326 (define-inline (%queue-count-set! q v) 325 327 (cond 326 328 ((%queue-unlimited? q) (%queue-unlimited-count-set! q v)) … … 427 429 (else (%queue-unbuffered-cursor-winding? q c)) ) ) 428 430 429 (define (%queue-cursor-unwound? q c)431 (define-inline (%queue-cursor-unwound? q c) 430 432 (cond 431 433 ((%queue-unlimited? q) (%queue-unlimited-cursor-unwound? q c))
Note: See TracChangeset
for help on using the changeset viewer.