Skip to content

Commit e1b8134

Browse files
committed
Remove commented code + some logs
1 parent 4832f1c commit e1b8134

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

interpreter.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ void interp_runCommand(Env* env, TPA_Instruction* inst) {
134134
Points* points;
135135
PointItem* pointItem;
136136
FILE* out;
137-
#ifdef DEBUG
138-
//printf("DEBUG: instruction: kind: %d, name: %s, format: %d, ope: %c, ens: %s\n", inst->kind, inst->u.expr.name, inst->u.print.fmt, inst->u.point.ope, inst->u.evalens.ens);
139-
#endif
140137
out = stdout;
141138
switch(inst->kind) {
142139
case PA_IK_Expr:
@@ -242,12 +239,8 @@ void interp_runCommand(Env* env, TPA_Instruction* inst) {
242239
function_printEvalPoint(f,pointItem->p,out);
243240
pointItem = pointItem->next;
244241
} while (pointItem != 0);
245-
246-
//function_eval();
247-
/*fprintf(stderr," eval fct=%s ens=%s\n",
248-
inst.u.evalens.name,
249-
inst.u.evalens.ens);*/
250-
break;
242+
break;
243+
251244
/* case PA_IK_EvalPoint:
252245
fprintf(stderr," eval fct=%s point=%p\n",
253246
inst.u.evalpoint.name,
@@ -272,9 +265,6 @@ extern TPA_Expr* pa_newBool(int b) {
272265
TPA_Expr* t = tpa_init();
273266
t -> val = b;
274267
t -> type = TPA_VALUE;
275-
#ifdef TRACE
276-
printf("newBool val: %d type:TPA_VALUE \n", b);
277-
#endif
278268
return t;
279269
}
280270

0 commit comments

Comments
 (0)