diff options
author | Daniel Gutson <dgutson@codesourcery.com> | 2009-10-08 15:14:41 +0000 |
---|---|---|
committer | Daniel Gutson <dgutson@gcc.gnu.org> | 2009-10-08 15:14:41 +0000 |
commit | 70277b30730f0356c6cc70eccc8922f4447cbe5e (patch) | |
tree | f496006babd0cc6d4ae1f11b988d6c0fc1307d4d /gcc | |
parent | 38bf8621d92a1a3129fc453f275ccbf7704eba19 (diff) | |
download | gcc-70277b30730f0356c6cc70eccc8922f4447cbe5e.zip gcc-70277b30730f0356c6cc70eccc8922f4447cbe5e.tar.gz gcc-70277b30730f0356c6cc70eccc8922f4447cbe5e.tar.bz2 |
argv.c (consume_whitespace): New function.
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.
Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
Co-Authored-By: Pedro Alves <pedro@codesourcery.com>
From-SVN: r152560
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions