]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/argv.c
argv.c (consume_whitespace): New function.
authorDaniel Gutson <dgutson@codesourcery.com>
Thu, 8 Oct 2009 15:14:41 +0000 (15:14 +0000)
committerDaniel Gutson <dgutson@gcc.gnu.org>
Thu, 8 Oct 2009 15:14:41 +0000 (15:14 +0000)
commit70277b30730f0356c6cc70eccc8922f4447cbe5e
treef496006babd0cc6d4ae1f11b988d6c0fc1307d4d
parent38bf8621d92a1a3129fc453f275ccbf7704eba19
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
libiberty/ChangeLog
libiberty/argv.c
libiberty/testsuite/test-expandargv.c