This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: patch to switch off the progress bar for the DFAgenerator.


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]