Created a group for setup functions.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 20 Oct 2010 03:46:54 +0000 (23:46 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 20 Oct 2010 03:59:57 +0000 (23:59 -0400)
src/aop-main.c
src/aop.h

index c45e22d6b4d69e1d2255b7c28b10e3cc860c81bd..518231e8cb0b34e02a9b4b1bdadbb7ce44988d0b 100644 (file)
@@ -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
- * <code>libfoo.so</code>, its basename will be <code>foo</code>.
+ * <code>libfoo.so</code>, its basename will be <code>libfoo</code>.
  *
  * 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 <i>last</i> 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)
index b12a650af0faa055c5002bb745a884ceebe47e13..f8a5c69de27290a08a4f6dd527c2734264007db8 100644 (file)
--- 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
  * <i>must</i> 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
  */