Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
api: fix include_guard when path contains a plus
[vpp.git]
/
src
/
vpp-api
/
vapi
/
vapi_c_gen.py
diff --git
a/src/vpp-api/vapi/vapi_c_gen.py
b/src/vpp-api/vapi/vapi_c_gen.py
index
a881ad5
..
1fae5b3
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" % (
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("")
print("#ifndef %s" % include_guard)
print("#define %s" % include_guard)
print("")