Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
e06551d1
Commit
e06551d1
authored
4 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
what a bug!, don't break before the end of the compare
parent
ff88d254
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib66/parser_enabled.c
+2
-2
2 additions, 2 deletions
src/lib66/parser_enabled.c
src/lib66/parser_module.c
+6
-2
6 additions, 2 deletions
src/lib66/parser_module.c
with
8 additions
and
4 deletions
src/lib66/parser_enabled.c
+
2
−
2
View file @
e06551d1
...
...
@@ -33,7 +33,7 @@
/* @sv -> name of the service to parse with
* the path of the frontend file source
* @Return 0 on fail
* @Return on success
* @Return
1
on success
* @Return 2 -> already parsed */
int
parse_service_before
(
ssexec_t
*
info
,
stralloc
*
parsed_list
,
stralloc
*
tree_list
,
char
const
*
sv
,
unsigned
int
*
nbsv
,
stralloc
*
sasv
,
uint8_t
force
,
uint8_t
conf
,
uint8_t
import
,
uint8_t
disable_module
,
char
const
*
directory_forced
)
{
...
...
@@ -58,7 +58,7 @@ int parse_service_before(ssexec_t *info,stralloc *parsed_list,stralloc *tree_lis
auto_strings
(
tree
,
info
->
tree
.
s
,
SS_SVDIRS
)
;
int
r
=
parse_service_check_enabled
(
tree
,
svname
,
force
,
&
exist
)
;
if
(
!
r
)
{
sasv
->
len
=
0
;
return
1
;
}
if
(
!
r
)
{
sasv
->
len
=
0
;
return
2
;
}
sv_alltype
sv_before
=
SV_ALLTYPE_ZERO
;
sasv
->
len
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/lib66/parser_module.c
+
6
−
2
View file @
e06551d1
...
...
@@ -251,8 +251,12 @@ int parse_module(sv_alltype *sv_before,ssexec_t *info,stralloc *parsed_list,stra
for
(;
idx
<
genalloc_len
(
sv_alltype
,
&
gasv
)
;
idx
++
)
{
char
*
name
=
keep
.
s
+
genalloc_s
(
sv_alltype
,
&
gasv
)[
idx
].
src
;
if
(
!
strcmp
(
name
,
sv
))
sv
=
name
;
break
;
if
(
!
strcmp
(
name
,
sv
))
{
sv
=
name
;
break
;
}
}
already_parsed
=
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment