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
3730f544
Commit
3730f544
authored
Jun 03, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc: Promote error checks to assertions
Introduced by
eabe58bc
but soon after made obsolete by
9b1f1d17
.
parent
903ea603
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
vcc_acl.c
lib/libvcc/vcc_acl.c
+0
-1
vcc_expr.c
lib/libvcc/vcc_expr.c
+1
-1
vcc_token.c
lib/libvcc/vcc_token.c
+3
-3
vcc_vmod.c
lib/libvcc/vcc_vmod.c
+1
-1
vcc_xref.c
lib/libvcc/vcc_xref.c
+1
-1
No files found.
lib/libvcc/vcc_acl.c
View file @
3730f544
...
...
@@ -477,7 +477,6 @@ vcc_acl_emit_tokens(const struct vcc *tl, const struct acl_e *ae)
if
(
t
==
ae
->
t_mask
)
break
;
t
=
vcc_PeekTokenFrom
(
tl
,
t
);
ERRCHK
(
tl
);
AN
(
t
);
sep
=
" "
;
}
while
(
ae
->
t_mask
!=
NULL
);
...
...
lib/libvcc/vcc_expr.c
View file @
3730f544
...
...
@@ -739,7 +739,7 @@ vcc_expr5(struct vcc *tl, struct expr **e, vcc_type_t fmt)
case
ID
:
t
=
tl
->
t
;
t1
=
vcc_PeekToken
(
tl
);
ERRCHK
(
tl
);
AN
(
t1
);
sym
=
VCC_SymbolGet
(
tl
,
SYM_MAIN
,
SYM_NONE
,
SYMTAB_PARTIAL_NOERR
,
XREF_REF
);
if
(
sym
==
NULL
&&
fmt
->
global_pfx
!=
NULL
&&
t1
->
tok
!=
'.'
)
{
...
...
lib/libvcc/vcc_token.c
View file @
3730f544
...
...
@@ -350,15 +350,15 @@ vcc_ExpectVid(struct vcc *tl, const char *what)
ERRCHK
(
tl
);
t2
=
vcc_PeekToken
(
tl
);
ERRCHK
(
tl
);
AN
(
t2
);
while
(
t2
->
tok
==
'.'
)
{
bad
=
"."
;
t2
=
vcc_PeekTokenFrom
(
tl
,
t2
);
ERRCHK
(
tl
);
AN
(
t2
);
if
(
t2
->
tok
!=
ID
)
break
;
t2
=
vcc_PeekTokenFrom
(
tl
,
t2
);
ERRCHK
(
tl
);
AN
(
t2
);
}
if
(
bad
==
NULL
)
bad
=
VCT_invalid_name
(
tl
->
t
->
b
,
tl
->
t
->
e
);
...
...
lib/libvcc/vcc_vmod.c
View file @
3730f544
...
...
@@ -316,7 +316,7 @@ vcc_ParseImport(struct vcc *tl)
ExpectErr
(
tl
,
ID
);
/* "vmod_name" */
mod
=
tl
->
t
;
tmod
=
vcc_PeekTokenFrom
(
tl
,
mod
);
ERRCHK
(
tl
);
AN
(
tmod
);
if
(
tmod
->
tok
==
ID
&&
vcc_IdIs
(
tmod
,
"as"
))
{
vcc_NextToken
(
tl
);
/* "vmod_name" */
vcc_NextToken
(
tl
);
/* "as" */
...
...
lib/libvcc/vcc_xref.c
View file @
3730f544
...
...
@@ -124,7 +124,7 @@ vcc_AddUses(struct vcc *tl, const struct token *t1, const struct token *t2,
pu
->
t2
=
t2
;
if
(
pu
->
t2
==
NULL
)
{
pu
->
t2
=
vcc_PeekTokenFrom
(
tl
,
t1
);
ERRCHK
(
tl
);
AN
(
pu
->
t2
);
}
pu
->
sym
=
sym
;
pu
->
use
=
use
;
...
...
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