Mercurial > urweb
comparison src/c/urweb.c @ 426:2a861b56969c
Remove debug print for optional inputs
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Fri, 24 Oct 2008 17:35:33 -0400 |
parents | 7009b0ac1501 |
children | 3ca00463de20 |
comparison
equal
deleted
inserted
replaced
425:7009b0ac1501 | 426:2a861b56969c |
---|---|
191 char *uw_get_optional_input(uw_context ctx, int n) { | 191 char *uw_get_optional_input(uw_context ctx, int n) { |
192 if (n < 0) | 192 if (n < 0) |
193 uw_error(ctx, FATAL, "Negative input index %d", n); | 193 uw_error(ctx, FATAL, "Negative input index %d", n); |
194 if (n >= uw_inputs_len) | 194 if (n >= uw_inputs_len) |
195 uw_error(ctx, FATAL, "Out-of-bounds input index %d", n); | 195 uw_error(ctx, FATAL, "Out-of-bounds input index %d", n); |
196 printf("[%d] = %s\n", n, ctx->inputs[n]); | 196 //printf("[%d] = %s\n", n, ctx->inputs[n]); |
197 return (ctx->inputs[n] == NULL ? "" : ctx->inputs[n]); | 197 return (ctx->inputs[n] == NULL ? "" : ctx->inputs[n]); |
198 } | 198 } |
199 | 199 |
200 static void uw_check_heap(uw_context ctx, size_t extra) { | 200 static void uw_check_heap(uw_context ctx, size_t extra) { |
201 if (ctx->heap_back - ctx->heap_front < extra) { | 201 if (ctx->heap_back - ctx->heap_front < extra) { |