From: Justin Seyster Date: Tue, 2 Feb 2010 22:14:35 +0000 (-0500) Subject: Fixed some typos that were preventing compilation. X-Git-Tag: release-v1.0~128 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=1f989db105f9600afc282c63397f4e4f03899b64;p=interaspect.git Fixed some typos that were preventing compilation. --- diff --git a/src/aop-main.c b/src/aop-main.c index e80f106..1ed8274 100644 --- a/src/aop-main.c +++ b/src/aop-main.c @@ -48,7 +48,9 @@ #include #include -#include "aop-main.c" +#include "aop.h" + +static const char *aop_plugin_name; static struct opt_pass template_pass = { .type = GIMPLE_PASS, @@ -64,7 +66,7 @@ static struct opt_pass template_pass = { .properties_destroyed = 0, .todo_flags_start = 0, .todo_flags_finish = TODO_update_ssa, -} +}; void aop_register_pass (const char *pass_name, pass_callback callback) { @@ -86,7 +88,7 @@ void aop_register_pass (const char *pass_name, pass_callback callback) /* This is the last plug-in function called before GCC exits. Clean up all the memory we allocated. */ -static void cleanup (void *event_date, void *data) +static void aop_cleanup (void *event_date, void *data) { } @@ -98,8 +100,10 @@ int plugin_init (struct plugin_name_args *plugin_info, { fprintf (stderr, "InterAspect init.\n"); + plugin_info->base_name; + /* Register our cleanup function. */ - register_callback (plugin_name, PLUGIN_FINISH, aop_cleanup, NULL); + register_callback (aop_plugin_name, PLUGIN_FINISH, aop_cleanup, NULL); /* Give the client plug-in its chance to register a pass. */ aop_main (); diff --git a/src/aop.h b/src/aop.h index 0ce560d..4e74025 100644 --- a/src/aop.h +++ b/src/aop.h @@ -29,7 +29,7 @@ calls can pass values from the running program to the advice function. */ -typedef (unsigned int)(*pass_callback)(); +typedef unsigned int (*pass_callback)(); void aop_register_pass(const char *pass_name, pass_callback callback); void aop_main();