Compare commits
No commits in common. "f3454424075db277a99f54b01fdf5a145d5e1344" and "3fa52ef6e4c9d8e88226418322ab3fd47705002a" have entirely different histories.
f345442407
...
3fa52ef6e4
|
@ -8,5 +8,3 @@
|
||||||
(release "0.1")
|
(release "0.1")
|
||||||
(release "0.2")
|
(release "0.2")
|
||||||
(release "0.2.1")
|
(release "0.2.1")
|
||||||
(release "0.2.2")
|
|
||||||
(release "0.2.3")
|
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
(begin
|
(begin
|
||||||
(define (subprocess command-line stdin-bytevector read-stdout)
|
(define (subprocess command-line stdin-bytevector read-stdout)
|
||||||
(read-stdout (run/port (,(car command-line) ,@(cdr command-line))
|
(read-stdout (run/port (,(car command-line) ,@(cdr command-line))
|
||||||
(<< ,(utf8->string stdin-bytevector))
|
(<< ,(utf8->string stdin-bytevector)))))))
|
||||||
(> 2 "/dev/null"))))))
|
|
||||||
(gauche
|
(gauche
|
||||||
(import (only (gauche process) call-with-process-io))
|
(import (only (gauche process) call-with-process-io))
|
||||||
(begin
|
(begin
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
(define (join-adjacent-strings list)
|
(define (join-adjacent type? type-append list)
|
||||||
(let loop ((new-list '()) (list list))
|
(let loop ((new-list '()) (list list))
|
||||||
(if (null? list) (reverse new-list)
|
(if (null? list) (reverse new-list)
|
||||||
(loop (if (and (not (null? new-list))
|
(loop (if (and (not (null? new-list))
|
||||||
(string? (car new-list))
|
(type? (car new-list))
|
||||||
(string? (car list)))
|
(type? (car list)))
|
||||||
(cons (string-append (car new-list)
|
(cons (type-append (car new-list)
|
||||||
(car list))
|
(car list))
|
||||||
(cdr new-list))
|
(cdr new-list))
|
||||||
(cons (car list) new-list))
|
(cons (car list) new-list))
|
||||||
(cdr list)))))
|
(cdr list)))))
|
||||||
|
|
||||||
|
(define (join-adjacent-strings list)
|
||||||
|
(join-adjacent string? string-append list))
|
||||||
|
|
||||||
(define (vector-refs vec . indexes)
|
(define (vector-refs vec . indexes)
|
||||||
(let loop ((obj vec) (indexes indexes))
|
(let loop ((obj vec) (indexes indexes))
|
||||||
(if (null? indexes) obj
|
(if (null? indexes) obj
|
||||||
|
|
|
@ -95,7 +95,4 @@
|
||||||
(unless (null? inputs)
|
(unless (null? inputs)
|
||||||
(let ((filename (string-append (number->string i) ".md")))
|
(let ((filename (string-append (number->string i) ".md")))
|
||||||
(tar-write-file filename (car inputs))
|
(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