All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] Doxygen hyperlinking utilitiy and demo programs
@ 2006-11-10 11:33 Wolfgang Grandegger
  2006-11-11 17:28 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Grandegger @ 2006-11-10 11:33 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Hello,

the attached patch adds the RT-Socket-CAN utility programs as examples 
to the Doxygen documentation setup. This creates some nice cross 
reference from the documented API functions to the example code lines 
and vice versa. In a similar way, the Xenomai demo programs and code 
snippets could be integrated making it much easier to find example code 
or the description of an API function used in an example.

Please have a look and comment?

Thanks.

Wolfgang.

[-- Attachment #2: xenomai-doxygen-examples.patch --]
[-- Type: text/x-patch, Size: 1880 bytes --]

Index: include/rtdm/rtcan.h
===================================================================
--- include/rtdm/rtcan.h	(revision 1810)
+++ include/rtdm/rtcan.h	(working copy)
@@ -1116,7 +1116,15 @@
 
 /** @} */
 
+/*!
+ * @anchor Utilities @name CAN test and utility functions
+ * @{ */
+/** @example rtcanconfig.c */
+/** @example rtcansend.c */
+/** @example rtcanrecv.c */
 /** @} */
 
+/** @} */
 
+
 #endif /* _RTCAN_H */
Index: doc/doxygen/Doxyfile-common.in
===================================================================
--- doc/doxygen/Doxyfile-common.in	(revision 1810)
+++ doc/doxygen/Doxyfile-common.in	(working copy)
@@ -383,27 +383,27 @@
 # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
 # certain files from those directories.
 
-EXCLUDE_PATTERNS       = 
+EXCLUDE_PATTERNS       = "*.c"
 
 # The EXAMPLE_PATH tag can be used to specify one or more files or 
 # directories that contain example code fragments that are included (see 
 # the \include command).
 
-EXAMPLE_PATH           = 
+EXAMPLE_PATH           = ../../src/utils
 
 # If the value of the EXAMPLE_PATH tag contains directories, you can use the 
 # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
 # and *.h) to filter out the source-files in the directories. If left 
 # blank all files are included.
 
-EXAMPLE_PATTERNS       = 
+EXAMPLE_PATTERNS       =
 
 # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
 # searched for input files to be used with the \include or \dontinclude 
 # commands irrespective of the value of the RECURSIVE tag. 
 # Possible values are YES and NO. If left blank NO is used.
 
-EXAMPLE_RECURSIVE      = NO
+EXAMPLE_RECURSIVE      = YES
 
 # The IMAGE_PATH tag can be used to specify one or more files or 
 # directories that contain image that are included in the documentation (see 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-core] [PATCH] Doxygen hyperlinking utilitiy and demo programs
  2006-11-10 11:33 [Xenomai-core] [PATCH] Doxygen hyperlinking utilitiy and demo programs Wolfgang Grandegger
@ 2006-11-11 17:28 ` Gilles Chanteperdrix
  2006-11-11 19:18   ` Wolfgang Grandegger
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2006-11-11 17:28 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: xenomai-core

Wolfgang Grandegger wrote:
 > Hello,
 > 
 > the attached patch adds the RT-Socket-CAN utility programs as examples 
 > to the Doxygen documentation setup. This creates some nice cross 
 > reference from the documented API functions to the example code lines 
 > and vice versa. In a similar way, the Xenomai demo programs and code 
 > snippets could be integrated making it much easier to find example code 
 > or the description of an API function used in an example.
 > 
 > Please have a look and comment?

This is a good idea. The native skin snippets were created with
the same idea in mind, it looks like I somehow forgot to finish the
work.

Now, about your patch, will not this hunk break some things ?

 >  # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
 >  # certain files from those directories.
 >  
 > -EXCLUDE_PATTERNS       = 
 > +EXCLUDE_PATTERNS       = "*.c"


-- 


					    Gilles Chanteperdrix.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-core] [PATCH] Doxygen hyperlinking utilitiy and demo programs
  2006-11-11 17:28 ` Gilles Chanteperdrix
@ 2006-11-11 19:18   ` Wolfgang Grandegger
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Grandegger @ 2006-11-11 19:18 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

Gilles Chanteperdrix wrote:
> Wolfgang Grandegger wrote:
>  > Hello,
>  > 
>  > the attached patch adds the RT-Socket-CAN utility programs as examples 
>  > to the Doxygen documentation setup. This creates some nice cross 
>  > reference from the documented API functions to the example code lines 
>  > and vice versa. In a similar way, the Xenomai demo programs and code 
>  > snippets could be integrated making it much easier to find example code 
>  > or the description of an API function used in an example.
>  > 
>  > Please have a look and comment?
> 
> This is a good idea. The native skin snippets were created with
> the same idea in mind, it looks like I somehow forgot to finish the
> work.
> 
> Now, about your patch, will not this hunk break some things ?
> 
>  >  # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
>  >  # certain files from those directories.
>  >  
>  > -EXCLUDE_PATTERNS       = 
>  > +EXCLUDE_PATTERNS       = "*.c"

Oops, of course, I wanted to set EXAMPLE_PATTERNS and not 
EXCLUDE_PATTERNS to refine the selection of example files.

Thanks.

Wolfgang.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-11 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 11:33 [Xenomai-core] [PATCH] Doxygen hyperlinking utilitiy and demo programs Wolfgang Grandegger
2006-11-11 17:28 ` Gilles Chanteperdrix
2006-11-11 19:18   ` Wolfgang Grandegger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.