Compare commits
5 Commits
3fa52ef6e4
...
f345442407
Author | SHA1 | Date |
---|---|---|
Lassi Kortela | f345442407 | |
Lassi Kortela | d1fb3bb071 | |
Lassi Kortela | 4ffdd4610d | |
Lassi Kortela | 610bf0ca01 | |
Lassi Kortela | bc8504fc27 |
|
@ -8,3 +8,5 @@
|
|||
(release "0.1")
|
||||
(release "0.2")
|
||||
(release "0.2.1")
|
||||
(release "0.2.2")
|
||||
(release "0.2.3")
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
(begin
|
||||
(define (subprocess command-line stdin-bytevector read-stdout)
|
||||
(read-stdout (run/port (,(car command-line) ,@(cdr command-line))
|
||||
(<< ,(utf8->string stdin-bytevector)))))))
|
||||
(<< ,(utf8->string stdin-bytevector))
|
||||
(> 2 "/dev/null"))))))
|
||||
(gauche
|
||||
(import (only (gauche process) call-with-process-io))
|
||||
(begin
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
(define (join-adjacent type? type-append list)
|
||||
(define (join-adjacent-strings list)
|
||||
(let loop ((new-list '()) (list list))
|
||||
(if (null? list) (reverse new-list)
|
||||
(loop (if (and (not (null? new-list))
|
||||
(type? (car new-list))
|
||||
(type? (car list)))
|
||||
(cons (type-append (car new-list)
|
||||
(car list))
|
||||
(string? (car new-list))
|
||||
(string? (car list)))
|
||||
(cons (string-append (car new-list)
|
||||
(car list))
|
||||
(cdr new-list))
|
||||
(cons (car list) new-list))
|
||||
(cdr list)))))
|
||||
|
||||
(define (join-adjacent-strings list)
|
||||
(join-adjacent string? string-append list))
|
||||
|
||||
(define (vector-refs vec . indexes)
|
||||
(let loop ((obj vec) (indexes indexes))
|
||||
(if (null? indexes) obj
|
||||
|
|
|
@ -95,4 +95,7 @@
|
|||
(unless (null? inputs)
|
||||
(let ((filename (string-append (number->string i) ".md")))
|
||||
(tar-write-file filename (car inputs))
|
||||
(loop (+ i 1) (cdr inputs))))))
|
||||
(loop (+ i 1) (cdr inputs)))))
|
||||
(let ((nulls (make-bytevector 512 0)))
|
||||
(write-bytevector nulls)
|
||||
(write-bytevector nulls)))
|
||||
|
|
Loading…
Reference in New Issue