diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-30 14:01:25 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-30 08:06:27 -0700 |
commit | 10d0167fef35c7a4e4e3ef9dd448594b62089c5a (patch) | |
tree | 367433861d0aebab3512ce7a82efe5c1d7d9eb36 /quote.h | |
parent | 8f6a3e5d71fa1800c3f330bab2b6b6399ec7aea7 (diff) | |
download | git-10d0167fef35c7a4e4e3ef9dd448594b62089c5a.tar.gz |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |