cleanup some places to use with-string-writer.
parent
380251308e
commit
3ac497c60e
|
@ -48,6 +48,6 @@ STRING: validation-output
|
|||
|
||||
cpu ppc? [
|
||||
{ $ validation-output }
|
||||
[ <string-writer> dup [ "resource:extra/elf/a.elf" elf-nm ] with-output-stream >string ]
|
||||
[ [ "resource:extra/elf/a.elf" elf-nm ] with-string-writer ]
|
||||
unit-test
|
||||
] unless
|
||||
|
|
|
@ -23,9 +23,9 @@ STRING: validation-output
|
|||
|
||||
cpu ppc? [
|
||||
{ $ validation-output }
|
||||
[ <string-writer> dup [ "resource:extra/macho/a.macho" macho-nm ] with-output-stream >string ]
|
||||
[ [ "resource:extra/macho/a.macho" macho-nm ] with-string-writer ]
|
||||
unit-test
|
||||
|
||||
|
||||
{ t } [
|
||||
"resource:extra/macho/a2.macho" [
|
||||
>c-ptr fat-binary-members first data>> >c-ptr macho-header 64-bit?
|
||||
|
|
|
@ -155,8 +155,8 @@ C: <symbolic-link> symbolic-link
|
|||
: typeflag-L ( header -- )
|
||||
drop
|
||||
;
|
||||
! <string-writer> [ read-data-blocks ] keep
|
||||
! >string [ zero? ] trim-tail filename set
|
||||
! [ read-data-blocks ] with-string-writer
|
||||
! [ zero? ] trim-tail filename set
|
||||
! filename get prepend-current-directory make-directories ;
|
||||
|
||||
! Multi volume continuation entry
|
||||
|
|
Loading…
Reference in New Issue