summaryrefslogtreecommitdiffstats
path: root/lib/command_lex.l
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-08 23:11:14 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-08 23:11:14 +0200
commit1ab84bf32f891c9aa62e1d2a42501a0df7d6aec0 (patch)
tree777b22b5486dd1138077960e8a4f359488f68a37 /lib/command_lex.l
parentlib: Major parser refactor (diff)
downloadfrr-1ab84bf32f891c9aa62e1d2a42501a0df7d6aec0.tar.xz
frr-1ab84bf32f891c9aa62e1d2a42501a0df7d6aec0.zip
lib: Code cleanup, formatting, & headers
Gnu-style code, add copyright headers, cleanup some random style issues, shuffle around code into relevant units, add docs. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_lex.l')
-rw-r--r--lib/command_lex.l24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l
index 600c92d23..920c03db8 100644
--- a/lib/command_lex.l
+++ b/lib/command_lex.l
@@ -1,3 +1,27 @@
+/*
+ * Command format string lexer for CLI backend.
+ *
+ * --
+ * Copyright (C) 2015 Cumulus Networks, Inc.
+ *
+ * This file is part of GNU Zebra.
+ *
+ * GNU Zebra is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ *
+ * GNU Zebra is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Zebra; see the file COPYING. If not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
%{
#include "command_parse.h"