Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8cc6689
)
api: fix include_guard when path contains a plus
38/28438/1
author
Ruslan Babayev
<
[email protected]
>
Thu, 31 Oct 2019 08:37:50 +0000
(
01:37
-0700)
committer
Andrew Yourtchenko
<
[email protected]
>
Tue, 18 Aug 2020 08:50:04 +0000
(08:50 +0000)
The path to VPP source might contain a '+' when building it
with Yocto/OpenEmbedded.
Type: fix
Signed-off-by: Ruslan Babayev <
[email protected]
>
Change-Id: I205ac0de7d8726724af0e30f5b199391e05dc615
(cherry picked from commit
7f286f720d6fe2115423212dda6af66dd810691d
)
src/vpp-api/vapi/vapi_c_gen.py
patch
|
blob
|
history
diff --git
a/src/vpp-api/vapi/vapi_c_gen.py
b/src/vpp-api/vapi/vapi_c_gen.py
index
167c8a4
..
870e225
100755
(executable)
--- a/
src/vpp-api/vapi/vapi_c_gen.py
+++ b/
src/vpp-api/vapi/vapi_c_gen.py
@@
-691,7
+691,7
@@
def gen_json_unified_header(parser, logger, j, io, name):
orig_stdout = sys.stdout
sys.stdout = io
include_guard = "__included_%s" % (
- j.replace(".", "_").replace("/", "_").replace("-", "_"))
+ j.replace(".", "_").replace("/", "_").replace("-", "_")
.replace("+", "_")
)
print("#ifndef %s" % include_guard)
print("#define %s" % include_guard)
print("")