Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
2a29afdb
Commit
2a29afdb
authored
Oct 24, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polishing
parent
a04e3095
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vcc_expr.c
lib/libvcl/vcc_expr.c
+4
-8
No files found.
lib/libvcl/vcc_expr.c
View file @
2a29afdb
...
...
@@ -819,13 +819,14 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type fmt)
return
;
switch
(
f2
)
{
case
STRING
:
break
;
case
STRING_LIST
:
break
;
case
STRING
:
case
STRING_LIST
:
vcc_expr_string_add
(
tl
,
e
);
return
;
case
INT
:
break
;
case
TIME
:
break
;
case
DURATION
:
break
;
case
BYTES
:
break
;
case
HEADER
:
break
;
default:
VSB_printf
(
tl
->
sb
,
"Operator %.*s not possible on type %s.
\n
"
,
PF
(
tl
->
t
),
vcc_Type
(
f2
));
...
...
@@ -833,11 +834,6 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type fmt)
return
;
}
if
(
f2
==
STRING
||
f2
==
STRING_LIST
)
{
vcc_expr_string_add
(
tl
,
e
);
return
;
}
while
(
tl
->
t
->
tok
==
'+'
||
tl
->
t
->
tok
==
'-'
)
{
if
(
f2
==
TIME
)
f2
=
DURATION
;
...
...
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