[4.1] ccf1c0d Add an auto-indent facility to vsb's.

Poul-Henning Kamp phk at FreeBSD.org
Fri Sep 4 15:54:51 CEST 2015


commit ccf1c0d78154cd57f684003218849c457ff21c24
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jul 31 08:07:45 2015 +0000

    Add an auto-indent facility to vsb's.

diff --git a/include/vsb.h b/include/vsb.h
index 72a2a99..eefaa12 100644
--- a/include/vsb.h
+++ b/include/vsb.h
@@ -48,6 +48,7 @@ struct vsb {
 #define	VSB_FINISHED	0x00020000	/* set by VSB_finish() */
 #define	VSB_DYNSTRUCT	0x00080000	/* vsb must be freed */
 	int		 s_flags;	/* flags */
+	int		 s_indent;	/* Ident level */
 };
 
 #ifdef __cplusplus
@@ -75,6 +76,7 @@ char		*VSB_data(const struct vsb *);
 ssize_t		 VSB_len(const struct vsb *);
 void		 VSB_delete(struct vsb *);
 void		 VSB_quote(struct vsb *s, const char *p, int len, int how);
+void		 VSB_indent(struct vsb *, int);
 #ifdef __cplusplus
 };
 #endif



More information about the varnish-commit mailing list