Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ccf1c0d7
Commit
ccf1c0d7
authored
Jul 31, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an auto-indent facility to vsb's.
parent
21ed397d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vsb.h
include/vsb.h
+2
-0
No files found.
include/vsb.h
View file @
ccf1c0d7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment