diff options
author | devans <devans@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-28 19:04:30 +0000 |
---|---|---|
committer | devans <devans@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-28 19:04:30 +0000 |
commit | c12ded991ed38fc9d4aaaa3cce10695cbcfa6efb (patch) | |
tree | fdfb0d01e1c901837ac5426759f458176364fa86 /include | |
parent | be7a395b8a69ca5b53f4a96bdec4eed6c17a1c68 (diff) | |
download | gcc-c12ded991ed38fc9d4aaaa3cce10695cbcfa6efb.tar.gz |
include/
* libiberty.h (countargv): Declare.
libiberty/
* argv.c (countargv): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 3cc89960688..a09c287a612 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2011-09-28 Doug Evans <dje@google.com> + + * libiberty.h (countargv): Declare. + 2011-09-26 Cary Coutant <ccoutant@google.com> PR lto/47247 diff --git a/include/libiberty.h b/include/libiberty.h index 32eb83a049e..cacde800ea3 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -91,6 +91,10 @@ extern void expandargv PARAMS ((int *, char ***)); extern int writeargv PARAMS ((char **, FILE *)); +/* Return the number of elements in argv. */ + +extern int countargv (char**); + /* Return the last component of a path name. Note that we can't use a prototype here because the parameter is declared inconsistently across different systems, sometimes as "char *" and sometimes as |