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
1425d2ae
Commit
1425d2ae
authored
Jan 09, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VSB_quote(QUOTE_CSTR) should not indent with "\t" unless asked.
parent
64e2ba27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
vsb.c
lib/libvarnish/vsb.c
+1
-1
vcc_compile.c
lib/libvcc/vcc_compile.c
+2
-3
No files found.
lib/libvarnish/vsb.c
View file @
1425d2ae
...
...
@@ -573,7 +573,7 @@ VSB_quote_pfx(struct vsb *s, const char *pfx, const void *v, int len, int how)
break
;
case
'\n'
:
if
(
how
&
VSB_QUOTE_CSTR
)
{
(
void
)
VSB_printf
(
s
,
"
\\
n
\"\n
%s
\
t\
"
"
,
pfx
);
(
void
)
VSB_printf
(
s
,
"
\\
n
\"\n
%s
\"
"
,
pfx
);
}
else
if
(
how
&
(
VSB_QUOTE_NONL
|
VSB_QUOTE_UNSAFE
))
{
(
void
)
VSB_printf
(
s
,
"
\n
"
);
nl
=
1
;
...
...
lib/libvcc/vcc_compile.c
View file @
1425d2ae
...
...
@@ -233,9 +233,8 @@ EmitCoordinates(const struct vcc *tl, struct vsb *vsb)
VTAILQ_FOREACH
(
sp
,
&
tl
->
sources
,
list
)
{
VSB_printf
(
vsb
,
" /* "
);
VSB_quote
(
vsb
,
sp
->
name
,
-
1
,
VSB_QUOTE_CSTR
);
VSB_printf
(
vsb
,
"*/
\n
"
);
VSB_printf
(
vsb
,
"
\t
"
);
VSB_quote
(
vsb
,
sp
->
b
,
sp
->
e
-
sp
->
b
,
VSB_QUOTE_CSTR
);
VSB_printf
(
vsb
,
" */
\n
"
);
VSB_quote_pfx
(
vsb
,
"
\t
"
,
sp
->
b
,
sp
->
e
-
sp
->
b
,
VSB_QUOTE_CSTR
);
VSB_printf
(
vsb
,
",
\n
"
);
}
VSB_printf
(
vsb
,
"};
\n\n
"
);
...
...
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