complicated build system is mandatory

This commit is contained in:
2020-12-29 16:40:26 +01:00
parent f39f7ec830
commit 1693ad9051
8 changed files with 89 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
#include "glitches.h"
#include "sfx.h"
#include "filterstack.h"
#include "crapulator.h"
/* ----------------------------------------------------------- */
@@ -69,6 +70,14 @@ int help(void)
{
puts("yolo!");
exit(0);
}
/* ----------------------------------------------------------- */
void experiment(void)
{
fprintf(stderr, "EXPERIMENT\n");
list_crapulors("experiment");
}
/* ----------------------------------------------------------- */
@@ -77,16 +86,19 @@ int main(int argc, char *argv[])
int foo;
int opt;
char *filterchain = "18";
char *infile = "mire.fimg";
fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", __FILE__,
__DATE__, __TIME__);
fimg_print_version(2);
while ((opt = getopt(argc, argv, "hF:v")) != -1) {
while ((opt = getopt(argc, argv, "hF:vx")) != -1) {
switch(opt) {
case 'h': help(); break;
case 'F': filterchain = optarg; break;
case 'v': verbosity++; break;
case 'x': experiment(); break;
default: exit(1);
}
}
@@ -100,7 +112,7 @@ if (foo) {
exit(1);
}
foo = essai_filterstack("01137.fimg");
foo = essai_filterstack(infile);
if (foo) {
fprintf(stderr, "err %d in essai_filterstack\n", foo);
exit(1);