]> git.ipfire.org Git - thirdparty/git.git/blobdiff - quote.h
quote: turn 'nodq' parameter into a set of flags
[thirdparty/git.git] / quote.h
diff --git a/quote.h b/quote.h
index 1918d1e00ec7d595082b5c9cda2640257c2b7ba2..4b72a583cfdadd05d2892e1e4c712cd00a52bd31 100644 (file)
--- a/quote.h
+++ b/quote.h
@@ -64,8 +64,11 @@ struct strvec;
 int sq_dequote_to_strvec(char *arg, struct strvec *);
 
 int unquote_c_style(struct strbuf *, const char *quoted, const char **endp);
-size_t quote_c_style(const char *name, struct strbuf *, FILE *, int no_dq);
-void quote_two_c_style(struct strbuf *, const char *, const char *, int);
+
+/* Bits in the flags parameter to quote_c_style() */
+#define CQUOTE_NODQ 01
+size_t quote_c_style(const char *name, struct strbuf *, FILE *, unsigned);
+void quote_two_c_style(struct strbuf *, const char *, const char *, unsigned);
 
 void write_name_quoted(const char *name, FILE *, int terminator);
 void write_name_quoted_relative(const char *name, const char *prefix,