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
64e2ba27
Commit
64e2ba27
authored
Jan 09, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap the "if (ctx->handling) return;" check in a macro for readability
parent
3e15c14f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
vcc_compile.c
lib/libvcc/vcc_compile.c
+2
-0
vcc_parse.c
lib/libvcc/vcc_parse.c
+2
-2
No files found.
lib/libvcc/vcc_compile.c
View file @
64e2ba27
...
...
@@ -579,6 +579,8 @@ vcc_CompileSource(struct vcc *tl, struct source *sp)
Fh
(
tl
,
0
,
"/* ---===### VCC generated .h code ###===---*/
\n
"
);
Fc
(
tl
,
0
,
"
\n
/* ---===### VCC generated .c code ###===---*/
\n
"
);
Fc
(
tl
,
0
,
"
\n
#define END_ if (*ctx->handling) return
\n
"
);
vcc_Parse_Init
(
tl
);
vcc_Expr_Init
(
tl
);
...
...
lib/libvcc/vcc_parse.c
View file @
64e2ba27
...
...
@@ -149,7 +149,7 @@ vcc_Compound(struct vcc *tl)
Fb
(
tl
,
1
,
"{
\n
"
);
tl
->
indent
+=
INDENT
;
C
(
tl
,
";"
);
Fb
(
tl
,
1
,
"
if (*ctx->handling) return
;
\n
"
);
Fb
(
tl
,
1
,
"
END_
;
\n
"
);
while
(
1
)
{
ERRCHK
(
tl
);
t
=
tl
->
t
;
...
...
@@ -206,7 +206,7 @@ vcc_Compound(struct vcc *tl)
vcc_ErrWhere
(
tl
,
tl
->
t
);
return
;
}
Fb
(
tl
,
1
,
"
if (*ctx->handling) return
;
\n
"
);
Fb
(
tl
,
1
,
"
END_
;
\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