From bb60c722116f1c8401cc4d5653c127d461df1c15 Mon Sep 17 00:00:00 2001 From: Daniele Basile Date: Thu, 19 Jan 2012 13:03:40 +0100 Subject: [PATCH] Duplicate header file. --- boards/triface/examples/triface/cmd_ctor.h | 57 ---------------------- 1 file changed, 57 deletions(-) delete mode 100644 boards/triface/examples/triface/cmd_ctor.h diff --git a/boards/triface/examples/triface/cmd_ctor.h b/boards/triface/examples/triface/cmd_ctor.h deleted file mode 100644 index e8288b85..00000000 --- a/boards/triface/examples/triface/cmd_ctor.h +++ /dev/null @@ -1,57 +0,0 @@ -/** - * \file - * - * - * \brief Macro for defining command for protocol. - * - * \author Marco Benelli - */ - -#ifndef CMD_CTOR_H -#define CMD_CTOR_H - -#include - -#define REGISTER_FUNCTION parser_register_cmd - -#define MAKE_TEMPLATE(NAME, ARGS, RES, FLAGS) \ -const struct CmdTemplate cmd_ ## NAME ## _template = \ -{ \ - #NAME, ARGS, RES, cmd_ ## NAME, FLAGS \ -}; - -#define MAKE_CMD(NAME, ARGS, RES, BODY, FLAGS) \ -static ResultCode cmd_ ## NAME (parms *args) \ -{ \ - return (ResultCode)BODY; \ -} \ -MAKE_TEMPLATE(NAME, ARGS, RES, FLAGS) - -#endif // CMD_CTOR_H -- 2.25.1