This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r152560 - in /trunk/libiberty: ChangeLog argv.c...
- From: dgutson at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 08 Oct 2009 15:14:42 -0000
- Subject: r152560 - in /trunk/libiberty: ChangeLog argv.c...
Author: dgutson
Date: Thu Oct 8 15:14:41 2009
New Revision: 152560
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152560
Log:
2009-10-08 Daniel Gutson <dgutson@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
libiberty/
* argv.c (consume_whitespace): New function.
(only_whitespace): New function.
(buildargv): Always use ISSPACE by calling consume_whitespace.
(expandargv): Skip empty files. Do not stop at the first empty
argument (calling only_whitespace)..
* testsuite/test-expandargv.c: (test_data): Test empty lines
and empty arguments.
(run_tests): Fix false positives due to shorter arguments.
Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/argv.c
trunk/libiberty/testsuite/test-expandargv.c