From 729afe8296bf92bc730f41addec78072e83cb032 Mon Sep 17 00:00:00 2001 From: tonton th Date: Sat, 12 Dec 2020 18:45:44 +0100 Subject: [PATCH] mise en prod du soir, espoir --- Fonderie/filterstack.c | 5 +++++ Fonderie/interpolator.c | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Fonderie/filterstack.c b/Fonderie/filterstack.c index 13d9f713..0256436e 100644 --- a/Fonderie/filterstack.c +++ b/Fonderie/filterstack.c @@ -105,6 +105,11 @@ if (numid < 0 || numid > NUMBER_OF_STACK) { exit(1); } +if (0==f_stacks[numid].count) { + fprintf(stderr, "%s: stack %d empty ?\n", __func__, numid); + return -11; + } + for (idx=0; idx %d\n", foo); + fprintf(stderr, "run filt stack--> %d\n", foo); return foo; } @@ -282,7 +288,12 @@ if (foo) { exit(1); } -// filterstack_list(__FILE__); +if (verbosity) { + puts("=============="); + filterstack_list(0, __FILE__); + filterstack_list(1, __FILE__); + puts("=============="); + } nbrsteps = atoi(argv[optind+2]); foo = interpolator(argv[optind], argv[optind+1], nbrsteps,