From 10931b5e66452f6f6af05dbeecbf2c7108391fdb Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 Dec 2002 17:05:59 -0500 Subject: ENH: Added return type int to ExecuteCommand. --- Source/cmCPluginAPI.cxx | 6 +++--- Source/cmCPluginAPI.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 4b51ebe..4bec426 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -291,8 +291,8 @@ char *cmExpandVariablesInString(void *arg, const char *source, } -void cmExecuteCommand(void *arg, const char *name, - int numArgs, const char **args) +int cmExecuteCommand(void *arg, const char *name, + int numArgs, const char **args) { cmMakefile *mf = static_cast(arg); cmListFileFunction lff; @@ -302,7 +302,7 @@ void cmExecuteCommand(void *arg, const char *name, // Assume all arguments are quoted. lff.m_Arguments.push_back(cmListFileArgument(args[i], true)); } - mf->ExecuteCommand(lff); + return mf->ExecuteCommand(lff); } void cmExpandSourceListArguments(void *arg, diff --git a/Source/cmCPluginAPI.h b/Source/cmCPluginAPI.h index cf830cd..8f085fa 100644 --- a/Source/cmCPluginAPI.h +++ b/Source/cmCPluginAPI.h @@ -84,8 +84,8 @@ typedef struct int all, int numDepends, const char **depends, int numOutputs, const char **outputs); int (*CommandExists) (void *mf, const char* name); - void (*ExecuteCommand) (void *mf, const char *name, - int numArgs, const char **args); + int (*ExecuteCommand) (void *mf, const char *name, + int numArgs, const char **args); void (*ExpandSourceListArguments) (void *mf,int argc, const char **argv, int *resArgc, char ***resArgv, unsigned int startArgumentIndex); -- cgit v0.12