This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [Patch] gprof: accept nested subprograms


On 04 July 2007 15:46, Tristan Gingold wrote:

>      for (name = sym->name; *name; ++name)
>        {
> !       if (*name == '$')
>          return 0;
> +       /* Do not discard nested subprograms (those which finishes

  s/finishes/finish

> +       if (*name == '.')
> +       {
> +         for (name++; *name; name++)
> +           if (*name < '0' || *name > '9')
> +             return 0;
> +       }

  You could use "if (!isdigit (*name))" here.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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