summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-07-30 08:31:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-30 15:06:27 (GMT)
commit10d0167fef35c7a4e4e3ef9dd448594b62089c5a (patch)
tree367433861d0aebab3512ce7a82efe5c1d7d9eb36 /quote.h
parent8f6a3e5d71fa1800c3f330bab2b6b6399ec7aea7 (diff)
downloadgit-10d0167fef35c7a4e4e3ef9dd448594b62089c5a.zip
git-10d0167fef35c7a4e4e3ef9dd448594b62089c5a.tar.gz
git-10d0167fef35c7a4e4e3ef9dd448594b62089c5a.tar.bz2
for-each-ref, quote: convert *_quote_print -> *_quote_buf
The print_value() function in for-each-ref.c prints values to stdout immediately using {sq|perl|python|tcl}_quote_print(). Change these lower-level quote functions to instead leave their results in strbuf so that we can later add post-processing to the results of them. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
-rw-r--r--quote.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/quote.h b/quote.h
index ed110a5..6996ebd 100644
--- a/quote.h
+++ b/quote.h
@@ -68,8 +68,8 @@ extern char *quote_path_relative(const char *in, const char *prefix,
struct strbuf *out);
/* quoting as a string literal for other languages */
-extern void perl_quote_print(FILE *stream, const char *src);
-extern void python_quote_print(FILE *stream, const char *src);
-extern void tcl_quote_print(FILE *stream, const char *src);
+extern void perl_quote_buf(struct strbuf *sb, const char *src);
+extern void python_quote_buf(struct strbuf *sb, const char *src);
+extern void tcl_quote_buf(struct strbuf *sb, const char *src);
#endif