From: Justin Seyster Date: Fri, 18 Jun 2010 01:10:38 +0000 (-0400) Subject: Fixed style problems in aop.h. X-Git-Tag: release-v1.0~100 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=4d294828865b5a9ab0db8bcfdadd697b05abc027;p=interaspect.git Fixed style problems in aop.h. --- diff --git a/src/aop.h b/src/aop.h index 150182d..8bc0b09 100644 --- a/src/aop.h +++ b/src/aop.h @@ -55,20 +55,16 @@ struct aop_type; typedef unsigned int (*pass_callback) (); typedef void (*join_callback) (struct aop_joinpoint *, void *callback_param); -extern struct aop_pointcut *aop_match_assignment_by_type ( - const struct aop_type *type); - extern void aop_filter_include_temps (struct aop_pointcut *pc); extern void aop_filter_exclude_temps (struct aop_pointcut *pc); -extern const char *aop_capture_lhs_name (struct aop_joinpoint *jp); - enum aop_insert_location { AOP_INSERT_BEFORE, AOP_INSERT_AFTER }; -extern void aop_insert_advice (struct aop_joinpoint *jp, const char *name,enum aop_insert_location location, ...); +extern void aop_insert_advice (struct aop_joinpoint *jp, const char *name, + enum aop_insert_location location, ...); extern const struct aop_type *aop_t_all_signed (); extern const struct aop_type *aop_t_all_unsigned (); @@ -95,26 +91,30 @@ enum aop_argkind { #define AOP_STR_CST(VAL) ATA_STR_CST, VAL #define AOP_DYNVAL(VAL) ATA_DYNVAL, VAL -const char *aop_capture_function_name (struct aop_joinpoint *jp); -struct aop_dynval *aop_capture_lhs_addr (struct aop_joinpoint *jp); -struct aop_dynval *aop_capture_assigned_value (struct aop_joinpoint *jp); -struct aop_pointcut *aop_match_function_entry (); -struct aop_pointcut *aop_match_function_exit (); -struct aop_pointcut *aop_match_function_call (); +extern const char *aop_capture_function_name (struct aop_joinpoint *jp); -void aop_filter_function_entry_pointcut(struct aop_pointcut *pc_function_entry, - const char *advice_function_entry); +extern struct aop_pointcut *aop_match_function_entry (); +extern struct aop_pointcut *aop_match_function_exit (); -void aop_filter_function_call_pointcut(struct aop_pointcut *pc_function_call, - const char *advice_function_call); +extern void aop_filter_function_entry_pointcut( + struct aop_pointcut *pc_function_entry, const char *advice_function_entry); -void aop_filter_function_call_pointcut_by_param_index(struct aop_pointcut *pc, - int param_index); +extern struct aop_pointcut *aop_match_function_call (); -struct aop_dynval * -aop_capture_return_value (struct aop_joinpoint *jp); +extern void aop_filter_function_call_pointcut( + struct aop_pointcut *pc_function_call, const char *advice_function_call); +extern void aop_filter_function_call_pointcut_by_param_index( + struct aop_pointcut *pc, int param_index); -struct aop_dynval * -aop_capture_param (struct aop_joinpoint *jp, int param_index); +extern struct aop_dynval *aop_capture_return_value (struct aop_joinpoint *jp); +extern struct aop_dynval *aop_capture_param (struct aop_joinpoint *jp, + int param_index); + +extern struct aop_pointcut *aop_match_assignment_by_type ( + const struct aop_type *type); + +extern struct aop_dynval *aop_capture_lhs_addr (struct aop_joinpoint *jp); +extern const char *aop_capture_lhs_name (struct aop_joinpoint *jp); +extern struct aop_dynval *aop_capture_assigned_value (struct aop_joinpoint *jp); #endif