* All Rights Reserved.
* -->
*
- * \version $Id$
- *
- * \author Bernardo Innocenti <bernie@develer.com>
- * \author Stefano Fedrigo <aleph@develer.com>
- * \author Giovanni Bajo <rasky@develer.com>
- *
* \brief Serial protocol parser and commands.
*
* This file contains the serial protocol parser and
* using an union: the element of the union to use for each
* argument is determined by format strings present in the
* CmdTemplate table.
+ *
+ * \version $Id$
+ *
+ * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Stefano Fedrigo <aleph@develer.com>
+ * \author Giovanni Bajo <rasky@develer.com>
+ *
+ *
*/
#include "parser.h"
+
+#include "appconfig.h"
+
#include <drv/ser.h>
+#include <mware/hashtable.h>
#include <stdlib.h> // atol(), NULL
#include <string.h> // strchr(), strcmp()
-#include <mware/hashtable.h>
-#include "appconfig.h"
#define ARG_SEP_S " "
#define ARG_SEP_C ' '
*/
-#ifndef PARSER_H
-#define PARSER_H
-
-#include <drv/ser.h>
+#ifndef MWARE_PARSER_H
+#define MWARE_PARSER_H
/** Max number of arguments and results for each command */
#define PARSER_MAX_ARGS 8
bool parser_get_cmd_id(const char* line, unsigned long* ID);
-#endif /* PARSER_H */
+#endif /* MWARE_PARSER_H */