more nodes

git-svn-id: svn://anubis/jtlc/trunk@15 f5bc74b8-7b62-4e90-9214-7121d538519f
This commit is contained in:
josh committed 2010-01-13 21:13:22 +00:00
1 parent 7b1893c1e5
commit 9c26b9593c
3 files changed
+39 -8

No files matched your search

+4 -1
View File
@@ -1,6 +1,7 @@
#include <stdio.h> /* tmpfile() */
#include <stdlib.h> /* exit() */
#include <unistd.h> /* unlink() */
#include <vector>
#include "util/refptr.h"
#include "parser/parser.h"
@@ -42,8 +43,10 @@ int main(int argc, char * argv[])
void compile(const char * filename)
{
FILE * out = tmpfile();
string out_filename = string(filename) + ".c";
FILE * out = fopen(out_filename.c_str(), "w");
refptr<Node> tree = parse(filename);
tree->process(out);
fclose(out);
// unlink(out_filename.c_str());
}