Anonymous avatar Anonymous committed 3ecc026

Add Chez Scheme time procedure imports. Specify time type implicitly using symbol (Chez Scheme doesn't have defined variable as other implementations).

Comments (0)

Files changed (1)

src/scheme-bert.ss

                  (rnrs arithmetic flonums)
                  (rnrs r5rs)
                  (rnrs unicode)
-                 ;; see TODO
-                 (srfi :19)
+                 ;; Either import SRFI 19 or use 
+                 ;; builtin functions (as in Chez Scheme))
+                 ;(srfi :19)
+                 (only (chezscheme) time-nanosecond time-second time? make-time)
                  )
          
          ;; Erlang external term format types
                 (let ((second (+ (* (read-any-raw inp) 1000000) 
                                  (read-any-raw inp)))
                       (nanosecond (* (read-any-raw inp) 1000)))
-                  (make-time time-utc nanosecond second)))
+                  (make-time 'time-utc nanosecond second)))
                ((eq? obj 'dict)
                 (read-dict inp))
                (else 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.