Add multithreading
This commit is contained in:
@@ -391,16 +391,6 @@ LINEBLOCK* compileclass(COMPILER* c, CLASS* class) {
|
||||
return output;
|
||||
}
|
||||
|
||||
void compile(COMPILER* c) {
|
||||
LINEBLOCK* output = NULL;
|
||||
CLASS* curr = c->classes;
|
||||
while(curr != NULL) {
|
||||
output = mergelnblks(output, compileclass(c, curr));
|
||||
curr = curr->next;
|
||||
}
|
||||
c->output = output;
|
||||
}
|
||||
|
||||
COMPILER* mkcompiler(CLASS* classes) {
|
||||
COMPILER* c = (COMPILER*)malloc(sizeof(COMPILER));
|
||||
c->globalscope = mkscope(NULL);
|
||||
|
@@ -7,10 +7,8 @@
|
||||
typedef struct {
|
||||
CLASS* classes;
|
||||
SCOPE* globalscope;
|
||||
LINEBLOCK* output;
|
||||
} COMPILER;
|
||||
|
||||
COMPILER* mkcompiler(CLASS* classes);
|
||||
void compile(COMPILER* c);
|
||||
|
||||
LINEBLOCK* compileclass(COMPILER* c, CLASS* class);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user