From: asterix Date: Wed, 21 May 2008 08:47:05 +0000 (+0000) Subject: Reformat. Fix headguard name. Clean up. X-Git-Tag: 2.0.0~621 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=835ac7cb7d00f28233c0d1d222c688e4df3aba6d;p=bertos.git Reformat. Fix headguard name. Clean up. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1313 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/mware/parser.c b/bertos/mware/parser.c index cc20b4e6..6e23bcec 100644 --- a/bertos/mware/parser.c +++ b/bertos/mware/parser.c @@ -30,12 +30,6 @@ * All Rights Reserved. * --> * - * \version $Id$ - * - * \author Bernardo Innocenti - * \author Stefano Fedrigo - * \author Giovanni Bajo - * * \brief Serial protocol parser and commands. * * This file contains the serial protocol parser and @@ -50,18 +44,28 @@ * 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 + * \author Stefano Fedrigo + * \author Giovanni Bajo + * + * */ #include "parser.h" + +#include "appconfig.h" + #include +#include #include // atol(), NULL #include // strchr(), strcmp() -#include -#include "appconfig.h" #define ARG_SEP_S " " #define ARG_SEP_C ' ' diff --git a/bertos/mware/parser.h b/bertos/mware/parser.h index b4e2f61d..ebfda207 100644 --- a/bertos/mware/parser.h +++ b/bertos/mware/parser.h @@ -40,10 +40,8 @@ */ -#ifndef PARSER_H -#define PARSER_H - -#include +#ifndef MWARE_PARSER_H +#define MWARE_PARSER_H /** Max number of arguments and results for each command */ #define PARSER_MAX_ARGS 8 @@ -181,5 +179,5 @@ bool parser_get_cmd_arguments(const char* line, const struct CmdTemplate* templ, bool parser_get_cmd_id(const char* line, unsigned long* ID); -#endif /* PARSER_H */ +#endif /* MWARE_PARSER_H */ diff --git a/bertos/mware/readline.c b/bertos/mware/readline.c index 4c3b3a81..83af2077 100644 --- a/bertos/mware/readline.c +++ b/bertos/mware/readline.c @@ -75,8 +75,6 @@ #include #include -#include - /// Enable compilation of the unit test code #define DEBUG_UNIT_TEST 0