mirror of
https://github.com/reactos/ccache.git
synced 2024-11-26 21:20:32 +00:00
Let args_init_from_gcc_atfile split on carriage return as well
This commit is contained in:
parent
a03cb5a356
commit
dc75e5407d
1
args.c
1
args.c
@ -97,6 +97,7 @@ args_init_from_gcc_atfile(const char *filename)
|
||||
}
|
||||
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\t':
|
||||
case ' ':
|
||||
if (quoting) {
|
||||
|
@ -63,7 +63,9 @@ TEST(args_init_from_string)
|
||||
TEST(args_init_from_gcc_atfile)
|
||||
{
|
||||
struct args *args;
|
||||
const char *argtext = "first sec\\\tond\tthi\\\\rd\nfourth \tfif\\ th \"si'x\\\" th\" 'seve\nth'\\";
|
||||
const char *argtext =
|
||||
"first\rsec\\\tond\tthi\\\\rd\nfourth \tfif\\ th \"si'x\\\" th\""
|
||||
" 'seve\nth'\\";
|
||||
|
||||
create_file("gcc_atfile", argtext);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user