Moved some internal functions out of Doxygen docs.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 20 Oct 2010 22:07:21 +0000 (18:07 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 20 Oct 2010 22:07:21 +0000 (18:07 -0400)
src/aop-pointcut.c

index 04b936c236231ec7d499d12a2d34ad209e0b69f2..8c7d0c92446967f07176b19fe216ae838049e5b2 100644 (file)
 #include "aop-pointcut.h"
 #include "aop-type.h"
 
-/**
- * \defgroup all_pc Functions for All Pointcuts
- * \{
- */
-
 /* Allocates a pointcut and initializes it with default values. */
 struct aop_pointcut *
 create_pointcut (enum aop_pckind kind)
@@ -138,6 +133,53 @@ op_get_in_param (struct aop_dynval *dv)
   return param;
 }
 
+bool
+check_in_param (struct aop_param_desc *param_desc)
+{
+   tree param_type;
+   tree param_decl;
+   int index = 0;
+   bool index_found = false;
+   for (param_decl = DECL_ARGUMENTS (current_function_decl);
+       param_decl; param_decl = TREE_CHAIN (param_decl))
+     {
+       if (index == param_desc->param_index)
+        {
+          /* Index found check the type */
+          if ((param_type = TREE_TYPE (param_decl)) == NULL
+              || !does_type_match (param_type, param_desc->type))
+            index_found = false;
+          else
+            index_found = true;
+
+          break;
+        }
+       index++;
+     }
+   return index_found;
+}
+
+bool
+check_in_params (struct aop_pointcut *pc)
+{
+  struct aop_param_desc *param_desc;
+
+  /* Check parameter types. */
+  for (param_desc = pc->in_param_list_head ; param_desc != NULL ;
+       param_desc = param_desc->next)
+    {     
+      if(!check_in_param (param_desc))
+       return false;
+    }
+
+  return true;
+}
+
+/**
+ * \defgroup all_pc Functions for All Pointcuts
+ * \{
+ */
+
 /**
  * Get a dynval representing the nth parameter passed to the current
  * fuction.  Be careful not to capture the <code>in_param</code> of
@@ -184,48 +226,6 @@ aop_capture_in_param (struct aop_joinpoint *jp, int n)
   return dv;
 }
 
-bool
-check_in_param (struct aop_param_desc *param_desc)
-{
-   tree param_type;
-   tree param_decl;
-   int index = 0;
-   bool index_found = false;
-   for (param_decl = DECL_ARGUMENTS (current_function_decl);
-       param_decl; param_decl = TREE_CHAIN (param_decl))
-     {
-       if (index == param_desc->param_index)
-        {
-          /* Index found check the type */
-          if ((param_type = TREE_TYPE (param_decl)) == NULL
-              || !does_type_match (param_type, param_desc->type))
-            index_found = false;
-          else
-            index_found = true;
-
-          break;
-        }
-       index++;
-     }
-   return index_found;
-}
-
-bool
-check_in_params (struct aop_pointcut *pc)
-{
-  struct aop_param_desc *param_desc;
-
-  /* Check parameter types. */
-  for (param_desc = pc->in_param_list_head ; param_desc != NULL ;
-       param_desc = param_desc->next)
-    {     
-      if(!check_in_param (param_desc))
-       return false;
-    }
-
-  return true;
-}
-
 /**
  * Filter a pointcut (of any type) to only include join points within
  * functions that take an nth parameter matching the specified type.