Re: [RFA] Add libiberty/argv.c:countargv

2011-09-28 Thread Ian Lance Taylor
On Tue, Sep 20, 2011 at 11:23 AM, Doug Evans wrote: > > 2011-09-20  Doug Evans   > >        include/ >        * libiberty.h (countargv): Declare. > >        libiberty/ >        * argv.c (countargv): New function. > +  for (argc = 0; argv[argc] != NULL; argc++); Please write the semicolon on the

Re: [RFA] Add libiberty/argv.c:countargv

2011-09-26 Thread Doug Evans
On Tue, Sep 20, 2011 at 11:23 AM, Doug Evans wrote: > Hi. > > Part of the abstraction of an argv is a count of the number elements. > This patch adds countargv which I have use for in gdb. > > Ok to check in? > > 2011-09-20  Doug Evans   > >        include/ >        * libiberty.h (countargv): Decl

[RFA] Add libiberty/argv.c:countargv

2011-09-20 Thread Doug Evans
Hi. Part of the abstraction of an argv is a count of the number elements. This patch adds countargv which I have use for in gdb. Ok to check in? 2011-09-20 Doug Evans include/ * libiberty.h (countargv): Declare. libiberty/ * argv.c (countargv): New function.