move (picrin record-primitive) to (picrin record)
This commit is contained in:
parent
9e9666999e
commit
8934c99ac2
|
@ -732,11 +732,9 @@
|
|||
|
||||
(export parameterize make-parameter)
|
||||
|
||||
;;; Record Type
|
||||
(define-library (picrin record)
|
||||
(import (scheme base)
|
||||
(picrin macro)
|
||||
(picrin record-primitive))
|
||||
;; 5.5 Recored-type definitions
|
||||
|
||||
(import (picrin record))
|
||||
|
||||
(define (caddr x) (car (cddr x)))
|
||||
(define (cdddr x) (cdr (cddr x)))
|
||||
|
@ -799,10 +797,6 @@
|
|||
,@(map (lambda (field) `(define-record-field ,name ,@field))
|
||||
fields))))))
|
||||
|
||||
(export define-record-type))
|
||||
|
||||
(import (picrin record))
|
||||
|
||||
(export define-record-type)
|
||||
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ pic_record_record_set(pic_state *pic)
|
|||
void
|
||||
pic_init_record(pic_state *pic)
|
||||
{
|
||||
pic_deflibrary (pic, "(picrin record-primitive)") {
|
||||
pic_deflibrary (pic, "(picrin record)") {
|
||||
pic_defun(pic, "make-record", pic_record_record);
|
||||
pic_defun(pic, "record-of?", pic_record_record_of);
|
||||
pic_defun(pic, "record-ref", pic_record_record_ref);
|
||||
|
|
Loading…
Reference in New Issue