From 49cc211819851b76c58fb37eeb579bd88a5ac65a Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 16 Jan 2012 03:32:49 +0000 Subject: Create a new internal interface for defining new make functions. This allows us to create new functions without changing function.c. You still have to modify the GNU make code (for now) though: this is simply a preliminary step to possibly allowing make to load modules. Modify the Guile integration to use this method rather than ifdefs in function.c. --- variable.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'variable.h') diff --git a/variable.h b/variable.h index d695287..1fd1b66 100644 --- a/variable.h +++ b/variable.h @@ -167,6 +167,9 @@ struct variable *try_variable_definition (const struct floc *flocp, char *line, int target_var); void init_hash_global_variable_set (void); void hash_init_function_table (void); +void define_new_function(const struct floc *flocp, + const char *name, int min, int max, int expand, + char *(*func)(char *, char **, const char *)); struct variable *lookup_variable (const char *name, unsigned int length); struct variable *lookup_variable_in_set (const char *name, unsigned int length, const struct variable_set *set); -- cgit v1.2.3