From eab2d21f6e351fe2a7516055f58e96987dc15a90 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Fri, 22 Oct 2010 18:45:07 +0200 Subject: [PATCH] doc: avoid that doxygen parses magic in command.h Don't let doxygen parse the command magic, which leads to these warnings: command.h:93: Warning: explicit link request to 'define' could not be resolved command.h:98: Warning: expected tag but found TK_LNKWORD token instead! command.h:98: Warning: Found unknown command `\t' command.h:101: Warning: explicit link request to 'define' could not be resolved command.h:103: Warning: explicit link request to 'define' could not be resolved Signed-off-by: Robert Schwebel Signed-off-by: Sascha Hauer --- include/command.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/command.h b/include/command.h index e235f632e..0be7a6953 100644 --- a/include/command.h +++ b/include/command.h @@ -76,6 +76,8 @@ void barebox_cmd_usage(struct command *cmdtp); #endif /* __ASSEMBLY__ */ +#ifndef DOXYGEN_SHOULD_SKIP_THIS + #define Struct_Section __attribute__ ((unused,section (".barebox_cmd"))) #define BAREBOX_CMD_START(_name) \ @@ -93,6 +95,8 @@ const struct command __barebox_cmd_##_name \ #define BAREBOX_CMD_HELP(text) #endif +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + int register_command(struct command *); #endif /* __COMMAND_H */