[Top][All Lists]

[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: 
You're receiving this email because of your account on gitlab.com.

reply via email to

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