summaryrefslogtreecommitdiffstats
path: root/lib/command_parse.y
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-10 20:31:15 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-10 20:31:15 +0200
commitca90e051043f819fe974cd110e15cf38edd63f2e (patch)
tree1886b09b8fa62f36604050a1c142a35bf2db8393 /lib/command_parse.y
parentdebian: Add bison and flex to Build-Depends (diff)
downloadfrr-ca90e051043f819fe974cd110e15cf38edd63f2e.tar.xz
frr-ca90e051043f819fe974cd110e15cf38edd63f2e.zip
lib: Add completion string convenience functions
And set END_GN default text to <cr>, and scrub a coupld of extraneous files Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_parse.y')
-rw-r--r--lib/command_parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y
index 56c58fdae..df90f64ed 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -433,6 +433,7 @@ terminate_graph (struct graph_node *startnode,
{
struct graph_node *end = new_node (END_GN);
end->element = element;
+ end->text = XSTRDUP(MTYPE_CMD_TOKENS, "<cr>");
if (node_exists (finalnode, end))
yyerror (element, startnode, "Duplicate command.");
else