source-files: simplify, remove unnecessary error.
parent
0bb297ed92
commit
7387869315
|
@ -9,7 +9,7 @@ IN: source-files
|
||||||
SYMBOL: source-files
|
SYMBOL: source-files
|
||||||
|
|
||||||
TUPLE: source-file
|
TUPLE: source-file
|
||||||
path
|
{ path string }
|
||||||
top-level-form
|
top-level-form
|
||||||
checksum
|
checksum
|
||||||
definitions
|
definitions
|
||||||
|
@ -26,14 +26,9 @@ main ;
|
||||||
new-definitions get >>definitions drop ;
|
new-definitions get >>definitions drop ;
|
||||||
|
|
||||||
: <source-file> ( path -- source-file )
|
: <source-file> ( path -- source-file )
|
||||||
\ source-file new
|
f f <definitions> f source-file boa ;
|
||||||
swap >>path
|
|
||||||
<definitions> >>definitions ;
|
|
||||||
|
|
||||||
ERROR: invalid-source-file-path path ;
|
|
||||||
|
|
||||||
: path>source-file ( path -- source-file )
|
: path>source-file ( path -- source-file )
|
||||||
dup string? [ invalid-source-file-path ] unless
|
|
||||||
source-files get [ <source-file> ] cache ;
|
source-files get [ <source-file> ] cache ;
|
||||||
|
|
||||||
: reset-checksums ( -- )
|
: reset-checksums ( -- )
|
||||||
|
|
Loading…
Reference in New Issue