git @ Cat's Eye Technologies Bhuna / b2c524d
Import of Bhuna version 0.7 revision 2011.0427 sources. catseye 12 years ago
5 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11 #CFLAGS+=-DPOOL_VALUES
22 CFLAGS+=-DHASH_CONSING
33 CFLAGS+=-DINLINE_BUILTINS
4 CFLAGS+=-Wall
4 CFLAGS+=-Wall -ansi
55
66 #-I/usr/local/include
77
3131 struct ast *parse_var(struct scan_st *, struct symbol_table *,
3232 struct symbol **, int, int, struct value *);
3333
34 #endif /* !__PARSE_H_ */
34 #endif /* !__PARSE_H_ */
0 #ifdef POOL_VALUES
10 #include <assert.h>
21 #include <stdlib.h>
32 #include <stdio.h>
3
4 #ifdef POOL_VALUES
45
56 #include "pool.h"
67
77 #include "ast.h"
88 #include "activation.h"
99
10 #define TIMESLICE 2048
11 // 4096
10 #define TIMESLICE 2048 /* 4096 */
1211 extern int trace_scheduling;
1312
1413 struct process *current_process = NULL;
289289 case INDEX_BUILTIN_SUB:
290290 POP_VALUE(r);
291291 POP_VALUE(l);
292 //subs++;
292 /* subs++; */
293293 if (l.type == VALUE_INTEGER && r.type == VALUE_INTEGER) {
294294 v = value_new_integer(l.v.i - r.v.i);
295295 } else {