RFA: patch to switch off the progress bar for the DFA generator.

Andreas Jaeger aj@suse.de
Mon Jan 12 19:17:00 GMT 2004


Vladimir Makarov <vmakarov@redhat.com> writes:

>   Here is the patch.  It has been checked with and without usage of
> the option.  Is it ok to commit?
> *************** build_automaton (automaton_t automaton)
> *** 6396,6405 ****
>   
>     ticker_on (&NDFA_time);
>     if (automaton->corresponding_automaton_decl == NULL)
> !     fprintf (stderr, "Create anonymous automaton (1 dot is 100 new states):");
>     else
> !     fprintf (stderr, "Create automaton `%s' (1 dot is 100 new states):",
>   	     automaton->corresponding_automaton_decl->name);
>     make_automaton (automaton);
>     fprintf (stderr, " done\n");
>     ticker_off (&NDFA_time);
> --- 6404,6414 ----
>   
>     ticker_on (&NDFA_time);
>     if (automaton->corresponding_automaton_decl == NULL)
> !     fprintf (stderr, "Create anonymous automaton");
>     else
> !     fprintf (stderr, "Create automaton `%s'",
>   	     automaton->corresponding_automaton_decl->name);
> +   fprintf (stderr, progress_flag ? " (1 dot is 100 new states):" : " :");

I would make all fprintf (stderr,) dependend on the new flag - and not
just the state printing...

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040112/af8e1e62/attachment.sig>


More information about the Gcc-patches mailing list