The t_do bits are not set by this module. The t_next entry is used
to see whether the scan for this phase is already done. t_do is now set in add_inputs(files.c).
This commit is contained in:
parent
aa4bae59e0
commit
c93761cadc
1 changed files with 4 additions and 7 deletions
|
@ -29,15 +29,13 @@ enum f_path getpath(first) register trf **first ; {
|
||||||
|
|
||||||
start_scan();
|
start_scan();
|
||||||
/*
|
/*
|
||||||
The end result is the setting of the t_do flags
|
The end result is the chaining of
|
||||||
in the transformation list and the chaining of
|
|
||||||
the consequtive phases with the t_next field.
|
the consequtive phases with the t_next field.
|
||||||
The list is scanned for possible transformations
|
The list is scanned for possible transformations
|
||||||
stopping at stopsuffix or the last transformation in the list.
|
stopping at stopsuffix or the last transformation in the list.
|
||||||
The scan flags are set by this process.
|
The scan flags are set by this process.
|
||||||
When a transformation is found, it is compared with
|
When a transformation is found, it is compared with
|
||||||
the last transformation found. If better (or the first)
|
the last transformation found.
|
||||||
the scan bits are copied to the t_do bits.
|
|
||||||
*/
|
*/
|
||||||
try(l_first(tr_list),p_suffix);
|
try(l_first(tr_list),p_suffix);
|
||||||
return scan_end(first);
|
return scan_end(first);
|
||||||
|
@ -107,7 +105,7 @@ try(f_scan,suffix) list_elem *f_scan; char *suffix; {
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( trafo->t_do ) {
|
if ( trafo->t_next ) {
|
||||||
/* We know what happens from this phase on,
|
/* We know what happens from this phase on,
|
||||||
so take a shortcut.
|
so take a shortcut.
|
||||||
*/
|
*/
|
||||||
|
@ -229,10 +227,9 @@ enum f_path scan_end(first) trf **first ; { /* Finalization */
|
||||||
} else {
|
} else {
|
||||||
*first= curr ;
|
*first= curr ;
|
||||||
}
|
}
|
||||||
if ( curr->t_do ) {
|
if ( curr->t_next ) {
|
||||||
return F_OK ;
|
return F_OK ;
|
||||||
}
|
}
|
||||||
curr->t_do=YES ;
|
|
||||||
prev=curr ;
|
prev=curr ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue