+ incrustation & qsortrgb
This commit is contained in:
@@ -23,9 +23,10 @@
|
||||
|
||||
static int nextpng, counter;
|
||||
static char *destination;
|
||||
static int chainfilter;
|
||||
|
||||
/* -------------------------------------------------------------- */
|
||||
int single_init(int next, char *dest, char *sfxchain)
|
||||
int single_init(int next, char *dest, int fxchain)
|
||||
{
|
||||
int foo;
|
||||
struct stat stbuf;
|
||||
@@ -33,19 +34,19 @@ struct stat stbuf;
|
||||
fprintf(stderr, ">>> %s ( %d '%s' )\n", __func__, next, dest);
|
||||
|
||||
nextpng = next;
|
||||
chainfilter = fxchain;
|
||||
|
||||
foo = stat(dest, &stbuf);
|
||||
if (foo) {
|
||||
perror("stat dest dir");
|
||||
return -2;
|
||||
}
|
||||
// fprintf(stderr, "\t%s type = %04x\n", dest, stbuf.st_mode & S_IFMT);
|
||||
if (S_IFDIR != (stbuf.st_mode & S_IFMT)) {
|
||||
fprintf(stderr, "! %s must be a directory\n", dest);
|
||||
return -3;
|
||||
}
|
||||
|
||||
destination = dest;
|
||||
destination = strdup(dest); /* have a static copy */
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -76,7 +77,7 @@ if (foo) {
|
||||
return foo;
|
||||
}
|
||||
|
||||
nextpng++;
|
||||
nextpng++; counter++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -87,8 +88,12 @@ int single_print_state(char *title, int k)
|
||||
fprintf(stderr, ">>> %s ( '%s' %d )\n", __func__, title, k);
|
||||
#endif
|
||||
|
||||
fprintf(stderr, "nextpng %d\n", nextpng);
|
||||
fprintf(stderr, "counter %d\n", counter);
|
||||
fprintf(stderr, "%s : %s\n", __FILE__, title);
|
||||
fprintf(stderr, " nextpng %d\n", nextpng);
|
||||
fprintf(stderr, " counter %d\n", counter);
|
||||
fprintf(stderr, " chainfilter %d\n", chainfilter);
|
||||
|
||||
fprintf(stderr, " destination %s\n", destination);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user