wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | WIP: Implementation of -I/-X options (!383)


From: Tim Rühsen
Subject: Re: [Wget-dev] wget2 | WIP: Implementation of -I/-X options (!383)
Date: Thu, 30 Aug 2018 14:43:54 +0000

I think your code (handling escaped chars) could be simplified.

As an idea:
- write a small function like strchrnul() but recognizing '\\' and '\,'., call 
it something like _strchrnul_esc(). Use it as replacement for strchrnul.
- write also a replacement for wget_strmemdup(), call it _strmemdup_esc().

With those you won't introduce any new complexity to parse_stringlist_expand(). 
And both functions are really simple.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/merge_requests/383#note_97933302
You're receiving this email because of your account on gitlab.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]