From 28e3a38a103ce857eebb653ceef803d3b373def2 Mon Sep 17 00:00:00 2001 From: Justin Seyster Date: Wed, 20 Oct 2010 18:07:21 -0400 Subject: [PATCH] Moved some internal functions out of Doxygen docs. --- src/aop-pointcut.c | 94 +++++++++++++++++++++++----------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/src/aop-pointcut.c b/src/aop-pointcut.c index 04b936c..8c7d0c9 100644 --- a/src/aop-pointcut.c +++ b/src/aop-pointcut.c @@ -46,11 +46,6 @@ #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 in_param 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. -- 2.34.1