From: Justin Seyster Date: Wed, 20 Oct 2010 03:46:54 +0000 (-0400) Subject: Created a group for setup functions. X-Git-Tag: release-v1.0~28^2~4 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=8f71d30df02b2e4ffde2291a70d54585b2afb85f;p=interaspect.git Created a group for setup functions. --- diff --git a/src/aop-main.c b/src/aop-main.c index c45e22d..518231e 100644 --- a/src/aop-main.c +++ b/src/aop-main.c @@ -268,7 +268,7 @@ aop_finish () * * where ${BASENAME} is the base name of your plug-in, which GCC * determines from the plug-in's file name. If your plug-in is named - * libfoo.so, its basename will be foo. + * libfoo.so, its basename will be libfoo. * * If you want to be able to pass arguments to your plug-in, the * plug-in's file name must not have any hyphens. This is a @@ -280,6 +280,7 @@ aop_finish () * Otherwise, it returns NULL. If the user passed multiple arguments * with the specified key, aop_get_arg_value() returns the value that * was last on the command line. + * \ingroup setting_up */ const char * aop_get_arg_value (const char *key) @@ -331,6 +332,7 @@ static struct opt_pass template_pass = { * * \param pass_name A name for the pass. * \param callback The pass function to register. + * \ingroup setting_up */ void aop_register_pass (const char *pass_name, pass_callback callback) diff --git a/src/aop.h b/src/aop.h index b12a650..f8a5c69 100644 --- a/src/aop.h +++ b/src/aop.h @@ -52,6 +52,7 @@ * license. Contact the Free Software Foundation for more * information. (The InterAspect team is not affiliated with the Free * Software Foundation.) + * \ingroup setting_up */ #define AOP_I_AM_GPL_COMPATIBLE() \ __attribute__((visibility("default"))) int plugin_is_GPL_compatible; @@ -59,7 +60,7 @@ /** * \brief A macro for easily declaring a plug-in's main function. * - * Define aop_main using the AOP_MAIN_PROTO macro to enusre that its + * Define aop_main using the AOP_MAIN_PROTO macro to ensure that its * linker visibility is set correctly. Absolutely do not just declare * it as a void function! * @@ -67,6 +68,7 @@ * \code * AOP_PROTO_MAIN aop_main(void) * \endcode + * \ingroup setting_up */ #define AOP_MAIN_PROTO __attribute__((visibility("hidden"))) void @@ -78,6 +80,7 @@ * * If EXPR evaluates to false, GCC will abort compilation and show an * error with the file and line number of the failed assertion. + * \ingroup setting_up */ #define aop_assert(EXPR) \ ((void)(!(EXPR) ? aop_abort (__FILE__, __LINE__, __FUNCTION__), 0 : 0)) @@ -96,6 +99,7 @@ struct aop_type; * * The function type for pass functions to be registered with * aop_register_pass(). + * \ingroup setting_up */ typedef unsigned int (*pass_callback) (); @@ -198,11 +202,19 @@ extern void aop_join_on (struct aop_pointcut *pc, join_callback callback, extern void aop_join_on_copy (struct aop_pointcut *pc, int copy, join_callback callback, void *callback_param); +/** + * \defgroup setting_up Setting Up + * \{ + */ + /** * The aop_main() function is the only function that a client plug-in * must define in order to link with InterAspect. InterAspect * will call aop_main() right at the beginning of compilation, giving * it the opportunity to register a pass using aop_register_pass(). + * + * Make sure to define your aop_main() using the AOP_MAIN_PROTO() + * macro. */ extern void aop_main (); @@ -218,6 +230,10 @@ extern void aop_main (); */ extern void aop_finish (); +/** + * \} + */ + /** * \cond HIDDEN_SYMBOLS */