author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 29 Mar 2009 09:44:44 +0000 (11:44 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 30 Mar 2009 08:22:53 +0000 (01:22 -0700) | ||
commit | ebbc088e13e1bf0dbf8eb08b00519602c176f864 | |
tree | 95af836ac5362c32303967cc733b93c228691562 | tree | snapshot |
parent | 89fbda24256157cc43848488429fd20cf3bb21ab | commit | diff |
quote: implement "sq_dequote_many" to unwrap many args in one string
The sq_dequote() function does not allow parsing a string with more than
one single-quoted parameter easily; use its code to implement a new API
sq_dequote_step() to allow the caller iterate through such a string to
parse them one-by-one. The original sq_dequote() becomes a thin wrapper
around it.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The sq_dequote() function does not allow parsing a string with more than
one single-quoted parameter easily; use its code to implement a new API
sq_dequote_step() to allow the caller iterate through such a string to
parse them one-by-one. The original sq_dequote() becomes a thin wrapper
around it.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
quote.c | diff | blob | history | |
quote.h | diff | blob | history |