aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen/vppapigen.py
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2023-02-03 11:33:39 +0100
committerOndrej Fabry <ofabry@cisco.com>2023-02-03 13:29:35 +0100
commita4f994f31e566cc5e6512d3aebf627a6e3ce2cc7 (patch)
treefa9c0fc21f194e5ffd649065825c1f6167e59ed2 /src/tools/vppapigen/vppapigen.py
parent905ec8797790380e134714e15ff3341eeeabb05e (diff)
vppapigen: fix incorrect comments in json
Type: fix Signed-off-by: Ondrej Fabry <ofabry@cisco.com> Change-Id: I241cefbbce98cf6fef83f36bd87ae2c1f4b067f0
Diffstat (limited to 'src/tools/vppapigen/vppapigen.py')
-rwxr-xr-xsrc/tools/vppapigen/vppapigen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/vppapigen/vppapigen.py b/src/tools/vppapigen/vppapigen.py
index ce05cbe9b3f..2b0ce9999d7 100755
--- a/src/tools/vppapigen/vppapigen.py
+++ b/src/tools/vppapigen/vppapigen.py
@@ -752,6 +752,7 @@ class VPPAPIParser:
"""define : DEFINE ID '{' block_statements_opt '}' ';'"""
self.fields = []
p[0] = Define(p[2], [], p[4], self.last_comment)
+ self.last_comment = None
def p_define_flist(self, p):
"""define : flist DEFINE ID '{' block_statements_opt '}' ';'"""
@@ -763,6 +764,7 @@ class VPPAPIParser:
)
else:
p[0] = Define(p[3], p[1], p[5], self.last_comment)
+ self.last_comment = None
def p_flist(self, p):
"""flist : flag