static L<Web> ai_loadWebsFromFile(File f, S src) {
new L<Web> webs;
ai_loadWebsFromFile(f, src, webs);
ret webs;
}
static void ai_loadWebsFromFile(File f, S src, L<Web> websOut) {
ai_loadWebsFromFile(f, src, websOut, null);
}
static void ai_loadWebsFromFile(File f, S src, L<Web> websOut, Map<Web, SoftwareMadeWeb> furtherInfoMap) {
//if (hasMultipleCores()) ai_loadWebsFromFile_parallel(f, src, websOut, furtherInfoMap);
IterableIterator<SoftwareMadeWeb> l = scanLog_unstructure_iterator(f);
// TODO: clean up file handle in case of error
for (SoftwareMadeWeb o : l) pcall {
Web web = o.web;
if (web == null)
web = web_unstructure(o.structure);
if (web != null) {
websOut.add(web_intern(web_setSourceIfEmpty(web, src)));
mapPut(furtherInfoMap, web, o);
}
}
}Began life as a copy of #1011177
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012072 |
| Snippet name: | ai_loadWebsFromFile |
| Eternal ID of this version: | #1012072/7 |
| Text MD5: | 2fc865bfcf9b4b3abee61f74b4eb3dee |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-26 16:27:48 |
| Source code size: | 840 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 997 / 1010 |
| Version history: | 6 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |