X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fparser.c;h=f367754420ad7fa62b130c374d4293ba1edc0677;hb=99fafc49f3b2d50abb2d7b8b4cbbd3be8e107bef;hp=0b2c8738f54b05bf2322f0c10ea0a9798468c14e;hpb=a5d4c124a53f74592228614fe5eecd3d2aa3ae2d;p=bertos.git diff --git a/mware/parser.c b/mware/parser.c old mode 100755 new mode 100644 index 0b2c8738..f3677544 --- a/mware/parser.c +++ b/mware/parser.c @@ -1,6 +1,31 @@ -/*! +/** * \file * @@ -27,12 +52,6 @@ * CmdTemplate table. */ -/*#* - *#* $Log$ - *#* Revision 1.1 2006/06/01 12:27:39 marco - *#* Added utilities for protocols - *#* - *#*/ #include "parser.h" #include @@ -47,14 +66,14 @@ #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 +110,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 +235,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;