work towards a clean compile on migrating set and get variables from Tag.

This commit is contained in:
barant committed 2025-01-08 10:27:30 -08:00
1 parent 2549220914
commit 5c27df59da
25 files changed
+178 -306

No files matched your search

+2 -4
View File
@@ -13,12 +13,10 @@ namespace jet {
throw coreutils::Exception("name keyword must be specified.");
if(hasContainer)
throw coreutils::Exception("read tag does not have a container.");
resolveKeyword("file");
resolveKeyword("name");
fd = open(keywords["file"].c_str(), O_RDONLY);
fd = open(keywords[resolveKeyword("file")].c_str(), O_RDONLY);
if(fd < 0)
throw coreutils::Exception("file name is not found.");
global.variables[keywords["name"]].read(fd);
global.variables[keywords[resolveKeyword("name")]].read(fd);
close(fd);
}