summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-08-31 10:04:58 -0400
committerChris Luke <chrisy@flirble.org>2016-08-31 10:07:45 -0400
commite0d802bc5356594d4e9621ca4cf8cfa8069d9e8e (patch)
tree60f2c9b8118fc1eda0b8192baffd473aa413f58b
parent5cdaf6358266eb883a2e48239a83e9f56c3c5bad (diff)
VPP-221 Loosen Doxygen CLI command struct parser
Make the struct parser slighty slightly more accomodating of whitespace in places it has no business being. Also add missing OS_ID thing to Doxygen makefile. Change-Id: Id3d198fd926f7a6c2ed40bc2d08907aad5d5ac33 Signed-off-by: Chris Luke <chrisy@flirble.org>
-rw-r--r--Makefile2
-rw-r--r--doxygen/Makefile1
-rwxr-xr-xdoxygen/siphon_process.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5808a3336c1..f218cb082eb 100644
--- a/Makefile
+++ b/Makefile
@@ -242,7 +242,7 @@ cscope: cscope.files
export DOXY_DIR ?= $(WS_ROOT)/doxygen
define make-doxy
- @WS_ROOT="$(WS_ROOT)" BR="$(BR)" make -C $(DOXY_DIR) $@
+ @OS_ID="$(OS_ID)" WS_ROOT="$(WS_ROOT)" BR="$(BR)" make -C $(DOXY_DIR) $@
endef
.PHONY: bootstrap-doxygen doxygen wipe-doxygen
diff --git a/doxygen/Makefile b/doxygen/Makefile
index 7bdc8ee9736..8e916526141 100644
--- a/doxygen/Makefile
+++ b/doxygen/Makefile
@@ -19,6 +19,7 @@
# These should be passed in by the root Makefile
WS_ROOT ?= $(CURDIR)/..
BR ?= $(WS_ROOT)/build-root
+OS_ID ?= $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
# Package dependencies
DOC_DEB_DEPENDS = doxygen graphviz python-pyparsing
diff --git a/doxygen/siphon_process.py b/doxygen/siphon_process.py
index 80add4b9a44..82a166d31b5 100755
--- a/doxygen/siphon_process.py
+++ b/doxygen/siphon_process.py
@@ -181,7 +181,7 @@ def getMacroInitializerBNF():
expr = (literal | var) # TODO
- member = pp.Combine(dot + varName + pp.Optional("[" + arrayIndex + "]"))
+ member = pp.Combine(dot + varName + pp.Optional("[" + arrayIndex + "]"), adjacent=False)
value = (expr | cs)
entry = pp.Group(pp.Optional(member + equals, default="") + value)
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
../vpp/api/types.c