Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
581be47a
Commit
581be47a
authored
Oct 26, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Fix expansion of '$$' in make variables.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9522d52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
makedep.c
tools/makedep.c
+5
-7
No files found.
tools/makedep.c
View file @
581be47a
...
...
@@ -1518,23 +1518,21 @@ static char *get_expanded_make_variable( struct makefile *make, const char *name
var
=
get_make_variable
(
make
,
p
+
2
);
tmp
=
replace_substr
(
expand
,
p
,
end
-
p
,
var
?
var
:
""
);
free
(
var
);
/* switch to the new string */
p
=
tmp
+
(
p
-
expand
);
free
(
expand
);
expand
=
tmp
;
}
else
if
(
p
[
1
]
==
'{'
)
/* don't expand ${} variables */
{
if
(
!
(
end
=
strchr
(
p
+
2
,
'}'
)))
fatal_error
(
"syntax error in '%s'
\n
"
,
expand
);
p
=
end
+
1
;
continue
;
}
else
if
(
p
[
1
]
==
'$'
)
{
tmp
=
replace_substr
(
expand
,
p
,
2
,
"$"
)
;
p
+=
2
;
}
else
fatal_error
(
"syntax error in '%s'
\n
"
,
expand
);
/* switch to the new string */
p
=
tmp
+
(
p
-
expand
);
free
(
expand
);
expand
=
tmp
;
}
/* consider empty variables undefined */
...
...
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