Skip to content

Commit 04bba22

Browse files
committed
Change ribn-base into a variable inside calcualte-optimal-encoding
1 parent dd9bcc0 commit 04bba22

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/rsc.scm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4310,7 +4310,7 @@
43104310

43114311
(define (calculate-optimal-encoding proc exports host-config ribn-base)
43124312
(let* ((symtbl-and-symbols* (encode-symtbl proc exports host-config 20)) ;; we assume 20 shorts, will be re-evaluated
4313-
(raw-stream (encode-program proc (car symtbl-and-symbols*) 'raw #t (ribn-base)))
4313+
(raw-stream (encode-program proc (car symtbl-and-symbols*) 'raw #t ribn-base))
43144314
(stats (get-stat-from-raw ($make-table) raw-stream))
43154315
(encoding
43164316
(calculate-start
@@ -4319,7 +4319,7 @@
43194319
(get-maximal-encoding
43204320
(map car encoding-skip-92)
43214321
stats
4322-
(ribn-base)
4322+
ribn-base
43234323
;;DEBUG encoding calculation -- Add the following to
43244324
;;verify the optimal encoding calculations
43254325
;;
@@ -4332,7 +4332,7 @@
43324332
;; (encoding-table->encoding-list
43334333
;; solution)))
43344334
;; #t
4335-
;; (ribn-base)))
4335+
;; ribn-base))
43364336
))))))
43374337
encoding))
43384338

@@ -4382,7 +4382,7 @@
43824382
(eqv? (ribn-base) 92))
43834383
encoding-skip-92)
43844384
((string=? "optimal" encoding-name)
4385-
(calculate-optimal-encoding proc exports host-config ribn-base))
4385+
(calculate-optimal-encoding proc exports host-config (ribn-base)))
43864386
(else
43874387
(error "Cannot find encoding (or number of byte not supported) :" encoding-name))))
43884388

@@ -4408,7 +4408,7 @@
44084408
(if (and compression/2b? (eqv? byte-base 92))
44094409
(begin
44104410
(set! compression-range-size compression-range-size-min)
4411-
(set! encoding (calculate-optimal-encoding proc exports host-config ribn-base))
4411+
(set! encoding (calculate-optimal-encoding proc exports host-config (ribn-base)))
44124412

44134413
(let* ((symtbl-and-symbols*
44144414
(encode-symtbl
@@ -4458,7 +4458,7 @@
44584458
(begin
44594459
(let ((new-crs(+ crs 2) ))
44604460
(set! compression-range-size new-crs)
4461-
(set! encoding (calculate-optimal-encoding proc exports host-config ribn-base))
4461+
(set! encoding (calculate-optimal-encoding proc exports host-config (ribn-base)))
44624462
(let* ((symtbl-and-symbols*
44634463
(encode-symtbl
44644464
proc
@@ -4529,7 +4529,7 @@
45294529
(if (and compression/2b? (eqv? byte-base 256))
45304530
(begin
45314531
(set! compression-range-size compression-range-size-min)
4532-
(set! encoding (calculate-optimal-encoding proc exports host-config ribn-base))
4532+
(set! encoding (calculate-optimal-encoding proc exports host-config (ribn-base)))
45334533

45344534
(let* ((symtbl-and-symbols*
45354535
(encode-symtbl
@@ -4579,7 +4579,7 @@
45794579
(begin
45804580
(let ((new-crs(+ crs 2) ))
45814581
(set! compression-range-size new-crs)
4582-
(set! encoding (calculate-optimal-encoding proc exports host-config ribn-base))
4582+
(set! encoding (calculate-optimal-encoding proc exports host-config (ribn-base)))
45834583
(let* ((symtbl-and-symbols*
45844584
(encode-symtbl
45854585
proc

0 commit comments

Comments
 (0)