system-quote: Refactor.
authorBruno Haible <bruno@clisp.org>
Thu, 10 May 2012 11:52:21 +0000 (13:52 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 10 May 2012 11:52:21 +0000 (13:52 +0200)
commit150ce1bef700d6a3e56861c3a316da64be93d880
treebcef81ebac38ffe0306c3b4a1d5eabac46f367fd
parentaa3de1af836fb58f4d28214154afc804e85e49f9
system-quote: Refactor.

* lib/system-quote.h (system_quote_copy): Fix comment.
* lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
New functions, extracted from system_quote_copy.
(system_quote_length, system_quote_copy): Use these functions.
Reported by Paul Eggert.
ChangeLog
lib/system-quote.c
lib/system-quote.h