Moved keywords from local variables to keywords map.
This commit is contained in:
1 parent
907f449ecc
commit
9622b5cf8c
23 files changed
+221
-220
No files matched your search
+2
-2
@@ -7,12 +7,12 @@ namespace jet {
|
||||
|
||||
__stream::__stream(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
|
||||
output = false;
|
||||
if(!variableDefined("name"))
|
||||
if(!keywordDefined("name"))
|
||||
throw coreutils::Exception("stream tag must have a file name to stream.");
|
||||
global.outputHeaders();
|
||||
int len;
|
||||
char buffer[1024];
|
||||
int fd = open(variables["name"].c_str(), O_RDONLY);
|
||||
int fd = open(keywords["name"].c_str(), O_RDONLY);
|
||||
do {
|
||||
len = read(fd, &buffer, 1024);
|
||||
std::cout << buffer;
|
||||
|
||||
Reference in new issue
Block a user