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
1cf3f7fe
Commit
1cf3f7fe
authored
Oct 19, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an indentation problem in the produced C source.
parent
0e984bd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vcc_action.c
lib/libvcl/vcc_action.c
+4
-2
No files found.
lib/libvcl/vcc_action.c
View file @
1cf3f7fe
...
...
@@ -120,7 +120,8 @@ parse_set(struct vcc *tl)
vp
=
vcc_FindVar
(
tl
,
tl
->
t
,
1
,
"cannot be set"
);
ERRCHK
(
tl
);
assert
(
vp
!=
NULL
);
Fb
(
tl
,
1
,
"%s"
,
vp
->
lname
);
Fb
(
tl
,
1
,
"%s
\n
"
,
vp
->
lname
);
tl
->
indent
+=
INDENT
;
vcc_NextToken
(
tl
);
fmt
=
vp
->
fmt
;
for
(
ap
=
arith
;
ap
->
type
!=
VOID
;
ap
++
)
{
...
...
@@ -129,7 +130,7 @@ parse_set(struct vcc *tl)
if
(
ap
->
oper
!=
tl
->
t
->
tok
)
continue
;
if
(
ap
->
oper
!=
'='
)
Fb
(
tl
,
0
,
"%s %c "
,
vp
->
rname
,
*
tl
->
t
->
b
);
Fb
(
tl
,
1
,
"%s %c "
,
vp
->
rname
,
*
tl
->
t
->
b
);
vcc_NextToken
(
tl
);
fmt
=
ap
->
want
;
break
;
...
...
@@ -141,6 +142,7 @@ parse_set(struct vcc *tl)
}
else
{
vcc_Expr
(
tl
,
fmt
);
}
tl
->
indent
-=
INDENT
;
Fb
(
tl
,
1
,
");
\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