mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Issue #433 - Working numerator/denominator
This commit is contained in:
parent
f17102178b
commit
95c3fea24f
2 changed files with 6 additions and 8 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
## 0.31.0 - TBD
|
||||
|
||||
Features
|
||||
|
||||
- Replaced placeholder versions of `numerator` and `denominator` with code conforming with R7RS.
|
||||
|
||||
Bug Fixes
|
||||
|
||||
- Allow a record type to contain fields that are not initialized by the constructor.
|
||||
|
|
|
@ -196,8 +196,6 @@
|
|||
string->utf8
|
||||
denominator
|
||||
numerator
|
||||
;denominator2
|
||||
;numerator2
|
||||
parameterize
|
||||
read-bytevector
|
||||
read-bytevector!
|
||||
|
@ -222,8 +220,6 @@
|
|||
(inline
|
||||
square
|
||||
quotient
|
||||
numerator
|
||||
denominator
|
||||
truncate
|
||||
negative?
|
||||
positive?
|
||||
|
@ -1488,13 +1484,11 @@
|
|||
;; END gcd lcm
|
||||
|
||||
;; Placeholders
|
||||
(define (denominator n) 1)
|
||||
(define (numerator n) n)
|
||||
(define-c numerator2
|
||||
(define-c numerator
|
||||
"(void *data, int argc, closure _, object k, object n)"
|
||||
" Cyc_get_ratio(data, k, n, 1);")
|
||||
|
||||
(define-c denominator2
|
||||
(define-c denominator
|
||||
"(void *data, int argc, closure _, object k, object n)"
|
||||
" Cyc_get_ratio(data, k, n, 0);")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue