From c93761cadceed66e82ecd5f38736031eb36b8bbe Mon Sep 17 00:00:00 2001 From: keie Date: Thu, 13 Sep 1984 14:35:02 +0000 Subject: [PATCH] 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). --- util/ack/scan.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/util/ack/scan.c b/util/ack/scan.c index 29d36b725..94f61ab17 100644 --- a/util/ack/scan.c +++ b/util/ack/scan.c @@ -29,15 +29,13 @@ enum f_path getpath(first) register trf **first ; { start_scan(); /* - The end result is the setting of the t_do flags - in the transformation list and the chaining of + The end result is the chaining of the consequtive phases with the t_next field. The list is scanned for possible transformations stopping at stopsuffix or the last transformation in the list. The scan flags are set by this process. When a transformation is found, it is compared with - the last transformation found. If better (or the first) - the scan bits are copied to the t_do bits. + the last transformation found. */ try(l_first(tr_list),p_suffix); return scan_end(first); @@ -107,7 +105,7 @@ try(f_scan,suffix) list_elem *f_scan; char *suffix; { return ; } } - if ( trafo->t_do ) { + if ( trafo->t_next ) { /* We know what happens from this phase on, so take a shortcut. */ @@ -229,10 +227,9 @@ enum f_path scan_end(first) trf **first ; { /* Finalization */ } else { *first= curr ; } - if ( curr->t_do ) { + if ( curr->t_next ) { return F_OK ; } - curr->t_do=YES ; prev=curr ; } } -- 2.34.1