comparison libiberty/argv.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Create and destroy argument vectors (argv's) 1 /* Create and destroy argument vectors (argv's)
2 Copyright (C) 1992-2018 Free Software Foundation, Inc. 2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 Written by Fred Fish @ Cygnus Support 3 Written by Fred Fish @ Cygnus Support
4 4
5 This file is part of the libiberty library. 5 This file is part of the libiberty library.
6 Libiberty is free software; you can redistribute it and/or 6 Libiberty is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
325 goto done; 325 goto done;
326 } 326 }
327 arg++; 327 arg++;
328 } 328 }
329 329
330 /* Write out a pair of quotes for an empty argument. */
331 if (arg == *argv)
332 if (EOF == fputs ("\"\"", f))
333 {
334 status = 1;
335 goto done;
336 }
337
330 if (EOF == fputc ('\n', f)) 338 if (EOF == fputc ('\n', f))
331 { 339 {
332 status = 1; 340 status = 1;
333 goto done; 341 goto done;
334 } 342 }