Doc fixes.
[bertos.git] / mware / parser.c
old mode 100755 (executable)
new mode 100644 (file)
index 0b2c873..cc20b4e
@@ -1,6 +1,31 @@
-/*!
+/**
  * \file
  * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos 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 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction.  Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License.  This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
  * Copyright 2003, 2006 Develer S.r.l. (http://www.develer.com/)
  * All Rights Reserved.
  * -->
  * CmdTemplate table.
  */
 
-/*#*
- *#* $Log$
- *#* Revision 1.1  2006/06/01 12:27:39  marco
- *#* Added utilities for protocols
- *#*
- *#*/
 
 #include "parser.h"
 #include <drv/ser.h>
 
 #include <mware/hashtable.h>
 
+#include "appconfig.h"
+
 #define ARG_SEP_S " "
 #define ARG_SEP_C ' '
 
 #define MAX_COMMANDS_NUMBER  128  // 64
 
-//! Hashtable hook to extract the key from a command
+/// Hashtable hook to extract the key from a command
 static const void* get_key_from_command(const void* cmd, uint8_t* length);
 
-//! Hashtable that handles the commands that can be executed
+/// Hashtable that handles the commands that can be executed
 DECLARE_HASHTABLE_STATIC(commands, MAX_COMMANDS_NUMBER, get_key_from_command);
 
 
-/*!
+/**
  * \brief Tokenize one word at a time from a text.
  *
  * This function is similar to strtok, but does not use any implicit
@@ -91,7 +112,7 @@ static bool get_word(const char **begin, const char **end)
 }
 
 
-/*!
+/**
  * \brief Command arguments parser.
  *
  * Using the format pointed by the argument fmt
@@ -216,7 +237,7 @@ static int printResult(struct Serial *ser, const char *fmt, parms result[])
 }
 #endif /* UNUSED_CODE */
 
-//! Hook provided by the parser for matching of command names (TAB completion) for readline
+/// Hook provided by the parser for matching of command names (TAB completion) for readline
 const char* parser_rl_match(UNUSED_ARG(void *,dummy), const char *word, int word_len)
 {
        HashIterator cur;