From: mar77i Date: Mon, 18 Nov 2024 17:38:40 +0000 (+0100) Subject: remove debug output X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;h=b75498acad9f3642032ece24fd8ed1f368da4549;p=shitscript remove debug output --- diff --git a/runtime.c b/runtime.c index d8389eb..c6baab1 100644 --- a/runtime.c +++ b/runtime.c @@ -123,7 +123,6 @@ static inline int assign_value( struct growable *scope, char *name, struct scope_value value ) { size_t i; - printf("assigning %s value %"PRIdMAX"\n", name, value.u.i); for (i = 0; i < scope->len; i++) { if (strcmp(GET_SCOPE_ITEM(*scope, i).name, name) == 0) { GET_SCOPE_ITEM(*scope, i).value = value; @@ -157,7 +156,6 @@ int evaluate_statement(const struct program p, struct growable *scope, size_t *s if (evaluate_arith(p, scope, stmt, UNTIL_SEMICOLON, &value.u.i) < 0) return -1; *stmt = value.u.i; - printf("goto %zu\n", *stmt); } else { fprintf(stderr, "Error: canot execute: "); ast_item_dump(stderr, *item);